Commit d6f593c0 by 高淑倩

modify: 冲突

parents eed19070 5b525414
......@@ -47,31 +47,15 @@ class WXService extends Http {
this.setPageLoadStatus()
wx.hideLoading()
}).catch(res => {
console.log('catch',res)
// this.reLogin()
if (res.msg.indexOf('未登录') > -1) {
// 重新登陆 更新缓存
this.reLogin()
// wx.setStorageSync('token', '')
// const app = getApp()
// var _this = this
// let userInfo = wx.getStorageSync('_baseUserInfo')
// _this.login().then(result=>{
// 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)
// })
// }
// })
setTimeout(()=>{
const pages = getCurrentPages()
const perpage = pages[pages.length - 1]
perpage.onShow()
},2000)
} else if (res.state === 402) {
return this.getUserInfo().then(() => {
if (!this.getUserInfoLimitCount) {
......
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