|
|
@ -20,7 +20,8 @@ |
|
|
decreace2: activeContract.increase < 0, |
|
|
decreace2: activeContract.increase < 0, |
|
|
increase: activeContract.increase >= 0 |
|
|
increase: activeContract.increase >= 0 |
|
|
}"> |
|
|
}"> |
|
|
{{ activeContract.price }} |
|
|
<!-- {{ activeContract.price }} --> |
|
|
|
|
|
{{price1}} |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div class="title mb-1 text-secondary"> |
|
|
<!-- <div class="title mb-1 text-secondary"> |
|
|
{{ $t("contract.h6") }} |
|
|
{{ $t("contract.h6") }} |
|
|
@ -101,7 +102,7 @@ |
|
|
<div style="margin-left: 10px;">{{ item.symbol }}/{{ parent.coin_name }}</div> |
|
|
<div style="margin-left: 10px;">{{ item.symbol }}/{{ parent.coin_name }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="text-right width-32">{{ item.close }}</div> |
|
|
<div class="text-right width-32">{{item.symbol == activeSymbol ? price1 : item.price}}</div> |
|
|
<div class="text-right width-32" :class="item.increase < 0 ? 'decreace' : 'increase'">{{ item.increaseStr }}</div> |
|
|
<div class="text-right width-32" :class="item.increase < 0 ? 'decreace' : 'increase'">{{ item.increaseStr }}</div> |
|
|
</td> |
|
|
</td> |
|
|
<!-- <td class="w-7/24 text-right" >{{ item.close }}</td> |
|
|
<!-- <td class="w-7/24 text-right" >{{ item.close }}</td> |
|
|
@ -241,7 +242,9 @@ export default { |
|
|
currentIcon: '', |
|
|
currentIcon: '', |
|
|
filterCoin: "", |
|
|
filterCoin: "", |
|
|
contractListFilter: [], |
|
|
contractListFilter: [], |
|
|
Liste:[] |
|
|
Liste:[], |
|
|
|
|
|
price1:0, |
|
|
|
|
|
intervalId:'' |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -319,6 +322,12 @@ export default { |
|
|
}, 2000) |
|
|
}, 2000) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
startWatchingPrice(){ |
|
|
|
|
|
this.intervalId = setInterval(() => { |
|
|
|
|
|
let newPrice = localStorage.getItem('price'); |
|
|
|
|
|
this.price1 = newPrice; |
|
|
|
|
|
}, 10); // 每秒检查一次 |
|
|
|
|
|
}, |
|
|
ispopover1(item){ |
|
|
ispopover1(item){ |
|
|
this.activeSymbol=item; |
|
|
this.activeSymbol=item; |
|
|
// this.$refs.popover.showPopper = false; |
|
|
// this.$refs.popover.showPopper = false; |
|
|
|