Commit 2cc8100a by 高淑倩

modify: relogin_wechatInfo_null

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