Commit 5c99a6feffadf0819fe3ba00b48fd1b4a949bc1b

Authored by 后端研发-苏泰源
1 parent 1c16cfe0

幸运购商品详情页修改

packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... ... @@ -279,6 +279,7 @@ Page({
279 279 isTimeUp: false,
280 280  
281 281 surplus: 0,
  282 + canBuy: true,
282 283  
283 284 },
284 285  
... ...
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
... ... @@ -923,9 +923,9 @@
923 923 <view class="xc-ash-b f1 flex ai-center jc-center white fs26" wx:if="{{isTimeUp}}">活动已经结束</view>
924 924 <block wx:else>
925 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>
926   - <view class="btn-red f1 flex ai-center jc-center" bindtap="openSpecModel_pt" data-it="0" wx:elif="{{!showDetails && surplus != 0 && canBuy}}">立即参团</view>
927   - <view class="f1 flex ai-center jc-center xc-ash-b fs26 white" wx:elif="{{!showDetails && surplus == 0}}">已经抢光了</view>
928   - <view class="f1 flex ai-center jc-center xc-ash-b fs26 white" wx:elif="{{!showDetails && surplus != 0 && !canBuy}}">已超限购次数</view>
  926 + <view class="f1 flex ai-center jc-center xc-ash-b fs26 white" wx:if="{{!showDetails && surplus == 0}}">已经抢光了</view>
  927 + <view class="f1 flex ai-center jc-center xc-ash-b fs26 white" wx:if="{{!showDetails && surplus != 0 && !canBuy}}">已超限购次数</view>
  928 + <view class="btn-red f1 flex ai-center jc-center" bindtap="openSpecModel_pt" data-it="0" wx:if="{{!showDetails && surplus != 0 && canBuy}}">立即参团</view>
929 929 </block>
930 930  
931 931 <!-- <view class="btn-red f1 flex ai-center jc-center" wx:else>已经抢光</view> -->
... ...