Commit f2773c984f3c216063587f791e1f5192b760aa59
1 parent
2c6856e1
检测登陆
Showing
2 changed files
with
4 additions
and
15 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
| @@ -529,10 +529,10 @@ Page({ | @@ -529,10 +529,10 @@ Page({ | ||
| 529 | //--先判断会员登陆状态-- | 529 | //--先判断会员登陆状态-- |
| 530 | var user_info = getApp().globalData.userInfo; | 530 | var user_info = getApp().globalData.userInfo; |
| 531 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | 531 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
| 532 | - that.setData({ | ||
| 533 | - noLogin: true | ||
| 534 | - }) | ||
| 535 | - return false; | 532 | + wx.navigateTo({ |
| 533 | + url: '/pages/togoin/togoin', | ||
| 534 | + }) | ||
| 535 | + return false; | ||
| 536 | } | 536 | } |
| 537 | 537 | ||
| 538 | }, | 538 | }, |
| @@ -3908,16 +3908,6 @@ Page({ | @@ -3908,16 +3908,6 @@ Page({ | ||
| 3908 | // ind == 1 为普通购买 | 3908 | // ind == 1 为普通购买 |
| 3909 | openSpecModel_pt: function (e) { | 3909 | openSpecModel_pt: function (e) { |
| 3910 | 3910 | ||
| 3911 | - //--先判断会员登陆状态-- | ||
| 3912 | - var user_info = getApp().globalData.userInfo; | ||
| 3913 | - if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | ||
| 3914 | - wx.navigateTo({ | ||
| 3915 | - url: '/pages/togoin/togoin', | ||
| 3916 | - }) | ||
| 3917 | - return false; | ||
| 3918 | - } | ||
| 3919 | - | ||
| 3920 | - | ||
| 3921 | this.setData({ open_ind_store: 9, goodsInputNum: 1 }); | 3911 | this.setData({ open_ind_store: 9, goodsInputNum: 1 }); |
| 3922 | // 判断是否有待支付订单 | 3912 | // 判断是否有待支付订单 |
| 3923 | var aid = this.data.group_id; | 3913 | var aid = this.data.group_id; |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
| @@ -921,7 +921,6 @@ | @@ -921,7 +921,6 @@ | ||
| 921 | <!-- data-ind="2" --> | 921 | <!-- data-ind="2" --> |
| 922 | <!-- openSpecModel_pt --> | 922 | <!-- openSpecModel_pt --> |
| 923 | <view class="xc-ash-b f1 flex ai-center jc-center white fs26" wx:if="{{isTimeUp}}">活动已经结束</view> | 923 | <view class="xc-ash-b f1 flex ai-center jc-center white fs26" wx:if="{{isTimeUp}}">活动已经结束</view> |
| 924 | - <view wx:elif="{{noLogin}}" class="btn-red f1 flex ai-center jc-center" bindtap="openSpecModel_pt">立即参团</view> | ||
| 925 | <block wx:else> | 924 | <block wx:else> |
| 926 | <view class="btn-red f1 flex ai-center jc-center" bindtap="go" data-it="0" data-url="/packageC/pages/luckyGo/luckyGo_details/luckyGo_details?group_id={{luckGoInfo.id}}&goods_id={{luckGoInfo.goods_id}}&goods_name={{data.goods_name}}&team_id={{buyInfo.team_id}}" wx:if="{{showDetails}}">查看详情</view> | 925 | <view class="btn-red f1 flex ai-center jc-center" bindtap="go" data-it="0" data-url="/packageC/pages/luckyGo/luckyGo_details/luckyGo_details?group_id={{luckGoInfo.id}}&goods_id={{luckGoInfo.goods_id}}&goods_name={{data.goods_name}}&team_id={{buyInfo.team_id}}" wx:if="{{showDetails}}">查看详情</view> |
| 927 | <view class="btn-red f1 flex ai-center jc-center" bindtap="openSpecModel_pt" data-it="0" wx:elif="{{!showDetails && surplus != 0 && canBuy}}">立即参团</view> | 926 | <view class="btn-red f1 flex ai-center jc-center" bindtap="openSpecModel_pt" data-it="0" wx:elif="{{!showDetails && surplus != 0 && canBuy}}">立即参团</view> |