|
|
@@ -88,12 +88,12 @@
|
|
|
<view class="btm-item-name">AZB/USDT</view>
|
|
|
<template >
|
|
|
<view class="btm-item-val"
|
|
|
- :style="{ color: listOBj['GCB-USDT'].dcf > 0 ? '#5ec886' : '#DD3745' }">
|
|
|
- {{ listOBj['GCB-USDT'].last || '--,--' }}
|
|
|
+ :style="{ color: listOBj['AZB-USDT'].dcf > 0 ? '#5ec886' : '#DD3745' }">
|
|
|
+ {{ listOBj['AZB-USDT'].last || '--,--' }}
|
|
|
</view>
|
|
|
<view class="btm-item-bl"
|
|
|
- :style="{ color: listOBj['GCB-USDT'].dcf > 0 ? '#5ec886' : '#DD3745' }">
|
|
|
- {{ listOBj['GCB-USDT'].dcf || '--,--' }}%
|
|
|
+ :style="{ color: listOBj['AZB-USDT'].dcf > 0 ? '#5ec886' : '#DD3745' }">
|
|
|
+ {{ listOBj['AZB-USDT'].dcf || '--,--' }}%
|
|
|
</view>
|
|
|
</template>
|
|
|
</view>
|
|
|
@@ -226,11 +226,12 @@
|
|
|
gcb() {
|
|
|
let that = this
|
|
|
gcb().then(res => {
|
|
|
- console.log(res)
|
|
|
+ console.log(res,'1')
|
|
|
let data = res.data
|
|
|
that.listOBj[data.name] = data
|
|
|
that.listOBj[data.name].dcf = (((data.last * 1 - data.sodUtc0 * 1) / (data.sodUtc0 * 1)) * 100)
|
|
|
- .toFixed(2);
|
|
|
+ .toFixed(2);
|
|
|
+ clog
|
|
|
that.listOBj[data.name].name = data.name.replace('-', '/')
|
|
|
console.log(that.listOBj, 'that.listOBj')
|
|
|
if (that.timer) {
|