|
@@ -117,6 +117,16 @@ async function getConfig() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 计算服务费
|
|
|
|
|
+const serviceFee = computed(() => {
|
|
|
|
|
+ const amount = Number(formData.value.amount)
|
|
|
|
|
+ if (!amount || Number.isNaN(amount) || !withdrawRate.value) {
|
|
|
|
|
+ return '0.00'
|
|
|
|
|
+ }
|
|
|
|
|
+ const rate = Number(withdrawRate.value)
|
|
|
|
|
+ return formatNumber(amount * (rate / 100))
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
|
getConfig()
|
|
getConfig()
|
|
|
queryParams.value = options
|
|
queryParams.value = options
|
|
@@ -201,6 +211,9 @@ onLoad((options) => {
|
|
|
{{ $t('wallet.withdraw.form.allAmount') }}
|
|
{{ $t('wallet.withdraw.form.allAmount') }}
|
|
|
</wd-button>
|
|
</wd-button>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="text-24rpx">
|
|
|
|
|
+ Service Fee:৳{{ serviceFee }}
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<wd-button plain block custom-class="h-80rpx!" :loading="loading" @click="submit">
|
|
<wd-button plain block custom-class="h-80rpx!" :loading="loading" @click="submit">
|
|
|
{{ $t('wallet.withdraw.form.submit') }}
|
|
{{ $t('wallet.withdraw.form.submit') }}
|