From 9e95d8303edcf2f8bc08846ed6e871841b6528ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Thu, 21 Mar 2019 16:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=AF=B7=E6=B1=82=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/main/index.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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(); + }) + ; }, /**