diff --git a/utils/request.js b/utils/request.js index 9b0e218..e30d917 100644 --- a/utils/request.js +++ b/utils/request.js @@ -106,10 +106,6 @@ export const request = (url, data = {}, method = 'post', loading = false, conten if (loading) { uni.hideLoading(); }; - uni.showToast({ - title: res.data.code, - icon: 'none' - }); if(url.indexOf('manager/getSystemTimeStamp')!=-1){ e(res) }else if (res.data.code == 200 || res.data.code == 1 || res.data.code == "1" || res.data.code == "200"){ @@ -137,19 +133,12 @@ export const request = (url, data = {}, method = 'post', loading = false, conten e(res.data) }else if(res.data.code==35002){ n(res) - uni.showToast({ - title: '登录过期,请重新登录', - icon: 'none' - }); - uni.redirectTo({ - url: '/pages_app/login/login' - }); - // uni.sendNativeEvent('goTabbarPage', { - // msg: 'home' - // },ret => { - // console.log(ret); - // }) - // plus.runtime.quit(); + uni.sendNativeEvent('goTabbarPage', { + msg: 'home' + },ret => { + console.log(ret); + }) + plus.runtime.quit(); }else{ uni.showToast({