diff --git a/pages/index/index.js b/pages/index/index.js index abf5426..9001909 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -74,13 +74,14 @@ Page({ onShow(){ let that = this; that.userLogin(); + console.log("onshow-----------------------------------login") }, checkuserstatus(options) { - let that = this; - Http.get({ - url: config.api.checkUserStatus, - data: {} - }) + let that = this; + Http.get({ + url: config.api.checkUserStatus, + data: {} + }) .then(res => { //参与拼团 if (options && options.orderGroupId) { diff --git a/pages/main/index.js b/pages/main/index.js index 56f3377..f1cc507 100644 --- a/pages/main/index.js +++ b/pages/main/index.js @@ -315,9 +315,7 @@ Page({ */ userLogin: function(couponChannelId, couponId, orderId) { var that = this; - // 登录 that.getmemberId(app.globalData.token); - // that.checkUserCarStatus(); that.getUserInfo(); that.getBannerlist(); that.topicShow(); @@ -600,7 +598,6 @@ Page({ return { title: this.data.weappShareTitle, imageUrl: this.data.weappShareCoverImg, - // desc: this.data.desc, success: function(res) { wx.showToast({ title: "分享成功",