Commit 67dacd2a authored by 袁玲利's avatar 袁玲利

交行二类户接入

parents b6f3defe 64792ef8
......@@ -418,7 +418,7 @@
>
</view>
</view>
<view class="changeCard" @click="ChangeBankPay" v-if="typeCode != 'BOCOM'">我要换卡支付</view>
<view class="changeCard" @click="ChangeBankPay">我要换卡支付</view>
</view>
</view>
<!-- 银行卡列表
......@@ -1361,19 +1361,39 @@ export default {
if (bankInfo.bindCardNo == item.bindCardNo) {
return;
}
let accountType = uni.setStorageSync('accountType')
if(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("请稍后");
$.ajax({
url: gHost + "/bank-wechat/icbc/account/bindcard/changeDefaultBinding",
type: "POST",
contentType: "application/x-www-form-urlencoded",
data: {
let params = {
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") {
......@@ -1608,8 +1628,8 @@ export default {
if (this_.typeCode != "BOHAI") {
this_.actions = this_.actions.filter((x) => x.text != "证件更新");
}
if (this_.typeCode != "BOCOM") {
this_.actions = this_.actions.filter((x) => x.text != "申请激活");
if (this_.typeCode == "BOCOM") {
this_.actions = this_.actions.filter((x) => x.text != "申请激活" && x.text != "证件更新");
}
bankInfo.sessionid = sessionID;
this_.queryBankInfo(); //查余额
......@@ -2732,6 +2752,7 @@ page {
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #000000;
line-height: 40rpx;
border-bottom: 1rpx solid #dddddd;
}
......
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