Commit ea526cb7f273ec27e7a9a3cc85c891c8917d7e9b

Authored by yvan.ni
1 parent e8896b7a

幸运购列表,优化不需要登陆

packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js
@@ -31,19 +31,21 @@ Page({ @@ -31,19 +31,21 @@ Page({
31 }) 31 })
32 }; 32 };
33 33
34 - app.isLogin().then(function(data) {  
35 - self.setData({  
36 - userInfo: data,  
37 - });  
38 - }); 34 + // app.isLogin().then(function(data) {
  35 + // self.setData({
  36 + // userInfo: data,
  37 + // });
  38 + // });
39 }, 39 },
40 40
41 onShow: function() { 41 onShow: function() {
42 getApp().check_can_share(); 42 getApp().check_can_share();
43 - if(app.globalData.userInfo) {  
44 - if(!this.data.isLogin) { 43 + // if(app.globalData.userInfo) {
  44 + // if(!this.data.isLogin) {
  45 +
  46 + var user=app.globalData.userInfo;
45 this.setData({ 47 this.setData({
46 - userInfo: app.globalData.userInfo, 48 + userInfo:user ,
47 imghost: app.globalData.setting.imghost, 49 imghost: app.globalData.setting.imghost,
48 isLogin: true, 50 isLogin: true,
49 }); 51 });
@@ -71,8 +73,8 @@ Page({ @@ -71,8 +73,8 @@ Page({
71 }); 73 });
72 74
73 75
74 - };  
75 - }; 76 + // };
  77 + // };
76 }, 78 },
77 79
78 80