钱包提现适配新版本

master
gongfuxiang 2024-09-22 17:30:17 +08:00
parent 393b18e043
commit e1b9ca5a6b
5 changed files with 76 additions and 16 deletions

View File

@ -1306,6 +1306,7 @@
"iaw845": "Withdrawable amount",
"1dbkw2": "Available amount",
"162f7o": "Total amount of gifts",
"yu2raf": "Withdrawal method",
"5mmir5": "Payment platform",
"14n20v": "It is strongly recommended to give priority to filling in the names of the four state-owned banks (Bank of China, China Construction Bank, Industrial and Commercial Bank of China and Agricultural Bank of China). Please fill in the detailed names of the branches of the deposit banks. For virtual accounts such as Alipay, Tenpay and WeChat, you can fill in the corresponding names directly.",
"36756z": "Receiving account",
@ -1320,6 +1321,7 @@
"s72t44": "The format of the receiving account should be between 1 and 60 characters",
"f4605e": "The format of the account holder's name is between 1 to 30 characters",
"6t7x9u": "Please fill in the cash amount",
"thjid2": "Please choose a withdrawal method",
"vbr59h": "Please fill in the payment platform",
"0mn186": "Please fill in the receiving account number",
"c7h4mu": "Please fill in the name of the account holder",

View File

@ -1298,7 +1298,8 @@
"iaw845": "可提现金额",
"1dbkw2": "可用金额",
"162f7o": "赠送总额",
"5mmir5": "收款平台",
"yu2raf": "提现方式",
"5mmir5": "收款平台",
"14n20v": "强烈建议优先填写国有4大银行(中国银行、中国建设银行、中国工商银行和中国农业银行) 请填写详细的开户银行分行名称,虚拟账户如支付宝、财付通、微信 直接填写 相应的名称 即可。",
"36756z": "收款账号",
"748r3i": "银行账号或虚拟账号(支付宝、财付通、微信等账号)",
@ -1312,6 +1313,7 @@
"s72t44": "收款账号格式 1~60 个字符之间",
"f4605e": "开户人姓名格式 1~30 个字符之间",
"6t7x9u": "请填写提现金额",
"thjid2": "请选择提现方式",
"vbr59h": "请填写收款平台",
"0mn186": "请填写收款账号",
"c7h4mu": "请填写开户人姓名",

View File

@ -33,7 +33,7 @@
<view class="margin-top-lg cr-base">
<view class="fw-b text-size">{{$t('cash-auth.cash-auth.0j8388')}}</view>
<view class="text-size-xs">
<view>{{$t('cash-auth.cash-auth.59iipw')}}<text class="cr-red">{{$t('cash-auth.cash-auth.8qcte7')}}</text>{{$t('cash-auth.cash-auth.t8y3r7')}}<text class="cr-red">{{$t('login.login.np9177')}}</text>{{$t('cash-auth.cash-auth.5wbuuy')}}</view>
<view>{{$t('cash-auth.cash-auth.59iipw')}}<text class="cr-red" data-value="/pages/login/login?opt_type=bind_email&opt_form=bind_email" @tap="url_event">{{$t('cash-auth.cash-auth.8qcte7')}}</text>{{$t('cash-auth.cash-auth.t8y3r7')}}<text class="cr-red" data-value="/pages/login/login?opt_form=bind_verify" @tap="url_event">{{$t('login.login.np9177')}}</text>{{$t('cash-auth.cash-auth.5wbuuy')}}</view>
<view>{{$t('cash-auth.cash-auth.r569wz')}}</view>
<view>{{$t('cash-auth.cash-auth.35837l')}}</view>
<view>{{$t('cash-auth.cash-auth.q2a553')}}</view>

View File

