|
@@ -1,6 +1,6 @@
|
|
|
-// const baseUrl = "https://meida.cnyunl.com/yos/rest/index";
|
|
|
-const baseUrl = "http://121.37.152.76:8080/yos/rest/index";
|
|
|
-
|
|
|
+const baseUrl = "https://meida.cnyunl.com/yos/rest/index";
|
|
|
+// const baseUrl = "http://121.37.152.76:8080/yos/rest/index";
|
|
|
+let count = null;
|
|
|
class HTTP {
|
|
|
request({
|
|
|
url,
|
|
@@ -42,13 +42,16 @@ class HTTP {
|
|
|
icon: "none"
|
|
|
})
|
|
|
} else if (res.data.msg == '登陆状态已过期,请重新登陆!') {
|
|
|
- wx.redirectTo({
|
|
|
- url: '/pages/login/phone',
|
|
|
- });
|
|
|
+ clearTimeout(count);
|
|
|
wx.showToast({
|
|
|
title: '登陆状态已过期,请重新登陆!',
|
|
|
icon: "none"
|
|
|
})
|
|
|
+ count = setTimeout(() => {
|
|
|
+ wx.redirectTo({
|
|
|
+ url: '/pages/login/phone',
|
|
|
+ });
|
|
|
+ }, 500)
|
|
|
}
|
|
|
}
|
|
|
})
|