|
|
|
@ -206,6 +206,7 @@ export default { |
|
|
|
// } |
|
|
|
this.newPriceObj.price = msg.close; |
|
|
|
this.$emit("input", this.newPriceObj); |
|
|
|
localStorage.setItem("price",this.newPriceObj.price) |
|
|
|
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') |
|
|
|
// const closeStr = msg.close.toString(); |
|
|
|
// this.newPriceObj.price = this.symbol === 'BTC' ? closeStr.slice(0, closeStr.indexOf('.') + 2) : closeStr.slice(0, closeStr.indexOf('.') + 4); |
|
|
|
@ -224,6 +225,7 @@ export default { |
|
|
|
this.sellList = res.swapSellList; |
|
|
|
this.buyList = res.swapBuyList; |
|
|
|
this.tradeList = res.swapTradeList; |
|
|
|
localStorage.setItem("price",this.newPriceObj.price) |
|
|
|
// if(this.tradeList.length>0){ |
|
|
|
// this.newPriceObj = this.tradeList[0]; |
|
|
|
// } |
|
|
|
|