|
@@ -3,13 +3,14 @@
|
|
layout: 'default',
|
|
layout: 'default',
|
|
style: {
|
|
style: {
|
|
navigationStyle: 'custom',
|
|
navigationStyle: 'custom',
|
|
- navigationBarTitleText: 'Withdraw',
|
|
|
|
|
|
+ navigationBarTitleText: '%wallet.withdraw.title%',
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</route>
|
|
</route>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { withdrawAdd } from '@/api/wallet'
|
|
import { withdrawAdd } from '@/api/wallet'
|
|
|
|
+import { t } from '@/locale'
|
|
import { formatNumber } from '@/utils'
|
|
import { formatNumber } from '@/utils'
|
|
import { getPageParams, goBack, toPage } from '@/utils/page'
|
|
import { getPageParams, goBack, toPage } from '@/utils/page'
|
|
import { toast } from '@/utils/toast'
|
|
import { toast } from '@/utils/toast'
|
|
@@ -32,19 +33,19 @@ const formData = ref({
|
|
})
|
|
})
|
|
async function submit() {
|
|
async function submit() {
|
|
if (!formData.value.bank) {
|
|
if (!formData.value.bank) {
|
|
- toast.info('Please enter Bank Name')
|
|
|
|
|
|
+ toast.info(t('wallet.withdraw.error.bankName'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!formData.value.bankAccountName) {
|
|
if (!formData.value.bankAccountName) {
|
|
- toast.info('Please enter Bank Account Name')
|
|
|
|
|
|
+ toast.info(t('wallet.withdraw.error.bankAccountName'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!formData.value.bankAccount) {
|
|
if (!formData.value.bankAccount) {
|
|
- toast.info('Please enter Bank Account No.')
|
|
|
|
|
|
+ toast.info(t('wallet.withdraw.error.bankAccountNo'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!formData.value.amount) {
|
|
if (!formData.value.amount) {
|
|
- toast.info('Please enter Withdrawal Amount')
|
|
|
|
|
|
+ toast.info(t('wallet.withdraw.error.amount'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
const res = await withdrawAdd({ ...formData.value, accountType: queryParams.value.type })
|
|
const res = await withdrawAdd({ ...formData.value, accountType: queryParams.value.type })
|
|
@@ -61,20 +62,20 @@ onLoad((options) => {
|
|
custom-class="bg-#FEE750!"
|
|
custom-class="bg-#FEE750!"
|
|
:bordered="false"
|
|
:bordered="false"
|
|
safe-area-inset-top placeholder fixed
|
|
safe-area-inset-top placeholder fixed
|
|
- title="Withdraw"
|
|
|
|
|
|
+ :title="t('wallet.withdraw.title')"
|
|
>
|
|
>
|
|
<template #left>
|
|
<template #left>
|
|
<wd-icon name="thin-arrow-left" size="32rpx" @click="goBack" />
|
|
<wd-icon name="thin-arrow-left" size="32rpx" @click="goBack" />
|
|
</template>
|
|
</template>
|
|
<template #right>
|
|
<template #right>
|
|
<text class="text-28rpx" @click="toPage('/pages/wallet/withdrawRecord', { type: queryParams.type })">
|
|
<text class="text-28rpx" @click="toPage('/pages/wallet/withdrawRecord', { type: queryParams.type })">
|
|
- Record
|
|
|
|
|
|
+ {{ t('wallet.withdraw.record') }}
|
|
</text>
|
|
</text>
|
|
</template>
|
|
</template>
|
|
</wd-navbar>
|
|
</wd-navbar>
|
|
<view class="px-28rpx pb-28rpx pt-40rpx">
|
|
<view class="px-28rpx pb-28rpx pt-40rpx">
|
|
<view class="text-28rpx">
|
|
<view class="text-28rpx">
|
|
- Wallet Balance
|
|
|
|
|
|
+ {{ t('wallet.withdraw.balance') }}
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<text class="text-28rpx">
|
|
<text class="text-28rpx">
|
|
@@ -87,27 +88,27 @@ onLoad((options) => {
|
|
</view>
|
|
</view>
|
|
<view class="flex-1 rounded-t-24rpx bg-white p-24rpx">
|
|
<view class="flex-1 rounded-t-24rpx bg-white p-24rpx">
|
|
<view class="mb-28rpx text-32rpx">
|
|
<view class="mb-28rpx text-32rpx">
|
|
- Withdrawal information
|
|
|
|
|
|
+ {{ t('wallet.withdraw.info') }}
|
|
</view>
|
|
</view>
|
|
<wd-form ref="form" :model="formData" custom-class="mb-28rpx">
|
|
<wd-form ref="form" :model="formData" custom-class="mb-28rpx">
|
|
<view class="mb-40rpx space-y-32rpx">
|
|
<view class="mb-40rpx space-y-32rpx">
|
|
<wd-input
|
|
<wd-input
|
|
v-model="formData.bank"
|
|
v-model="formData.bank"
|
|
- placeholder="Bank Name"
|
|
|
|
|
|
+ :placeholder="t('wallet.withdraw.form.bankName')"
|
|
no-border
|
|
no-border
|
|
custom-class="bandhu-auth-input-field"
|
|
custom-class="bandhu-auth-input-field"
|
|
:readonly="userInfo.bank"
|
|
:readonly="userInfo.bank"
|
|
/>
|
|
/>
|
|
<wd-input
|
|
<wd-input
|
|
v-model="formData.bankAccountName"
|
|
v-model="formData.bankAccountName"
|
|
- placeholder="Bank Account Name"
|
|
|
|
|
|
+ :placeholder="t('wallet.withdraw.form.bankAccountName')"
|
|
no-border
|
|
no-border
|
|
custom-class="bandhu-auth-input-field"
|
|
custom-class="bandhu-auth-input-field"
|
|
:readonly="userInfo.bankAccountName"
|
|
:readonly="userInfo.bankAccountName"
|
|
/>
|
|
/>
|
|
<wd-input
|
|
<wd-input
|
|
v-model="formData.bankAccount"
|
|
v-model="formData.bankAccount"
|
|
- placeholder="Bank Account No."
|
|
|
|
|
|
+ :placeholder="t('wallet.withdraw.form.bankAccountNo')"
|
|
no-border
|
|
no-border
|
|
custom-class="bandhu-auth-input-field"
|
|
custom-class="bandhu-auth-input-field"
|
|
:readonly="userInfo.bankAccountName"
|
|
:readonly="userInfo.bankAccountName"
|
|
@@ -115,7 +116,7 @@ onLoad((options) => {
|
|
<view class="flex items-center gap-20rpx">
|
|
<view class="flex items-center gap-20rpx">
|
|
<wd-input
|
|
<wd-input
|
|
v-model="formData.amount"
|
|
v-model="formData.amount"
|
|
- placeholder="Withdrawal Amount"
|
|
|
|
|
|
+ :placeholder="t('wallet.withdraw.form.amount')"
|
|
no-border
|
|
no-border
|
|
custom-class="flex-1 bandhu-auth-input-field"
|
|
custom-class="flex-1 bandhu-auth-input-field"
|
|
/>
|
|
/>
|
|
@@ -125,26 +126,26 @@ onLoad((options) => {
|
|
custom-class="bandhu-auth-secondary-btn"
|
|
custom-class="bandhu-auth-secondary-btn"
|
|
@click="formData.amount = queryParams.balance"
|
|
@click="formData.amount = queryParams.balance"
|
|
>
|
|
>
|
|
- All Amounts
|
|
|
|
|
|
+ {{ t('wallet.withdraw.form.allAmount') }}
|
|
</wd-button>
|
|
</wd-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<wd-button plain block custom-class="h-80rpx!" @click="submit">
|
|
<wd-button plain block custom-class="h-80rpx!" @click="submit">
|
|
- Submit
|
|
|
|
|
|
+ {{ t('wallet.withdraw.form.submit') }}
|
|
</wd-button>
|
|
</wd-button>
|
|
</wd-form>
|
|
</wd-form>
|
|
<view class="text-24rpx text-#5A5A5A line-height-48rpx">
|
|
<view class="text-24rpx text-#5A5A5A line-height-48rpx">
|
|
- Notes:
|
|
|
|
|
|
+ {{ t('wallet.withdraw.notes.title') }}
|
|
<br>
|
|
<br>
|
|
- 1.Withdrawal Review Hours Are From 9 AM To 10 PM. Expected to arrive within 2 hours after withdrawal, actual arrival time is subject to the final successful processing time
|
|
|
|
|
|
+ {{ t('wallet.withdraw.notes.1') }}
|
|
<br>
|
|
<br>
|
|
- 2.Make sure your bank account details is correct.
|
|
|
|
|
|
+ {{ t('wallet.withdraw.notes.2') }}
|
|
<br>
|
|
<br>
|
|
- 3.The withdrawal bank account information must be consistent with the registered account information.
|
|
|
|
|
|
+ {{ t('wallet.withdraw.notes.3') }}
|
|
<br>
|
|
<br>
|
|
- 4.The minimum amount for a single withdrawal is ৳300 and the maximum is ৳20,000;
|
|
|
|
|
|
+ {{ t('wallet.withdraw.notes.4') }}
|
|
<br>
|
|
<br>
|
|
- 5.Every withdrawal you make will incur a 3% withdrawal handling fee;
|
|
|
|
|
|
+ {{ t('wallet.withdraw.notes.5') }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|