|
|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="contract-page" style=""> |
|
|
<div class="contract-page" style="background-color: #F8F8F8;"> |
|
|
<!-- <div class="banner-block col-xs-8">--> |
|
|
<!-- <div class="banner-block col-xs-8">--> |
|
|
<!-- <el-carousel :interval="6000" height="450px">--> |
|
|
<!-- <el-carousel :interval="6000" height="450px">--> |
|
|
<!-- <el-carousel-item v-for="item in pcBannerList" :key="item.id">--> |
|
|
<!-- <el-carousel-item v-for="item in pcBannerList" :key="item.id">--> |
|
|
@ -16,7 +16,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="d-flex fn-14 px-4 p-l-A align-items-center py-2"> |
|
|
<div class="d-flex fn-14 px-4 p-l-A align-items-center py-2"> |
|
|
<div class="item px-2 min-width-A"> |
|
|
<div class="item px-2 min-width-A"> |
|
|
<div class="title" :class="{ decreace2: activeContract.increase < 0, increase: activeContract.increase >= 0}"> |
|
|
<div class="title" :class="{ decreace2: activeContract.increase < 0, increase: activeContract.increase >= 0}" style="margin-bottom: 10px;"> |
|
|
{{ activeContract.price }} |
|
|
{{ activeContract.price }} |
|
|
</div> |
|
|
</div> |
|
|
<div :class="{ decreace2: activeContract.increase < 0, increase: activeContract.increase >= 0}"> |
|
|
<div :class="{ decreace2: activeContract.increase < 0, increase: activeContract.increase >= 0}"> |
|
|
@ -27,7 +27,7 @@ |
|
|
<!-- 币种价值数据 --> |
|
|
<!-- 币种价值数据 --> |
|
|
<div class="d-flex fn-14"> |
|
|
<div class="d-flex fn-14"> |
|
|
<div class="item px-2 min-width-B"> |
|
|
<div class="item px-2 min-width-B"> |
|
|
<div class="title mb-1 text-secondary"> |
|
|
<div class="title text-secondary" style="margin-bottom: 10px;"> |
|
|
24h {{ $t("contract.h7") }} |
|
|
24h {{ $t("contract.h7") }} |
|
|
</div> |
|
|
</div> |
|
|
<div class="fn-12" style="color: #a8263b;"> |
|
|
<div class="fn-12" style="color: #a8263b;"> |
|
|
@ -35,7 +35,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="item px-2 min-width-B"> |
|
|
<div class="item px-2 min-width-B"> |
|
|
<div class="title mb-1 text-secondary"> |
|
|
<div class="title text-secondary" style="margin-bottom: 10px;"> |
|
|
24h {{ $t("contract.h8") }} |
|
|
24h {{ $t("contract.h8") }} |
|
|
</div> |
|
|
</div> |
|
|
<div class="fn-12" style="color: #a8263b;"> |
|
|
<div class="fn-12" style="color: #a8263b;"> |
|
|
@ -43,7 +43,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="item px-2 min-width-B"> |
|
|
<div class="item px-2 min-width-B"> |
|
|
<div class="title mb-1 text-secondary"> |
|
|
<div class="title text-secondary" style="margin-bottom: 10px;"> |
|
|
24h {{ $t("contract.h9") }} |
|
|
24h {{ $t("contract.h9") }} |
|
|
(USDT) |
|
|
(USDT) |
|
|
</div> |
|
|
</div> |
|
|
@ -284,32 +284,7 @@ |
|
|
this.contractList = data; |
|
|
this.contractList = data; |
|
|
if (this.filterCoin == '') { |
|
|
if (this.filterCoin == '') { |
|
|
this.contractListFilter = data; |
|
|
this.contractListFilter = data; |
|
|
this.Liste = [] |
|
|
this.Listes(); |
|
|
this.contractListFilter[0].marketInfoList.map(item=>{ |
|
|
|
|
|
this.imge[0].marketInfoList.map(items=>{ |
|
|
|
|
|
if(item.symbol==items.symbol){ |
|
|
|
|
|
this.Liste.push({ |
|
|
|
|
|
amount:item.amount, |
|
|
|
|
|
close:item.close, |
|
|
|
|
|
count: item.count, |
|
|
|
|
|
high:item.high, |
|
|
|
|
|
id: item.id, |
|
|
|
|
|
increase: item.increase, |
|
|
|
|
|
increaseStr: item.increaseStr, |
|
|
|
|
|
low: item.low, |
|
|
|
|
|
mrid: item.mrid, |
|
|
|
|
|
open: item.open, |
|
|
|
|
|
pair_name: item.pair_name, |
|
|
|
|
|
price:item.price, |
|
|
|
|
|
symbol: item.symbol, |
|
|
|
|
|
trade_turnover: item.trade_turnover, |
|
|
|
|
|
type: item.type, |
|
|
|
|
|
vol: item.vol, |
|
|
|
|
|
icon:items.icon |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
// console.log(this.Liste,'2222'); |
|
|
// console.log(this.Liste,'2222'); |
|
|
} |
|
|
} |
|
|
} else if (cmd == "ping") { |
|
|
} else if (cmd == "ping") { |
|
|
@ -330,6 +305,34 @@ |
|
|
this.$refs.handicap.linkSocket() |
|
|
this.$refs.handicap.linkSocket() |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
Listes(){ |
|
|
|
|
|
this.Liste = [] |
|
|
|
|
|
this.contractListFilter[0].marketInfoList.map(item=>{ |
|
|
|
|
|
this.imge[0].marketInfoList.map(items=>{ |
|
|
|
|
|
if(item.symbol==items.symbol){ |
|
|
|
|
|
this.Liste.push({ |
|
|
|
|
|
amount:item.amount, |
|
|
|
|
|
close:item.close, |
|
|
|
|
|
count: item.count, |
|
|
|
|
|
high:item.high, |
|
|
|
|
|
id: item.id, |
|
|
|
|
|
increase: item.increase, |
|
|
|
|
|
increaseStr: item.increaseStr, |
|
|
|
|
|
low: item.low, |
|
|
|
|
|
mrid: item.mrid, |
|
|
|
|
|
open: item.open, |
|
|
|
|
|
pair_name: item.pair_name, |
|
|
|
|
|
price:item.price, |
|
|
|
|
|
symbol: item.symbol, |
|
|
|
|
|
trade_turnover: item.trade_turnover, |
|
|
|
|
|
type: item.type, |
|
|
|
|
|
vol: item.vol, |
|
|
|
|
|
icon:items.icon |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 获取合约市场 |
|
|
// 获取合约市场 |
|
|
getMarketList() { |
|
|
getMarketList() { |
|
|
this.currentIcon = ""; |
|
|
this.currentIcon = ""; |
|
|
@ -340,6 +343,7 @@ |
|
|
this.contractList = res; |
|
|
this.contractList = res; |
|
|
if (this.filterCoin == '') { |
|
|
if (this.filterCoin == '') { |
|
|
this.contractListFilter = res; |
|
|
this.contractListFilter = res; |
|
|
|
|
|
// this.Listes(); |
|
|
} |
|
|
} |
|
|
// 默认值 |
|
|
// 默认值 |
|
|
let firstParent = res[0]; |
|
|
let firstParent = res[0]; |
|
|
@ -476,7 +480,7 @@ |
|
|
width: 95%; |
|
|
width: 95%; |
|
|
height: 40px; |
|
|
height: 40px; |
|
|
margin: 10px auto; |
|
|
margin: 10px auto; |
|
|
border: 1px solid #2e2e2e; |
|
|
border: 1px solid #D9D9D9; |
|
|
border-radius: 5px; |
|
|
border-radius: 5px; |
|
|
color: #2e2e2e; |
|
|
color: #2e2e2e; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
@ -490,7 +494,7 @@ |
|
|
input { |
|
|
input { |
|
|
background-color: transparent; |
|
|
background-color: transparent; |
|
|
border: none; |
|
|
border: none; |
|
|
border-left: 1px solid #2e2e2e; |
|
|
border-left: 1px solid #D9D9D9; |
|
|
padding: 0px 10px; |
|
|
padding: 0px 10px; |
|
|
height: 40px; |
|
|
height: 40px; |
|
|
font-size: 16px; |
|
|
font-size: 16px; |
|
|
|