diff --git a/pages/main/index.js b/pages/main/index.js index 1b175af..bfffb08 100644 --- a/pages/main/index.js +++ b/pages/main/index.js @@ -307,10 +307,8 @@ Page({ userLogin: function(couponChannelId, couponId, orderId) { var that = this; // 登录 - that.getGameOne(app.globalData.token) - that.getStaticGame(app.globalData.token) - that.getmemberId(app.globalData.token); - that.checkUserCarStatus(); + // that.getmemberId(app.globalData.token); + // that.checkUserCarStatus(); that.getUserInfo(); that.getBannerlist(); if (app.couponChannelListCallback) { @@ -329,6 +327,8 @@ Page({ } }) .then(res => { + that.getGameOne(app.globalData.token) + that.getStaticGame(app.globalData.token) let weapNote = JSON.parse(res.data.weapNote); that.setData({ desc: weapNote.firstpage.desc, @@ -336,6 +336,8 @@ Page({ }) }) .catch(err => { + that.getGameOne(app.globalData.token) + that.getStaticGame(app.globalData.token) wx.showModal({ title: "提示", content: err.errMsg, @@ -414,10 +416,17 @@ Page({ pageSize: 7 } }).then(res => { + that.getmemberId(app.globalData.token); + that.checkUserCarStatus(); that.setData({ list: res.data.list }); - }); + }) + .catch(err => { + that.getmemberId(app.globalData.token); + that.checkUserCarStatus(); + }) + ; }, /**