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

在线充值开关控制跳转钱包充值链接

parent d236c449
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
<!-- <view class="switchbankCard" @click="ChangeBankPay">我要换银行卡支付</view> --> <!-- <view class="switchbankCard" @click="ChangeBankPay">我要换银行卡支付</view> -->
</view> </view>
</template> </template>
<template v-else> <template v-else-if="paySwitch==1">
<view class="rechageWallet" @click="turnRechargeWallet" <view class="rechageWallet" @click="turnRechargeWallet"
>充值校园钱包 >></view >充值校园钱包 >></view
> >
...@@ -456,15 +456,16 @@ import keyboardPackage from "@/components/keyboard-package/keyboard-package.vue" ...@@ -456,15 +456,16 @@ import keyboardPackage from "@/components/keyboard-package/keyboard-package.vue"
import cityData from "@/common/js/city.js"; import cityData from "@/common/js/city.js";
var gHost = "https://" + window.location.host; var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") { if (window.location.protocol != "https:") {
// gHost = "https://fpdev.xiaopay.net"; gHost = "https://fpdev.xiaopay.net";
// gHost = "/api"; // gHost = "/api";
gHost = "" // gHost = ""
} }
let times = 0; let times = 0;
var limitClick = false; //禁止重复点击 var limitClick = false; //禁止重复点击
var sessionID = "", var sessionID = "",
userID = "", userID = "",
rechargeLimit = ""; rechargeLimit = "",
paySwitch = "";
var payCardNumber = ""; //一类卡号 var payCardNumber = ""; //一类卡号
var orderSerialNo = ""; //提现结果查询 指令号 var orderSerialNo = ""; //提现结果查询 指令号
var businessNo = "", var businessNo = "",
...@@ -551,6 +552,7 @@ export default { ...@@ -551,6 +552,7 @@ export default {
usertype: "1", usertype: "1",
}, },
rechargeLimit: "", rechargeLimit: "",
paySwitch: "",
bankInfo_: { bankInfo_: {
accountNo: "**** **** **** 1234", accountNo: "**** **** **** 1234",
bindCardName: "", bindCardName: "",
...@@ -1540,6 +1542,9 @@ export default { ...@@ -1540,6 +1542,9 @@ export default {
console.log(res); console.log(res);
if (res.code == "10000" && res.results) { if (res.code == "10000" && res.results) {
self.rechargeLimit = res.results.rechargeLimit || ""; self.rechargeLimit = res.results.rechargeLimit || "";
if(self.rechargeLimit == 1){
self.queryWalletRechargeLimit()
}
} else { } else {
self.rechargeLimit = ""; self.rechargeLimit = "";
} }
...@@ -1549,6 +1554,34 @@ export default { ...@@ -1549,6 +1554,34 @@ export default {
}, },
}); });
}, },
// 查询钱包充值限制开关
queryWalletRechargeLimit() {
const self = this;
$.ajax({
url: gHost + `/wechat/svweapp/QuerySchoolBasicInfo`,
type: "post",
data: {
schoolid: bankInfo.schoolId,
sessionid: sessionID,
wechattype: 1
},
headers: {
sessionid: sessionID,
contentType: "application/x-www-form-urlencoded",
},
success: function (res) {
console.log(res);
if (res.code == "10000" && res.results) {
self.paySwitch = res.results.paySwitch || "";
} else {
self.paySwitch = "";
}
},
error: function (err) {
weui.topTips("查询钱包充值限制失败!");
},
});
},
//获取用户已填写银行信息 //获取用户已填写银行信息
queryUserBankInfo() { queryUserBankInfo() {
let this_ = this; let this_ = this;
......
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
> >
</view> </view>
</template> </template>
<template v-else> <template v-else-if="paySwitch==1">
<view class="rechageWallet" @click="turnRechargeWallet" <view class="rechageWallet" @click="turnRechargeWallet"
>充值校园钱包 >></view >充值校园钱包 >></view
> >
...@@ -346,6 +346,7 @@ var gHost = "https://" + window.location.host; ...@@ -346,6 +346,7 @@ var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") { if (window.location.protocol != "https:") {
gHost = "https://fpdev.xiaopay.net"; gHost = "https://fpdev.xiaopay.net";
// gHost = "/api"; // gHost = "/api";
// gHost=""
} }
let times = 0; let times = 0;
var limitClick = false; //禁止重复点击 var limitClick = false; //禁止重复点击
...@@ -471,7 +472,6 @@ export default { ...@@ -471,7 +472,6 @@ export default {
console.log(this.rechargeLimit, "rechargeLimit"); console.log(this.rechargeLimit, "rechargeLimit");
bankInfo.sessionid = sessionID || ""; bankInfo.sessionid = sessionID || "";
this.QueryUserInfo(); this.QueryUserInfo();
this.queryWalletRechargeLimit()
}, },
created: function () {}, created: function () {},
mounted: function () {}, mounted: function () {},
...@@ -977,7 +977,7 @@ export default { ...@@ -977,7 +977,7 @@ export default {
url: gHost + `/wechat/svweapp/QuerySchoolBasicInfo`, url: gHost + `/wechat/svweapp/QuerySchoolBasicInfo`,
type: "post", type: "post",
data: { data: {
schoolid: 36, //bankInfo.schoolId, schoolid: bankInfo.schoolId,
sessionid: sessionID, sessionid: sessionID,
wechattype: 1 wechattype: 1
}, },
......
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