| | |
| | | <div class="value"> |
| | | {{ obj.type | currencySymbol }} |
| | | {{ (obj.nowPrice * bform.num) | _toLocaleString }} |
| | | <div v-if="obj.type == 'US'"> |
| | | ≈ MX$ {{ (obj.nowPrice * bform.num * utm) | _toLocaleString }} |
| | | <div v-if="obj.type != $mc"> |
| | | ≈ $ |
| | | {{ (obj.nowPrice * bform.num * rate(obj.type)) | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="value"> |
| | | {{ obj.type | currencySymbol }} |
| | | {{ (obj.nowPrice * sform.num) | _toLocaleString }} |
| | | <div v-if="obj.type == 'US'"> |
| | | ≈ MX$ {{ (obj.nowPrice * sform.num * utm) | _toLocaleString }} |
| | | <div v-if="obj.type != $mc"> |
| | | ≈ $ |
| | | {{ (obj.nowPrice * sform.num * rate(obj.type)) | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | // 通过进度条来计算数量 |
| | | bVal(val) { |
| | | if (this.obj.type == "US") |
| | | if (this.obj.type != this.$mc) |
| | | this.bform.num = Math.floor( |
| | | (this.moneyData.availableBalance * (val / 100)) / |
| | | (this.obj.nowPrice * this.utm) |
| | | (this.obj.nowPrice * this.rate(this.obj.type)) |
| | | ); |
| | | else |
| | | this.bform.num = Math.floor( |