|
@@ -394,12 +394,12 @@
|
|
|
title: '用户信息异常,请重新登录',
|
|
title: '用户信息异常,请重新登录',
|
|
|
icon: 'none'
|
|
icon: 'none'
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 直接跳转到登录页
|
|
// 直接跳转到登录页
|
|
|
this.redirectToLogin();
|
|
this.redirectToLogin();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 4. 检查 maOpenId,如果不存在则提示重新登录
|
|
// 4. 检查 maOpenId,如果不存在则提示重新登录
|
|
|
if (!this.userinfo.maOpenId) {
|
|
if (!this.userinfo.maOpenId) {
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
@@ -438,7 +438,7 @@
|
|
|
this.redirectToLogin();
|
|
this.redirectToLogin();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 实际的支付执行逻辑
|
|
// 实际的支付执行逻辑
|
|
|
executePay() {
|
|
executePay() {
|
|
|
var data = {
|
|
var data = {
|
|
@@ -455,6 +455,9 @@
|
|
|
pay(data).then(
|
|
pay(data).then(
|
|
|
res => {
|
|
res => {
|
|
|
this.isPaying = false;
|
|
this.isPaying = false;
|
|
|
|
|
+ if (res.code == 501) {
|
|
|
|
|
+ return uni.navigateBack()
|
|
|
|
|
+ }
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
if (res.payType == 1 || res.payType == 2 || res.payType == 3) {
|
|
if (res.payType == 1 || res.payType == 2 || res.payType == 3) {
|