Compare commits

..

2 Commits

@ -55,7 +55,7 @@ export default {
if (uni.getStorageSync("apply-token")) {
that.checkNum();
}
}, 1 * 30 * 1000);
}, 30 * 1000);
}
uni.$on("isGlogin", function (data) {

@ -116,6 +116,7 @@ let data = {
// console.log('测试报错123123123123123123',res);
// console.log('测试报错123123123123123123$url',$url);
let resData = res.data;
if (resData.status == 200) {// 正常
callback(resData.data, resData.msg);
} else if (resData.status == 9999) {// 登录过期或者身份变动等需要登录的场景
@ -137,6 +138,7 @@ let data = {
// } else {
uni.showToast({
title: resData.msg,
// title:'系统异常,请稍后',
icon: "none"
});
failback(resData.msg);
@ -167,7 +169,8 @@ let data = {
},
fail (error) {
uni.showToast({
title: error.errMsg,
// title: error.errMsg,
title:'系统异常,请稍后',
icon: "none"
})
failback(error);

Loading…
Cancel
Save