|
@@ -132,7 +132,7 @@
|
|
|
<h6>
|
|
<h6>
|
|
|
<text>{{
|
|
<text>{{
|
|
|
t('Custom.Withdraw.addBank')
|
|
t('Custom.Withdraw.addBank')
|
|
|
- }}</text>
|
|
|
|
|
|
|
+ }}</text>
|
|
|
<text class="add-btn crm-cursor"
|
|
<text class="add-btn crm-cursor"
|
|
|
@click="openAddBankCard('add_bankCard')">
|
|
@click="openAddBankCard('add_bankCard')">
|
|
|
{{ t('Custom.Withdraw.addBank1') }}
|
|
{{ t('Custom.Withdraw.addBank1') }}
|
|
@@ -386,7 +386,7 @@
|
|
|
<view class="b-card">
|
|
<view class="b-card">
|
|
|
<view class="card-top">
|
|
<view class="card-top">
|
|
|
<text class="tit">{{ t('Custom.Deposit.Title22')
|
|
<text class="tit">{{ t('Custom.Deposit.Title22')
|
|
|
- }}</text>
|
|
|
|
|
|
|
+ }}</text>
|
|
|
<cwg-combox :clearable="false" v-model:value="channelId" :options="channelListOptions"
|
|
<cwg-combox :clearable="false" v-model:value="channelId" :options="channelListOptions"
|
|
|
:placeholder="t('placeholder.choose')">
|
|
:placeholder="t('placeholder.choose')">
|
|
|
</cwg-combox>
|
|
</cwg-combox>
|
|
@@ -510,7 +510,7 @@
|
|
|
</text>
|
|
</text>
|
|
|
<text v-if="channelData.type == 'BANK'">{{
|
|
<text v-if="channelData.type == 'BANK'">{{
|
|
|
t('Custom.Withdraw.addBank')
|
|
t('Custom.Withdraw.addBank')
|
|
|
- }}</text>
|
|
|
|
|
|
|
+ }}</text>
|
|
|
<text v-if="channelData.type == 'BANK'" class="add-btn crm-cursor"
|
|
<text v-if="channelData.type == 'BANK'" class="add-btn crm-cursor"
|
|
|
@click="openAddBankCard('add_bankCard')">
|
|
@click="openAddBankCard('add_bankCard')">
|
|
|
{{ t('Custom.Withdraw.addBank1') }}
|
|
{{ t('Custom.Withdraw.addBank1') }}
|
|
@@ -658,7 +658,7 @@
|
|
|
<view v-if="channelData.type != 'BANK_TELEGRAPHIC'">
|
|
<view v-if="channelData.type != 'BANK_TELEGRAPHIC'">
|
|
|
<view class="tit">
|
|
<view class="tit">
|
|
|
<text>{{ t('Custom.Withdraw.Title3') + '(' + channelData.currency + ')'
|
|
<text>{{ t('Custom.Withdraw.Title3') + '(' + channelData.currency + ')'
|
|
|
- }}</text>
|
|
|
|
|
|
|
+ }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="channelData.type != 'BANK_TELEGRAPHIC'"
|
|
<view v-if="channelData.type != 'BANK_TELEGRAPHIC'"
|
|
@@ -701,7 +701,7 @@
|
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
|
</view>
|
|
</view>
|
|
|
<button class="s-btn" type="primary" @click="openTips">{{ t('Btn.Submit')
|
|
<button class="s-btn" type="primary" @click="openTips">{{ t('Btn.Submit')
|
|
|
- }}</button>
|
|
|
|
|
|
|
+ }}</button>
|
|
|
|
|
|
|
|
</uni-forms>
|
|
</uni-forms>
|
|
|
</view>
|
|
</view>
|
|
@@ -1106,6 +1106,10 @@ const rules = computed(() => ({
|
|
|
callback(t('vaildate.amount.amount') + mAmount.minAmount + ' - ' + mAmount.maxAmount);
|
|
callback(t('vaildate.amount.amount') + mAmount.minAmount + ' - ' + mAmount.maxAmount);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (value > loginAmount.value) {
|
|
|
|
|
+ callback(t('Label.LoginBalance') + ':$' + loginAmount.value);
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
if (/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
|
|
if (/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
|
|
|
return true;
|
|
return true;
|
|
|
} else {
|
|
} else {
|
|
@@ -1168,15 +1172,15 @@ const rules = computed(() => ({
|
|
|
}));
|
|
}));
|
|
|
const amountErrorMessage = ref('')
|
|
const amountErrorMessage = ref('')
|
|
|
const validateAmount = () => {
|
|
const validateAmount = () => {
|
|
|
- const amount = form.amount
|
|
|
|
|
|
|
+ const amount = Number(form.amount)
|
|
|
if (!amount && amount !== 0) {
|
|
if (!amount && amount !== 0) {
|
|
|
amountErrorMessage.value = t('vaildate.amount.format')
|
|
amountErrorMessage.value = t('vaildate.amount.format')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
+ const numValue = Number(amount);
|
|
|
if (mAmount.minAmount && mAmount.maxAmount) {
|
|
if (mAmount.minAmount && mAmount.maxAmount) {
|
|
|
const min = Number(mAmount.minAmount);
|
|
const min = Number(mAmount.minAmount);
|
|
|
const max = Number(mAmount.maxAmount);
|
|
const max = Number(mAmount.maxAmount);
|
|
|
- const numValue = Number(amount);
|
|
|
|
|
if (numValue < min || numValue > max) {
|
|
if (numValue < min || numValue > max) {
|
|
|
amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
|
|
amountErrorMessage.value = t('vaildate.amount.amount') + min + '-' + max
|
|
|
return false
|
|
return false
|
|
@@ -1186,6 +1190,10 @@ const validateAmount = () => {
|
|
|
amountErrorMessage.value = t('vaildate.amount.format')
|
|
amountErrorMessage.value = t('vaildate.amount.format')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
+ if (amount > balance.value) {
|
|
|
|
|
+ amountErrorMessage.value = t('Label.LoginBalance') + ':$' + balance.value
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
amountErrorMessage.value = ''
|
|
amountErrorMessage.value = ''
|
|
|
return true
|
|
return true
|
|
|
}
|
|
}
|