From ea526cb7f273ec27e7a9a3cc85c891c8917d7e9b Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 3 Jun 2023 15:59:12 +0800 Subject: [PATCH] 幸运购列表,优化不需要登陆 --- packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js b/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js index c90b7be..b554f17 100644 --- a/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js +++ b/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js @@ -31,19 +31,21 @@ Page({ }) }; - app.isLogin().then(function(data) { - self.setData({ - userInfo: data, - }); - }); + // app.isLogin().then(function(data) { + // self.setData({ + // userInfo: data, + // }); + // }); }, onShow: function() { getApp().check_can_share(); - if(app.globalData.userInfo) { - if(!this.data.isLogin) { + // if(app.globalData.userInfo) { + // if(!this.data.isLogin) { + + var user=app.globalData.userInfo; this.setData({ - userInfo: app.globalData.userInfo, + userInfo:user , imghost: app.globalData.setting.imghost, isLogin: true, }); @@ -71,8 +73,8 @@ Page({ }); - }; - }; + // }; + // }; }, -- libgit2 0.21.4