|
|
|
@ -105,9 +105,8 @@ |
|
|
|
</v-picker> |
|
|
|
<view class="tips m-t-xs fn-sm d-flex justify-between color-sell"> |
|
|
|
<view> |
|
|
|
{{ num || 1 }} {{ activeCoin.coin_name }} ≈ |
|
|
|
<!-- {{ omitTo(activeCoin.proportion_amount, 4) }} --> |
|
|
|
{{ omitTo((1 / detail.issue_price * activeCoin.CurrentPrice * num), 4) }} |
|
|
|
{{ 1 }} {{ activeCoin.coin_name }} ≈ |
|
|
|
{{ omitTo((1 / detail.issue_price * activeCoin.CurrentPrice * 1), 4) }} |
|
|
|
{{ detail.coin_name }} |
|
|
|
</view> |
|
|
|
<!--<view class="color-sell">--> |
|
|
|
@ -117,11 +116,18 @@ |
|
|
|
<!-- {{ detail.coin_name }}--> |
|
|
|
<!--</view>--> |
|
|
|
</view> |
|
|
|
<view class="tips m-t-xs fn-sm d-flex justify-between color-sell"> |
|
|
|
<view> |
|
|
|
{{ num }} {{ activeCoin.coin_name }} ≈ |
|
|
|
{{ omitTo((1 / detail.issue_price * activeCoin.CurrentPrice * num), 4) }} |
|
|
|
{{ detail.coin_name }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="m-y-md"> |
|
|
|
<view class="label">{{ $t("purchase.a7") }}</view> |
|
|
|
<view class="border-b p-y-xs color-light"> |
|
|
|
<v-input type="number" v-model="num" :placeholder="$t('purchase.a8')"> |
|
|
|
<v-input type="text" v-model="num" :placeholder="$t('purchase.a8')"> |
|
|
|
<template #right> |
|
|
|
<view |
|
|
|
class="color-success" |
|
|
|
@ -133,6 +139,12 @@ |
|
|
|
</v-input> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="m-y-md d-flex"> |
|
|
|
<view class="label">{{ $t("purchase.availableBalance")+':' }}</view> |
|
|
|
<view class="color-light"> |
|
|
|
{{ activeCoin.usable_balance * 1 || 0 }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<v-button |
|
|
|
block |
|
|
|
class="w-max rounded-lg" |
|
|
|
@ -332,6 +344,10 @@ export default { |
|
|
|
if (res) { |
|
|
|
this.$toast.success(this.$t("purchase.b9")); |
|
|
|
this.num = ""; |
|
|
|
setTimeout(()=>{ |
|
|
|
this.subscribeTokenList(); |
|
|
|
this.getInfo(); |
|
|
|
}, 1000) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
|