Commit 09e17df37b7d5533e0866d59aca36db3d984f41c

Authored by yvan.ni
1 parent 45808548

立即兑换 如何后台没有设置,不能兑换

packageA/pages/myGift/myGift.wxml
@@ -26,8 +26,8 @@ @@ -26,8 +26,8 @@
26 </view> 26 </view>
27 </view> 27 </view>
28 <view class="btn-container pd20"> 28 <view class="btn-container pd20">
29 - <view bindtap="GetBuyIntegral" data-index="{{index}}" class="btn red">立即兑换</view>  
30 - <view bindtap="GetBuyPrice" data-index="{{index}}" class="btn pink">立即购买</view> 29 + <view wx:if="{{item.lbintegral>0}}" bindtap="GetBuyIntegral" data-index="{{index}}" class="btn red">立即兑换</view>
  30 + <view wx:if="{{item.lbprice>0}}" bindtap="GetBuyPrice" data-index="{{index}}" class="btn pink">立即购买</view>
31 </view> 31 </view>
32 </view> 32 </view>
33 </block> 33 </block>
packageA/pages/myGiftDetails/myGiftDetails.wxml
@@ -56,8 +56,8 @@ @@ -56,8 +56,8 @@
56 <!-- 按钮 --> 56 <!-- 按钮 -->
57 <view class="btn-container"> 57 <view class="btn-container">
58 <block wx:if="{{index == 0}}"> 58 <block wx:if="{{index == 0}}">
59 - <view bindtap="GetBuyIntegral" class="btn red">立即兑换</view>  
60 - <view bindtap="GetBuyPrice" class="btn pink">立即购买</view> 59 + <view wx:if="{{details.lbintegral>0}}" bindtap="GetBuyIntegral" class="btn red">立即兑换</view>
  60 + <view wx:if="{{details.lbprice>0}}" bindtap="GetBuyPrice" class="btn pink">立即购买</view>
61 </block> 61 </block>
62 <view wx:else bindtap="show_hxm" data-type="1" class="btn red">立即使用</view> 62 <view wx:else bindtap="show_hxm" data-type="1" class="btn red">立即使用</view>
63 </view> 63 </view>