|
|
@ -206,6 +206,7 @@ export default { |
|
|
// } |
|
|
// } |
|
|
this.newPriceObj.price = msg.close; |
|
|
this.newPriceObj.price = msg.close; |
|
|
this.$emit("input", this.newPriceObj); |
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
|
|
localStorage.setItem("price",this.newPriceObj.price) |
|
|
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') |
|
|
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') |
|
|
// const closeStr = msg.close.toString(); |
|
|
// const closeStr = msg.close.toString(); |
|
|
// this.newPriceObj.price = this.symbol === 'BTC' ? closeStr.slice(0, closeStr.indexOf('.') + 2) : closeStr.slice(0, closeStr.indexOf('.') + 4); |
|
|
// this.newPriceObj.price = this.symbol === 'BTC' ? closeStr.slice(0, closeStr.indexOf('.') + 2) : closeStr.slice(0, closeStr.indexOf('.') + 4); |
|
|
@ -228,6 +229,7 @@ export default { |
|
|
this.newPriceObj = this.tradeList[0]; |
|
|
this.newPriceObj = this.tradeList[0]; |
|
|
// } |
|
|
// } |
|
|
this.$emit("input", this.newPriceObj); |
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
|
|
localStorage.setItem("price",this.newPriceObj.price) |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 计算深度 |
|
|
// 计算深度 |
|
|
|