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

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

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