错误提示

cyl/master-0804
zsk 4 months ago
parent f06a0598bc
commit d874386196

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

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

Loading…
Cancel
Save