...
|
...
|
@@ -55,11 +55,11 @@ App({ |
|
|
'token': token || ''
|
|
|
},
|
|
|
postData;
|
|
|
data.header ? (token ? (header['token'] = token, delete data.header) : setTimeout(() => {
|
|
|
// wx.navigateTo({
|
|
|
// url: '/pages/register/register',
|
|
|
// })
|
|
|
}, 1000)) : ""
|
|
|
// data.header ? (token ? (header['token'] = token, delete data.header) : setTimeout(() => {
|
|
|
// wx.navigateTo({
|
|
|
// url: '/pages/register/register',
|
|
|
// })
|
|
|
// }, 1100)) : ""
|
|
|
//网络请求
|
|
|
wx.request({
|
|
|
url: this.globalData.baseUrl + url,
|
...
|
...
|
@@ -87,6 +87,16 @@ App({ |
|
|
icon: 'none',
|
|
|
})
|
|
|
reject(res.data)
|
|
|
if (res.data.code == '401') {
|
|
|
if (!app.globalData.register){
|
|
|
// setTimeout(() => {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/register/register',
|
|
|
})
|
|
|
// }, 1200)
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
(showLoad || showLoad == undefined) ? wx.hideLoading(): "";
|
|
|
wx.hideNavigationBarLoading()
|
...
|
...
|
|