| | |
| | | {{ $t("exchange.c8") }}: |
| | | </view> |
| | | <view class="" style="font-weight: 500;font-size: 14px;color: #232533;"> |
| | | {{ kypirce[0].usable_balance }} {{symbol.split('/')[0]}} |
| | | {{ kypirce[0].usable_balance.toFixed(8) }} {{symbol.split('/')[0]}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | {{ newPrice.price }} |
| | | </view> |
| | | <view class="fn-xs" v-if="newPrice.price"> |
| | | ≈ ¥{{ omitTo(newPrice.price * price_cny, 2) }} |
| | | ≈ ${{ omitTo(newPrice.price * price_cny, 2) }} |
| | | </view> |
| | | </sell-and-buy> |
| | | </view> |
| | |
| | | this.form.amount = math.multiple( |
| | | this.targetBalance.usable_balance / this.form.entrust_price, |
| | | num, |
| | | 4 |
| | | 8 |
| | | ); |
| | | |
| | | } else if (this.form.type == 1) { |
| | | this.form.amount = this.form.amount = math.multiple( |
| | | this.targetBalance.usable_balance, |
| | | num, |
| | | 4 |
| | | 8 |
| | | ); |
| | | } |
| | | } else if (this.form.direction == "sell") { |
| | |
| | | this.form.amount = math.multiple( |
| | | this.currentBalance.usable_balance, |
| | | num, |
| | | 4 |
| | | 8 |
| | | ); |
| | | } |
| | | }, |