去掉toast的引入
This commit is contained in:
parent
f4b1ef932d
commit
6b37f0899d
@ -106,10 +106,6 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
|||||||
if (loading) {
|
if (loading) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
};
|
};
|
||||||
uni.showToast({
|
|
||||||
title: res.data.code,
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
if(url.indexOf('manager/getSystemTimeStamp')!=-1){
|
if(url.indexOf('manager/getSystemTimeStamp')!=-1){
|
||||||
e(res)
|
e(res)
|
||||||
}else if (res.data.code == 200 || res.data.code == 1 || res.data.code == "1" || res.data.code == "200"){
|
}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)
|
e(res.data)
|
||||||
}else if(res.data.code==35002){
|
}else if(res.data.code==35002){
|
||||||
n(res)
|
n(res)
|
||||||
uni.showToast({
|
uni.sendNativeEvent('goTabbarPage', {
|
||||||
title: '登录过期,请重新登录',
|
msg: 'home'
|
||||||
icon: 'none'
|
},ret => {
|
||||||
});
|
console.log(ret);
|
||||||
uni.redirectTo({
|
})
|
||||||
url: '/pages_app/login/login'
|
plus.runtime.quit();
|
||||||
});
|
|
||||||
// uni.sendNativeEvent('goTabbarPage', {
|
|
||||||
// msg: 'home'
|
|
||||||
// },ret => {
|
|
||||||
// console.log(ret);
|
|
||||||
// })
|
|
||||||
// plus.runtime.quit();
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user