luyisha 3 years ago
parent
commit
0b3782d416
  1. 8
      src/views/contract/handicap.vue

8
src/views/contract/handicap.vue

@ -199,9 +199,9 @@ export default {
this.linkSocket(); this.linkSocket();
} }
bus.$on('collapse', msg => { bus.$on('collapse', msg => {
// this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3);
// this.newPriceObj.price = msg.close; // this.newPriceObj.price = msg.close;
// this.$emit("input", this.newPriceObj); this.$emit("input", this.newPriceObj);
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') // console.log(this.newPriceObj.price, 'this.newPriceObj.price-----')
}); });
}, },
@ -271,8 +271,8 @@ export default {
} else if (sub == this.msg.trade) { } else if (sub == this.msg.trade) {
this.tradeList.unshift(data); this.tradeList.unshift(data);
this.tradeList.pop(); this.tradeList.pop();
this.newPriceObj = data; // this.newPriceObj = data;
this.$emit("input", this.newPriceObj); // this.$emit("input", this.newPriceObj);
} else if (type == "ping" ||cmd == "ping") { } else if (type == "ping" ||cmd == "ping") {
this.ws.send({ this.ws.send({
cmd: "pong" cmd: "pong"

Loading…
Cancel
Save