|
|
|
@ -374,8 +374,7 @@ export default { |
|
|
|
if (!this.isMarket) { |
|
|
|
return Math.multiple(this.buyorder.entrust_price, this.buyorder.amount); |
|
|
|
} else { |
|
|
|
// return this.cacheTotal; |
|
|
|
return Math.multiple(this.buyorder.entrust_price, this.buyorder.amount); |
|
|
|
return this.cacheTotal; |
|
|
|
} |
|
|
|
}, |
|
|
|
set(val) { |
|
|
|
@ -383,9 +382,8 @@ export default { |
|
|
|
if (!this.isMarket) { |
|
|
|
this.buyorder.amount = Math.division(val, this.buyorder.entrust_price); |
|
|
|
} else { // 市价单 缓存总值 |
|
|
|
// this.cacheTotal = val; |
|
|
|
// this.buyorder.amount = this.cacheTotal |
|
|
|
this.buyorder.amount = Math.division(val, this.buyorder.entrust_price,6); |
|
|
|
this.cacheTotal = val; |
|
|
|
this.buyorder.amount = this.cacheTotal; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -548,9 +546,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
renderBuyAmount(val, index) { |
|
|
|
// console.Info(val) |
|
|
|
// console.Info(this.buyorder) |
|
|
|
if (!this.buyorder.entrust_price) { |
|
|
|
if (!this.isMarket && !this.buyorder.entrust_price) { |
|
|
|
this.visibles.buy.limitPrice = true; |
|
|
|
this.msgList.buy[1] = this.$t('nav.set'); |
|
|
|
this.clearAll(); |
|
|
|
@ -644,9 +640,7 @@ export default { |
|
|
|
this.buyorder.amount = 0; |
|
|
|
this.sellorder.amount = 0; |
|
|
|
|
|
|
|
// total赋值会触发set方法 |
|
|
|
// this.buyTotal = 0; |
|
|
|
// this.cacheTotal = 0; |
|
|
|
this.cacheTotal = 0; |
|
|
|
|
|
|
|
// 去除百分比样式 |
|
|
|
this.buyPercentIndex = -1; |
|
|
|
|