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