Commit 837f132f authored by lizhishu's avatar lizhishu

Merge branch 'develop' of https://git.xiaopay.net/lizhishu/xzf_uniapp-wechat-web into develop

parents a9c9cf80 a22add4e
...@@ -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
> >
...@@ -458,12 +458,14 @@ var gHost = "https://" + window.location.host; ...@@ -458,12 +458,14 @@ 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; //禁止重复点击
var sessionID = "", var sessionID = "",
userID = "", userID = "",
rechargeLimit = ""; rechargeLimit = "",
paySwitch = "";
var payCardNumber = ""; //一类卡号 var payCardNumber = ""; //一类卡号
var orderSerialNo = ""; //提现结果查询 指令号 var orderSerialNo = ""; //提现结果查询 指令号
var businessNo = "", var businessNo = "",
...@@ -550,6 +552,7 @@ export default { ...@@ -550,6 +552,7 @@ export default {
usertype: "1", usertype: "1",
}, },
rechargeLimit: "", rechargeLimit: "",
paySwitch: "",
bankInfo_: { bankInfo_: {
accountNo: "**** **** **** 1234", accountNo: "**** **** **** 1234",
bindCardName: "", bindCardName: "",
...@@ -1539,6 +1542,9 @@ export default { ...@@ -1539,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 = "";
} }
...@@ -1548,6 +1554,34 @@ export default { ...@@ -1548,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,12 +346,14 @@ var gHost = "https://" + window.location.host; ...@@ -346,12 +346,14 @@ 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; //禁止重复点击
var sessionID = "", var sessionID = "",
userID = "", userID = "",
rechargeLimit = ""; rechargeLimit = "",
paySwitch = "";
var payCardNumber = ""; //一类卡号 var payCardNumber = ""; //一类卡号
var orderSerialNo = ""; //提现结果查询 指令号 var orderSerialNo = ""; //提现结果查询 指令号
var businessNo = "", var businessNo = "",
...@@ -428,6 +430,7 @@ export default { ...@@ -428,6 +430,7 @@ export default {
usertype: "1", usertype: "1",
}, },
rechargeLimit: "", rechargeLimit: "",
paySwitch: "",
bankInfo_: { bankInfo_: {
accountNo: "**** **** **** 1234", accountNo: "**** **** **** 1234",
bindCardName: "", bindCardName: "",
...@@ -954,6 +957,10 @@ export default { ...@@ -954,6 +957,10 @@ 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 || "";
console.log(self.rechargeLimit, 'rechargeLimit')
if(self.rechargeLimit == '1'){
self.queryWalletRechargeLimit(); // 查询钱包充值限制
}
} else { } else {
self.rechargeLimit = ""; self.rechargeLimit = "";
} }
...@@ -963,6 +970,34 @@ export default { ...@@ -963,6 +970,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;
......
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