Commit 5f10f00b authored by 袁玲利's avatar 袁玲利

get方法加请求头sessionid

parent 10e26f2a
...@@ -264,9 +264,11 @@ ...@@ -264,9 +264,11 @@
<!-- <view class="switchbankCard" @click="ChangeBankPay">我要换银行卡支付</view> --> <!-- <view class="switchbankCard" @click="ChangeBankPay">我要换银行卡支付</view> -->
</view> </view>
</template> </template>
<template v-else> <template v-else>
<view class="rechageWallet" @click="turnRechargeWallet">充值校园钱包 >></view> <view class="rechageWallet" @click="turnRechargeWallet"
</template> >充值校园钱包 >></view
>
</template>
</view> </view>
<!-- 其他充值金额 --> <!-- 其他充值金额 -->
<view class="contentBox" style="display: none"> <view class="contentBox" style="display: none">
...@@ -547,7 +549,7 @@ export default { ...@@ -547,7 +549,7 @@ export default {
name: "", name: "",
usertype: "1", usertype: "1",
}, },
rechargeLimit: "", rechargeLimit: "",
bankInfo_: { bankInfo_: {
accountNo: "**** **** **** 1234", accountNo: "**** **** **** 1234",
bindCardName: "", bindCardName: "",
...@@ -612,7 +614,7 @@ export default { ...@@ -612,7 +614,7 @@ export default {
fromType = options["fromType"] || ""; fromType = options["fromType"] || "";
bankInfo.sessionid = sessionID || ""; bankInfo.sessionid = sessionID || "";
this.rechargeLimit = options["rechargeLimit"] || ""; this.rechargeLimit = options["rechargeLimit"] || "";
console.log(this.rechargeLimit, 'rechargeLimit') console.log(this.rechargeLimit, "rechargeLimit");
this.beforeQuerySignStatus(); this.beforeQuerySignStatus();
}, },
created: function () {}, created: function () {},
...@@ -788,11 +790,11 @@ export default { ...@@ -788,11 +790,11 @@ export default {
this.BackToMini("AssignAddCard"); this.BackToMini("AssignAddCard");
uni.hideLoading(); uni.hideLoading();
}, },
turnRechargeWallet(){ turnRechargeWallet() {
jWeixin.miniProgram.navigateTo({ jWeixin.miniProgram.navigateTo({
url: `/pages/depositWallet/main`, url: `/pages/depositWallet/main`,
}); });
}, },
// 验证码弹出框开启 // 验证码弹出框开启
toDeposit() { toDeposit() {
console.log(this.isOtherMoney, "isOtherMoney"); console.log(this.isOtherMoney, "isOtherMoney");
...@@ -1522,19 +1524,20 @@ export default { ...@@ -1522,19 +1524,20 @@ export default {
formData.append("sessionid", sessionID); formData.append("sessionid", sessionID);
formData.append("wechattype", 1); formData.append("wechattype", 1);
$.ajax({ $.ajax({
url: url: gHost + `/bank-wechat/school/bank/get`,
gHost +
`/bank-wechat/school/bank/get`,
type: "post", type: "post",
data: formData, data: formData,
processData: false, processData: false,
contentType: false, contentType: false,
headers: {
sessionid: sessionID,
},
success: function (res) { success: function (res) {
console.log(res); console.log(res);
if (res.code == "10000") { if (res.code == "10000") {
self.rechargeLimit = res.rechargeLimit; self.rechargeLimit = res.rechargeLimit;
} else { } else {
self.rechargeLimit = "" self.rechargeLimit = "";
} }
}, },
error: function (err) { error: function (err) {
...@@ -1644,13 +1647,13 @@ page { ...@@ -1644,13 +1647,13 @@ page {
background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%); background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
} }
.rechageWallet { .rechageWallet {
width: 100%; width: 100%;
text-align: center; text-align: center;
height: 100rpx; height: 100rpx;
line-height: 100rpx; line-height: 100rpx;
color: #04b871; color: #04b871;
font-size: 30rpx; font-size: 30rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
.BankListImgSpan { .BankListImgSpan {
width: 30rpx; width: 30rpx;
......
...@@ -934,11 +934,12 @@ export default { ...@@ -934,11 +934,12 @@ export default {
formData.append("sessionid", sessionID); formData.append("sessionid", sessionID);
formData.append("wechattype", 1); formData.append("wechattype", 1);
$.ajax({ $.ajax({
url: url: gHost + `/bank-wechat/school/bank/get`,
gHost +
`/bank-wechat/school/bank/get`,
type: "post", type: "post",
data: formData, data: formData,
headers: {
sessionid: sessionID,
},
processData: false, processData: false,
contentType: false, contentType: false,
success: function (res) { success: function (res) {
...@@ -946,7 +947,7 @@ export default { ...@@ -946,7 +947,7 @@ export default {
if (res.code == "10000") { if (res.code == "10000") {
self.rechargeLimit = res.rechargeLimit; self.rechargeLimit = res.rechargeLimit;
} else { } else {
self.rechargeLimit = "" self.rechargeLimit = "";
} }
}, },
error: function (err) { error: function (err) {
......
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