Commit 13f49789 authored by 袁玲利's avatar 袁玲利

Merge branch 'v_bocom_4.1'

parents 77b626c5 a652f232
......@@ -371,6 +371,9 @@
{
text: "证件更新"
},
{
text: "申请激活"
},
{
text: "在线销户"
}],
......@@ -482,8 +485,53 @@
jWeixin.miniProgram.redirectTo({
url: `/pages_subpackB/pages/certificateBohaiUpdate/main`
});
}else if (action.text == "申请激活") {
this.activeBankcard()
}
},
// 交通银行申请激活银行卡
activeBankcard(){
$.ajax({
url: gHost + "/bank-wechat/account/manager/accActivation",
type: "POST",
contentType: "application/x-www-form-urlencoded",
data: {
// schoolId: 197, //学校id
// userId: 4145598, //用户id
schoolId: bankInfo.schoolId, //学校id
userId: userID, //用户id
sessionid: sessionID
},
headers: {
sessionid: sessionID,
},
success: function(respes) {
if (respes.code == "10000") {
console.log(respes.results.url,'respes.results.url')
let flag = true;
jWeixin.miniProgram.redirectTo({
url: `/pages_subpackB/pages/bocomToH5/main?pageUrl=`+encodeURIComponent(respes.results.url)+'&flag='+flag
});
} else {
// Toast(respes.message || "申请激活失败,请重试!");
let flag = false;
jWeixin.miniProgram.redirectTo({
url: `/pages_subpackB/pages/bocomToH5/main?flag=`+flag+ '&reason='+respes.message
});
throw new Error("申请激活失败,请重试!");
}
},
error: function(err) {
loading.clear();
let flag = false;
jWeixin.miniProgram.redirectTo({
url: `/pages_subpackB/pages/bocomToH5/main?flag=`+flag
});
Toast(err || "申请激活失败,请重试!");
throw new Error("申请激活失败,请重试!");
},
});
},
async beforeQuerySignStatus() {
await this.QueryUserInfo();
// 渤海银行要判断是否有代扣签约
......@@ -1317,6 +1365,9 @@
if(this_.typeCode != 'BOHAI'){
this_.actions = this_.actions.filter(x => x.text != '证件更新' );
}
if(this_.typeCode != 'BOCOM'){
this_.actions = this_.actions.filter(x => x.text != '申请激活' );
}
bankInfo.sessionid = sessionID;
this_.queryBankInfo(); //查余额
this_.bankInfo_ = bankInfo;
......
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