Commit fe3d2239 authored by 袁玲利's avatar 袁玲利

暂存

parent e7a5d58c
......@@ -607,7 +607,6 @@ export default {
typeCode: "",
unbindFlag: false, // 解绑标志
unattachedCardItem: {},
accountType: "",
};
},
onLoad: function (options) {
......@@ -1362,38 +1361,19 @@ export default {
if (bankInfo.bindCardNo == item.bindCardNo) {
return;
}
if(this.accountType == 2 && this.typeCode == 'BOCOM'){
// 交行二类户
let userName_ = (bankInfo.trueName).substring((bankInfo.trueName).length - 1)
let accountNo_ = (bankInfo.accountNo).replace(/\s*/g, "");
accountNo_ = accountNo_.substring(accountNo_.length - 4)
jWeixin.miniProgram.navigateTo({
url: '/pages_subpackB/pages/FaceRecogAuthen/main?userName=' + userName_ +
"&accountNo=" + accountNo_
})
return;
}
var loading = weui.loading("请稍后");
let params = {
$.ajax({
url: gHost + "/bank-wechat/icbc/account/bindcard/changeDefaultBinding",
type: "POST",
contentType: "application/x-www-form-urlencoded",
data: {
schoolId: bankInfo.schoolId,
userId: userID,
sessionid: sessionID,
wechattype: 1,
bindMedium: item.bindCardNo,
bindMediumName: item.bindCardName,
};
let url = "/bank-wechat/icbc/account/bindcard/changeDefaultBinding";
if (this_.typeCode == "BOCOM") {
url = '/bank-wechat/bocom/open/changeBindCard';
Object.assign(params,{
livingOrderNo: uni.getStorageSync('faceIdentificationNo')
})
}
$.ajax({
url: gHost + url,
type: "POST",
contentType: "application/x-www-form-urlencoded",
data: params,
},
success: function (res5) {
loading.hide();
if (res5.code == "10000") {
......@@ -1562,7 +1542,6 @@ export default {
console.log(res);
if (res.code == "10000" && res.results) {
self.rechargeLimit = res.results.rechargeLimit || "";
self.accountType = res.results.accountType;
if(self.rechargeLimit == 1){
self.queryWalletRechargeLimit()
}
......@@ -1630,7 +1609,7 @@ export default {
this_.actions = this_.actions.filter((x) => x.text != "证件更新");
}
if (this_.typeCode == "BOCOM") {
this_.actions = this_.actions.filter((x) => x.text != "申请激活" && x.text != "证件更新");
this_.actions = this_.actions.filter((x) => x.text != "证件更新");
}
bankInfo.sessionid = sessionID;
this_.queryBankInfo(); //查余额
......
......@@ -35,6 +35,31 @@
console.error('navigateTo failed:', err);
}
});
} else if (this.faceType == "UPDATE_BIND_CARD") {
// 换绑卡
jWeixin.miniProgram.navigateTo({
url: `/pages/AssignAddCardInfo/main?faceAuth=1`,
success: function(res) {
// 跳转成功
},
fail: function(err) {
// 捕捉到错误,可以在这里处理错误
console.error('navigateTo failed:', err);
}
});
} else if (this.faceType == "CANCEL_ACCOUNT") {
// 销户
jWeixin.miniProgram.navigateTo({
url: `/pages/AssignCancelUserPhone/main?faceAuth=1`,
success: function(res) {
// 跳转成功
},
fail: function(err) {
// 捕捉到错误,可以在这里处理错误
console.error('navigateTo failed:', err);
}
});
}
} else {
if (this.faceType == "OPEN_ACCOUNT") {
// 开户
......@@ -55,7 +80,6 @@
}
}
}
}
</script>
<style scoped>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment