|
|
|
@ -200,10 +200,10 @@ export default { |
|
|
|
} |
|
|
|
bus.$on('collapse', msg => { |
|
|
|
this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); |
|
|
|
if (msg.close.endsWith('.')) { |
|
|
|
// 如果是整数,添加一个'0'到字符串末尾 |
|
|
|
msg.close += '0'; |
|
|
|
} |
|
|
|
// if (msg.close.endsWith('.')) { |
|
|
|
// // 如果是整数,添加一个'0'到字符串末尾 |
|
|
|
// msg.close += '0'; |
|
|
|
// } |
|
|
|
this.newPriceObj.price = msg.close; |
|
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') |
|
|
|
|