|
|
|
@ -69,6 +69,7 @@ |
|
|
|
<div class="num fn-20 increace" style="display: inline-block;"> |
|
|
|
<!-- {{ newPriceObj.price }} --> |
|
|
|
{{ price1 }} |
|
|
|
<!-- {{set_price}} --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-14/24 text-right"> |
|
|
|
@ -189,7 +190,10 @@ export default { |
|
|
|
item.total = item.total.toFixed(3); |
|
|
|
}); |
|
|
|
return list; |
|
|
|
} |
|
|
|
}, |
|
|
|
// set_price() { |
|
|
|
// return this.$store.getters.set_price; // 从 Vuex 获取共享值 |
|
|
|
// } |
|
|
|
}, |
|
|
|
created() { |
|
|
|
if (this.symbol) { |
|
|
|
@ -228,6 +232,7 @@ export default { |
|
|
|
this.buyList = res.swapBuyList; |
|
|
|
this.tradeList = res.swapTradeList; |
|
|
|
this.newPriceObj = this.tradeList[0]; |
|
|
|
this.$store.commit('SET_PRICE', this.newPriceObj.price); |
|
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
}); |
|
|
|
}, |
|
|
|
@ -281,6 +286,7 @@ export default { |
|
|
|
this.tradeList.pop(); |
|
|
|
this.newPriceObj = data; |
|
|
|
localStorage.setItem("price",this.newPriceObj.price) |
|
|
|
// this.$store.commit('SET_PRICE', this.newPriceObj.price); |
|
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
} else if (type == "ping" ||cmd == "ping") { |
|
|
|
this.ws.send({ |
|
|
|
|