Commit b780225d8aea6f5d38c32a38360860ffcbe872b5
1 parent
80da1cf0
券的分享,不判断会员是不是登陆
Showing
1 changed file
with
7 additions
and
26 deletions
packageA/pages/quan/quan.js
| @@ -123,26 +123,7 @@ Page({ | @@ -123,26 +123,7 @@ Page({ | ||
| 123 | } | 123 | } |
| 124 | }) | 124 | }) |
| 125 | }, | 125 | }, |
| 126 | - | ||
| 127 | - | ||
| 128 | - //---点击分享优惠活动--- | ||
| 129 | - share_index:function(e){ | ||
| 130 | - | ||
| 131 | - //--先判断会员状态-- | ||
| 132 | - var user_info = getApp().globalData.userInfo; | ||
| 133 | - if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
| 134 | - //getApp().my_warnning("请先登录",0,this); | ||
| 135 | - wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | ||
| 136 | - return false; | ||
| 137 | - } | ||
| 138 | - | ||
| 139 | - var index=e.currentTarget.dataset.index; | ||
| 140 | - var item=this.data.list[index]; | ||
| 141 | - this.setData({share_hidden:0,hui_active:item}); | ||
| 142 | - | ||
| 143 | - var com = this.selectComponent("#share_button"); //组件的id | ||
| 144 | - com.set_type(1); | ||
| 145 | - }, | 126 | + |
| 146 | //-- ---更多加载---- | 127 | //-- ---更多加载---- |
| 147 | refresh:function(){ | 128 | refresh:function(){ |
| 148 | this.requestGoodsList(); | 129 | this.requestGoodsList(); |
| @@ -152,12 +133,12 @@ Page({ | @@ -152,12 +133,12 @@ Page({ | ||
| 152 | share_index:function(e){ | 133 | share_index:function(e){ |
| 153 | 134 | ||
| 154 | //--先判断会员状态-- | 135 | //--先判断会员状态-- |
| 155 | - var user_info = getApp().globalData.userInfo; | ||
| 156 | - if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
| 157 | - //getApp().my_warnning("请先登录",0,this); | ||
| 158 | - wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | ||
| 159 | - return false; | ||
| 160 | - } | 136 | + // var user_info = getApp().globalData.userInfo; |
| 137 | + // if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
| 138 | + // //getApp().my_warnning("请先登录",0,this); | ||
| 139 | + // wx.navigateTo({ url: '/packageE/pages/togoin/togoin', }) | ||
| 140 | + // return false; | ||
| 141 | + // } | ||
| 161 | 142 | ||
| 162 | var index=e.currentTarget.dataset.index; | 143 | var index=e.currentTarget.dataset.index; |
| 163 | var item=this.data.list[index]; | 144 | var item=this.data.list[index]; |