|
@@ -29,6 +29,7 @@ function request(options) {
|
|
if (res.data.status == 200) {
|
|
if (res.data.status == 200) {
|
|
resolve(res);
|
|
resolve(res);
|
|
} else if (res.data.status === '900010' || (res.data.status == '500' && _obj.url.indexOf('checkLogin') >= 0)) {
|
|
} else if (res.data.status === '900010' || (res.data.status == '500' && _obj.url.indexOf('checkLogin') >= 0)) {
|
|
|
|
+ resolve(res);
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
wx.showToast({
|
|
wx.showToast({
|
|
title: '请登录后使用',
|
|
title: '请登录后使用',
|
|
@@ -45,6 +46,7 @@ function request(options) {
|
|
mpvue.reLaunch({ url });
|
|
mpvue.reLaunch({ url });
|
|
}, 1000);
|
|
}, 1000);
|
|
} else {
|
|
} else {
|
|
|
|
+ resolve(res);
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
wx.showToast({
|
|
wx.showToast({
|
|
title: res.data.message,
|
|
title: res.data.message,
|