index.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <radio-group class="list-block" bindchange="radioChange">
  2. <view class='no-voucher' hidden='{{data.meals ? false:true}}'>
  3. <label class='item-content'>
  4. <view class='item-text'>暂不使用现金券</view>
  5. <view class="item-after">
  6. <radio color='#EE3A43' wx:if="{{!selectId}}" checked value='-1'></radio>
  7. <radio color='#EE3A43' value='-1' wx:else></radio>
  8. </view>
  9. </label>
  10. </view>
  11. <view class='noData' hidden='{{list.length > 0 ? true : false}}'><text class="icon icon-info"></text><text>~没有可使用的现金券~</text></view>
  12. <view hidden='{{list.length > 0 ? false : true}}' class="{{item.canUse == 1 ? 'voucher-boxs':'voucher-boxs-disabled'}}" wx:for-items="{{list}}" wx:key="*this">
  13. <label>
  14. <view class='voucher-top'><image src='https://img.bbztx.com/image_test/upload/thumbs/20221031/logo/1667196746213097191.png'></image></view>
  15. <view class='voucher-content item-content'>
  16. <view class='item-text'>
  17. <view>
  18. <text class="subtitleColor"><text class="font18" wx:if="{{item.type!=3}}">¥</text><text class="font30">{{item.price}}</text><text wx:if="{{item.type==3}}" class="font18">折</text></text>
  19. <button bindtap="goUse" data-type="{{item.articleType}}" data-vid="{{item.vid}}" class='button button-warn' wx:if="{{item.status == 1}}">立即使用</button>
  20. <button bindtap="share" data-vid="{{item.vid}}" class='button button-warn' wx:if="{{item.giveStatus == 1}}">转赠</button>
  21. </view>
  22. <view class='expiretime'>有效期至{{item.expireTimeDesc}}</view>
  23. <rich-text nodes="{{item.articleType==1?'商品费':'活动费'}}满{{item.lowestPrice}}元可用,{{item.articleType==1?'':'限儿童,'}}{{item.name.length > 0 ? '限<b class=b>'+item.name+'</b>,':''}}{{item.description}}{{item.canUse == 0 ? '<br />不可用原因:'+item.reason:''}}" class='desc'></rich-text>
  24. </view>
  25. <view class="item-after" wx:if="{{item.status != 1}}">
  26. <text class="{{item.status == 2 ? 'use' : (item.status == 4 ? 'overdue' : (item.status == 6 ? 'invalid' : (item.status == 3 ? 'frozen':'')))}}"></text>
  27. <text class="icon icon-baby{{data.meals ? '':' after'}}"></text>
  28. <radio color='#EE3A43' value='{{item.vid}}'checked="{{item.vid == selectId}}" hidden='{{data.meals ? false:true}}' disabled="{{item.status == 1 && item.canUse == 1 ? false:true}}"></radio>
  29. </view>
  30. </view>
  31. <view class='voucher-bottom'></view>
  32. </label>
  33. </view>
  34. </radio-group>
  35. <view class='load-more' hidden='{{isLoadMore}}'>下面没有了哦</view>
  36. <view class="mask" bindtap="close" wx:if="{{maskShow}}">
  37. <view class="maskBox">
  38. <view class="maskContent">
  39. <view class="maskTitle">温馨提示</view>
  40. <view class="maskTit">是否确认转赠给好友?</view>
  41. </view>
  42. <button open-type="share" class="maskBtn button button-white" catchtap="close">确定</button>
  43. </view>
  44. </view>