@ -29,24 +29,35 @@
<text class="fw-b margin-left-sm">{{cash_commission_value}}</text>
</view>
</view>
</view>
<view class="form-gorup">
<view class="form-gorup-title">{{$t('cash-create.cash-create.yu2raf')}}<text class="form-group-tips-must">*</text></view>
<radio-group name="cash_type" @change="cash_type_event">
<block v-for="(item, index) in user_cash_type_list" :key="index">
<label class="margin-right">
<radio :value="item.value" :color="theme_color" :checked="default_data.cash_type == item.value" style="transform: scale(0.7)" /> {{item.name}}
</label>
</block>
</radio-group>
</view>
<view class="form-gorup">
<view v-if="cash_type_0_status" class="form-gorup">
<view class="form-gorup-title">{{$t('cash-create.cash-create.5mmir5')}}<text class="form-group-tips-must">*</text></view>
<input type="text" name="bank_name" :value="default_data.bank_name || ''" placeholder-class="cr-grey" class="cr-base" maxlength="60" :placeholder="$t('cash-create.cash-create.u2rnlw')" />
<view class="cr-red text-size-xs">{{$t('cash-create.cash-create.14n20v')}}</view>
<view class="cr-grey-c text-size-xs">{{$t('cash-create.cash-create.14n20v')}}</view>
</view>
<view class="form-gorup">
<view v-if="cash_type_0_status || cash_type_2_status" class="form-gorup">
<view class="form-gorup-title">{{$t('cash-create.cash-create.36756z')}}<text class="form-group-tips-must">*</text></view>
<input type="text" name="bank_accounts" :value="default_data.bank_accounts || ''" placeholder-class="cr-grey" class="cr-base" maxlength="60" :placeholder="$t('cash-create.cash-create.s72t44')" />
<view class="cr-red text-size-xs">{{$t('cash-create.cash-create.748r3i')}}</view>
<view class="cr-grey-c text-size-xs">{{$t('cash-create.cash-create.748r3i')}}</view>
</view>
<view class="form-gorup">
<view class="form-gorup-title">{{$t('cash-create.cash-create.1xtff6')}}<text class="form-group-tips-must">*</text></view>
<input type="text" name="bank_username" :value="default_data.bank_username || ''" placeholder-class="cr-grey" class="cr-base" maxlength="30" :placeholder="$t('cash-create.cash-create.f4605e')" />
<view class="cr-red text-size-xs">{{$t('cash-create.cash-create.445m7n')}}</view>
<view class="cr-grey-c text-size-xs">{{$t('cash-create.cash-create.445m7n')}}</view>
</view>
<view class="bottom-fixed">
@ -78,7 +89,8 @@
export default {
data() {
return {
theme_view: app.globalData.get_theme_value_view(),
theme_view: app.globalData.get_theme_value_view(),
theme_color: app.globalData.get_theme_color(),
params: null,
form_submit_loading: false,
data_list_loding_status: 1,
@ -88,7 +100,10 @@
default_data: {},
check_status: null,
can_cash_max_money: 0.00,
cash_commission_value: 0.00
cash_commission_value: 0.00,
user_cash_type_list: [],
cash_type_0_status: false,
cash_type_2_status: false
};
},
@ -156,8 +171,13 @@
check_status: data.check_status || 0,
default_data: data.default_data || {},
user_wallet: data.user_wallet || {},
can_cash_max_money: parseFloat(data.can_cash_max_money) || 0.0,
});
can_cash_max_money: parseFloat(data.can_cash_max_money) || 0.0,
user_cash_type_list: data.user_cash_type_list || []
});
//
if(this.default_data.cash_type !== undefined) {
this.cash_type_event(this.default_data.cash_type);
}
} else {
this.setData({
data_list_loding_status: 2,
@ -187,6 +207,35 @@
cash_commission_value: app.globalData.price_two_decimal(value*parseFloat(this.data_base.cash_commission_rate)),
})
}
},
//
cash_type_event(e) {
var status_0 = false;
var status_2 = false;
var value = parseInt(typeof(e) == 'object' ? e.detail.value : e);
switch(value)
{
//
case 0 :
status_2 = false;
status_0 = true;
break;
//
case 1 :
status_0 = false;
status_2 = false;
break;
//
case 2 :
status_0 = false;
status_2 = true;
break;
}
this.setData({
cash_type_0_status: status_0,
cash_type_2_status: status_2
});
},
//
@ -196,11 +245,17 @@
//
var validation = [
{ fields: 'money', msg: this.$t('cash-create.cash-create.6t7x9u') },
{ fields: 'bank_name', msg: this.$t('cash-create.cash-create.vbr59h') },
{ fields: 'bank_accounts', msg: this.$t('cash-create.cash-create.0mn186') },
{ fields: 'bank_username', msg: this.$t('cash-create.cash-create.c7h4mu') },
];
{ fields: 'money', msg: this.$t('cash-create.cash-create.6t7x9u') },
{ fields: 'cash_type', msg: this.$t('cash-create.cash-create.thjid2'), is_can_zero: 1 }
];
var cash_type = parseInt(form_data.cash_type);
if(cash_type == 0) {
validation.push({ fields: 'bank_name', msg: this.$t('cash-create.cash-create.vbr59h') });
}
if(cash_type == 0 || cash_type == 2) {
validation.push({ fields: 'bank_accounts', msg: this.$t('cash-create.cash-create.0mn186') });
}
validation.push({ fields: 'bank_username', msg: this.$t('cash-create.cash-create.c7h4mu') });
//
if (app.globalData.fields_check(form_data, validation)) {

View File

@ -92,6 +92,7 @@ export default {
{ name: this.$t('user-cash-detail.user-cash-detail.wyad6w'), value: data.data.status_name || "" },
{ name: this.$t('cash-create.cash-create.qg404q'), value: data.data.money || "" },
{ name: this.$t('cash-create.cash-create.9ugssd'), value: data.data.commission || "" },
{ name: this.$t('cash-create.cash-create.yu2raf'), value: data.data.cash_type_name || "" },
{ name: this.$t('user-cash-detail.user-cash-detail.j5s3u6'), value: data.data.bank_name || "" },
{ name: this.$t('user-cash-detail.user-cash-detail.53k647'), value: data.data.bank_username || "" },
{ name: this.$t('user-cash-detail.user-cash-detail.m556tl'), value: data.data.bank_accounts || "" },