diff --git a/src/views/contract/handicap.vue b/src/views/contract/handicap.vue index 66d1eb7..1b1b1c6 100644 --- a/src/views/contract/handicap.vue +++ b/src/views/contract/handicap.vue @@ -197,7 +197,7 @@ export default { } bus.$on('collapse', msg => { // this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); - const closeStr = msg.close.toString(); + const closeStr = msg.close.toFixed(1) this.newPriceObj.price = this.symbol === 'BTC' ? closeStr.slice(0, closeStr.indexOf('.') + 2) : closeStr.slice(0, closeStr.indexOf('.') + 4); this.$emit("input", this.newPriceObj); }); diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index 6cf1aaf..d76550e 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -31,9 +31,18 @@ style="max-height:300px;overflow:auto;" >