|
|
@ -297,7 +297,12 @@ |
|
|
:max="6" |
|
|
:max="6" |
|
|
:contract="1" |
|
|
:contract="1" |
|
|
> |
|
|
> |
|
|
<view class="fn-lg color-buy">{{ newPrice.price }}</view> |
|
|
<!-- 合约页面的买卖列表中间的实时价格 --> |
|
|
|
|
|
<view class="fn-lg color-buy">{{newPrice.price}} |
|
|
|
|
|
<!-- <span class="color-buy" v-if="newPrice.price>100">{{omitTo(newPrice.price,2)}}</span> |
|
|
|
|
|
<span class="color-buy" v-if="newPrice.price>1&&newPrice.price<100">{{omitTo(newPrice.price,4)}}</span> |
|
|
|
|
|
<span class="color-buy" v-if="newPrice.price<1">{{omitTo(newPrice.price,6)}}</span> --> |
|
|
|
|
|
</view> |
|
|
</sell-and-buy> |
|
|
</sell-and-buy> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -1431,9 +1436,18 @@ export default { |
|
|
case `swapTradeList_${symbol}`: |
|
|
case `swapTradeList_${symbol}`: |
|
|
this.tradeList.unshift(data); |
|
|
this.tradeList.unshift(data); |
|
|
this.tradeList.pop(); |
|
|
this.tradeList.pop(); |
|
|
this.newPrice = data; |
|
|
// this.newPrice = data; |
|
|
// console.log(this.newPrice, 898989898988) |
|
|
// console.log(this.newPrice, 898989898988) |
|
|
break; |
|
|
break; |
|
|
|
|
|
case `swapMarketList`: |
|
|
|
|
|
let arr = data[0].marketInfoList; |
|
|
|
|
|
for(let i=0;i<arr.length;i++){ |
|
|
|
|
|
if(arr[i].symbol == symbol){ |
|
|
|
|
|
this.newPrice = arr[i] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// console.log(this.newPrice, '----------') |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|