|
|
|
@ -201,6 +201,7 @@ export default { |
|
|
|
bus.$on('collapse', msg => { |
|
|
|
this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); |
|
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 获取盘口 |
|
|
|
@ -215,7 +216,7 @@ export default { |
|
|
|
this.sellList = res.swapSellList; |
|
|
|
this.buyList = res.swapBuyList; |
|
|
|
this.tradeList = res.swapTradeList; |
|
|
|
this.newPriceObj = this.tradeList[0]; |
|
|
|
// this.newPriceObj = this.tradeList[0]; |
|
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|