Commit 3ed490e1 authored by 袁玲利's avatar 袁玲利

充值界面代扣状态查询改成不从小程序带参过来,从本页面取参

parent 14dea9ab
...@@ -418,12 +418,7 @@ export default { ...@@ -418,12 +418,7 @@ export default {
sessionID = options["seesionID"] || ""; sessionID = options["seesionID"] || "";
fromType = options["fromType"] || ""; fromType = options["fromType"] || "";
bankInfo.sessionid = sessionID || ""; bankInfo.sessionid = sessionID || "";
accountType = options["accountType"] || ""; this.beforeQuerySignStatus();
if (accountType == "BOHAI") {
// 渤海银行要判断是否有代扣签约
this.signStatusQuery();
}
this.QueryUserInfo();
}, },
created: function () {}, created: function () {},
mounted: function () {}, mounted: function () {},
...@@ -433,6 +428,13 @@ export default { ...@@ -433,6 +428,13 @@ export default {
} }
}, },
methods: { methods: {
async beforeQuerySignStatus() {
await this.QueryUserInfo();
// 渤海银行要判断是否有代扣签约
if (bankInfo.accountType == "4") {
await this.signStatusQuery();
}
},
// 更换银行卡 // 更换银行卡
async ChangeBankPay() { async ChangeBankPay() {
// uni.showModal({ // uni.showModal({
...@@ -1127,7 +1129,7 @@ export default { ...@@ -1127,7 +1129,7 @@ export default {
}); });
}, },
//查询用户信息 //查询用户信息
QueryUserInfo() { async QueryUserInfo() {
let this_ = this; let this_ = this;
let loading = Toast.loading({ let loading = Toast.loading({
message: "加载中...", message: "加载中...",
...@@ -1135,7 +1137,7 @@ export default { ...@@ -1135,7 +1137,7 @@ export default {
loadingType: "spinner", loadingType: "spinner",
duration: 0, duration: 0,
}); });
$.ajax({ await $.ajax({
url: gHost + "/wechat/svweapp/QueryPersonalInfo", url: gHost + "/wechat/svweapp/QueryPersonalInfo",
type: "POST", type: "POST",
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
...@@ -1146,9 +1148,11 @@ export default { ...@@ -1146,9 +1148,11 @@ export default {
}, },
success: function (res1) { success: function (res1) {
loading.clear(); loading.clear();
console.log(sessionID);
if (res1.code == "10000") { if (res1.code == "10000") {
bankInfo.schoolId = res1.results.schoolid; bankInfo.schoolId = res1.results.schoolid;
bankInfo.userId = res1.results.id; bankInfo.userId = res1.results.id;
bankInfo.accountType = res.results.accounttype;
this_.PersonalInfo = res1.results; this_.PersonalInfo = res1.results;
if (res1.results.usertype == 1) { if (res1.results.usertype == 1) {
$(".StudentCls").css("display", "block"); $(".StudentCls").css("display", "block");
......
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