diff --git a/src/components/CommonHeader.vue b/src/components/CommonHeader.vue index 206988f..6be22ad 100644 --- a/src/components/CommonHeader.vue +++ b/src/components/CommonHeader.vue @@ -595,7 +595,7 @@ header { max-width: 20% !important; } header .nav-link{ - font-size: 18px !important; + font-size: 14px !important; } header nav a:hover { color: #EABB71 !important; diff --git a/src/favicon.ico b/src/favicon.ico index 188bfd2..cec18ae 100644 Binary files a/src/favicon.ico and b/src/favicon.ico differ diff --git a/src/views/contract/handicap.vue b/src/views/contract/handicap.vue index 73f93ad..eaabc9d 100644 --- a/src/views/contract/handicap.vue +++ b/src/views/contract/handicap.vue @@ -200,8 +200,8 @@ export default { } bus.$on('collapse', msg => { // this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); - this.newPriceObj.price = msg.close; - this.$emit("input", this.newPriceObj); + // this.newPriceObj.price = msg.close; + // this.$emit("input", this.newPriceObj); // console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') }); }, @@ -217,7 +217,9 @@ export default { this.sellList = res.swapSellList; this.buyList = res.swapBuyList; this.tradeList = res.swapTradeList; - // this.newPriceObj = this.tradeList[0]; + if(this.tradeList.length>0){ + this.newPriceObj = this.tradeList[0]; + } this.$emit("input", this.newPriceObj); }); }, @@ -269,8 +271,8 @@ export default { } else if (sub == this.msg.trade) { this.tradeList.unshift(data); this.tradeList.pop(); - // this.newPriceObj = data; - // this.$emit("input", this.newPriceObj); + this.newPriceObj = data; + this.$emit("input", this.newPriceObj); } else if (type == "ping" ||cmd == "ping") { this.ws.send({ cmd: "pong" diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index 3deab85..7b9ec93 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -107,7 +107,7 @@