优化:提现 - 只有一个提现打款方式时,默认选中
This commit is contained in:
parent
e7295879bc
commit
64f344ea51
|
|
@ -243,7 +243,7 @@ export default {
|
||||||
this.actual_amount = "0.00";
|
this.actual_amount = "0.00";
|
||||||
|
|
||||||
this.getData(); // 初始化数据
|
this.getData(); // 初始化数据
|
||||||
// this.getWithdrawType(); // 获取提现方式
|
this.getWithdrawType(false); // 获取提现方式
|
||||||
|
|
||||||
this.customizeIncome();
|
this.customizeIncome();
|
||||||
this.dynamicTxt();
|
this.dynamicTxt();
|
||||||
|
|
@ -430,7 +430,6 @@ export default {
|
||||||
if(key){
|
if(key){
|
||||||
this.show1 = true;
|
this.show1 = true;
|
||||||
}
|
}
|
||||||
console.log(response);
|
|
||||||
this.pay_typeList = response.data;
|
this.pay_typeList = response.data;
|
||||||
this.initWithdrawType(response.data);
|
this.initWithdrawType(response.data);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -544,6 +543,15 @@ export default {
|
||||||
this.tax_withdraw_Pay(data)//税惠添薪
|
this.tax_withdraw_Pay(data)//税惠添薪
|
||||||
// 汇聚代发薪
|
// 汇聚代发薪
|
||||||
this.consol_withdraw_Pay(data);
|
this.consol_withdraw_Pay(data);
|
||||||
|
|
||||||
|
// 处理:只有一个时 默认选中
|
||||||
|
let newData = Object.assign({}, data);
|
||||||
|
delete newData.service_switch;
|
||||||
|
let newDataKeys = Object.keys(newData);
|
||||||
|
if(newDataKeys.length == 1){
|
||||||
|
this.pay_type = newDataKeys[0];
|
||||||
|
this.SelectHandle(newDataKeys[0]);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 支付宝
|
// 支付宝
|
||||||
|
|
@ -905,6 +913,7 @@ export default {
|
||||||
},
|
},
|
||||||
//提现方式选择监听
|
//提现方式选择监听
|
||||||
SelectHandle(val){
|
SelectHandle(val){
|
||||||
|
console.log("当前选中内容:",val);
|
||||||
//判断微信/支付宝/银行卡-好灵工是否注册,未注册则跳转到注册页面
|
//判断微信/支付宝/银行卡-好灵工是否注册,未注册则跳转到注册页面
|
||||||
if(this.pay_type=='worker_withdraw_bank' || this.pay_type=='worker_withdraw_wechat' || this.pay_type=='worker_withdraw_alipay' ){
|
if(this.pay_type=='worker_withdraw_bank' || this.pay_type=='worker_withdraw_wechat' || this.pay_type=='worker_withdraw_alipay' ){
|
||||||
if(this[this.pay_type].extra_data.is_register == 0){
|
if(this[this.pay_type].extra_data.is_register == 0){
|
||||||
|
|
@ -1040,6 +1049,8 @@ export default {
|
||||||
this.pay_type = '';
|
this.pay_type = '';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
// 全选监听
|
// 全选监听
|
||||||
allSelectHandle(value) {
|
allSelectHandle(value) {
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<van-sticky :offset-top="40" @change="stickChange">
|
<van-sticky :offset-top="40" @change="stickChange">
|
||||||
<div class="elementsin_bottom" v-if="checkList.length > 0" @click="getWithdrawType" :style="{ 'background-color': stickStatus ? 'rgb(250, 138, 77,1)' : '' }">
|
<div class="elementsin_bottom" @click="getWithdrawType" :style="{ 'background-color': stickStatus ? 'rgb(250, 138, 77,1)' : '' }">
|
||||||
<i class="iconfont" :class="[withTypeTipsIcon]"></i>
|
<i class="iconfont" :class="[withTypeTipsIcon]"></i>
|
||||||
<div class="elementsin_bottom_text" v-if="pay_type">
|
<div class="elementsin_bottom_text" v-if="pay_type">
|
||||||
<span class="elementsin_bottom_text_top">{{ withTypeTipsTitle }} </span>
|
<span class="elementsin_bottom_text_top">{{ withTypeTipsTitle }} </span>
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
"/addons/yun_shop/api.php": {
|
"/addons/yun_shop/api.php": {
|
||||||
target: "https://bztang.cdlfjy.com/", //目标接口域名bztang.cdlfjy.com testbzt.cdlfjy.com
|
target: "https://testbzt.cdlfjy.com/", //目标接口域名bztang.cdlfjy.com testbzt.cdlfjy.com
|
||||||
changeOrigin: true, //是否跨域
|
changeOrigin: true, //是否跨域
|
||||||
secure: false
|
secure: false
|
||||||
// pathRewrite: {
|
// pathRewrite: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue