Commit d6f593c0 by 高淑倩

modify: 冲突

parents eed19070 5b525414
...@@ -47,30 +47,14 @@ class WXService extends Http { ...@@ -47,30 +47,14 @@ class WXService extends Http {
this.setPageLoadStatus() this.setPageLoadStatus()
wx.hideLoading() wx.hideLoading()
}).catch(res => { }).catch(res => {
console.log('catch',res)
// this.reLogin()
if (res.msg.indexOf('未登录') > -1) { if (res.msg.indexOf('未登录') > -1) {
// 重新登陆 更新缓存 // 重新登陆 更新缓存
this.reLogin() this.reLogin()
// wx.setStorageSync('token', '') setTimeout(()=>{
// const app = getApp() const pages = getCurrentPages()
// var _this = this const perpage = pages[pages.length - 1]
// let userInfo = wx.getStorageSync('_baseUserInfo') perpage.onShow()
// _this.login().then(result=>{ },2000)
// if(result.code){
// _this.post(`/member/minaLogin`, {
// code: result.code,
// wechatInfo: userInfo,
// brandId: app.globalData.brandId,
// }).then(response=>{
// let dataResp = response.data.data
// wx.setStorageSync('token', dataResp.token)
// wx.setStorageSync('_baseUserInfo', dataResp)
// })
// }
// })
} else if (res.state === 402) { } else if (res.state === 402) {
return this.getUserInfo().then(() => { return this.getUserInfo().then(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment