Commit 2cc8100a by 高淑倩

modify: relogin_wechatInfo_null

parent 930ec6aa
......@@ -90,7 +90,6 @@ Component({
const urls = getCurrentPages()
setTimeout(() => {
const item = urls[0].options
console.log('----', item.route)
if (item.route) {
try {
const options = JSON.parse(item.options)
......
......@@ -47,7 +47,10 @@ class WXService extends Http {
this.setPageLoadStatus()
wx.hideLoading()
}).catch(res => {
console.log(res)
console.log('catch',res)
// this.reLogin()
if (res.msg.indexOf('未登录') > -1) {
// 重新登陆 更新缓存
this.reLogin()
......@@ -137,6 +140,7 @@ class WXService extends Http {
*
*/
reLogin() {
console.log('rrrrrrrrrrrrrrrrrrrrr')
wx.setStorageSync('token', '')
const app = getApp()
var _this = this
......@@ -145,7 +149,8 @@ class WXService extends Http {
if(result.code){
_this.post(`/member/minaLogin`, {
code: result.code,
wechatInfo: accreditUserInfo,
// wechatInfo: accreditUserInfo,
wechatInfo: null,
brandId: app.globalData.brandId,
}).then(response=>{
let dataResp = response.data.data
......
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