|
@@ -63,7 +63,7 @@ App({
|
|
|
}
|
|
|
resolve(res);
|
|
|
} else if (res.data.code == 401) {
|
|
|
- that.globalData.showToast("登录已过期");
|
|
|
+ that.globalData.showToast("授权已过期");
|
|
|
// reject(res);
|
|
|
} else {
|
|
|
that.globalData.showToast(res.data.msg)
|
|
@@ -105,7 +105,7 @@ App({
|
|
|
}
|
|
|
resolve(res);
|
|
|
} else if (res.data.code == 401) {
|
|
|
- that.globalData.showToast("登录已过期");
|
|
|
+ that.globalData.showToast("授权已过期");
|
|
|
// reject(res);
|
|
|
} else {
|
|
|
that.globalData.showToast(res.data.msg)
|
|
@@ -149,7 +149,7 @@ App({
|
|
|
}
|
|
|
resolve(res);
|
|
|
} else if (res.data.code == 401) {
|
|
|
- that.globalData.showToast("登录已过期");
|
|
|
+ that.globalData.showToast("授权已过期");
|
|
|
reject(res);
|
|
|
} else {
|
|
|
that.globalData.showToast(res.data.msg);
|
|
@@ -256,7 +256,21 @@ App({
|
|
|
that.globalData.showToast(res.msg)
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
- console.log(err);
|
|
|
+ if (err.data.code == 2001) {
|
|
|
+ dd.confirm({
|
|
|
+ title: '尊敬的用户',
|
|
|
+ content: '您当前的套餐已到期',
|
|
|
+ confirmButtonText: '去续费',
|
|
|
+ cancelButtonText: '暂不需要',
|
|
|
+ success: (result) => {
|
|
|
+ if (result.confirm) {
|
|
|
+ dd.reLaunch({
|
|
|
+ url: `../../deploy/addMoney/addMoney`
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
fail: function (err) {
|