coupon.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <i-auth bind:authSuccess="authSuccess" needAuth="{{!is_login}}">
  2. <view class='tabs'>
  3. <view class='tabs-bar'>
  4. <view class='tabs-nav--container'>
  5. <view class='tabs-nav--wrap'>
  6. <view class='tabs-nav tabs-nav--animated'>
  7. <view class='tabs-link-bar tabs-link-bar-animated'></view>
  8. <view bindtap='tabchange' data-index='1' class='tabs-tab J-tabs-tab-key {{tab_index ==1?"tabs-tab-active":""}}' style="{{tab_index ==1?'border-color:'+skin.color+';color:'+skin.color:''}}">
  9. 未使用
  10. </view>
  11. <view bindtap='tabchange' data-index='2' class='tabs-tab J-tabs-tab-key {{tab_index ==2?"tabs-tab-active":""}}' style="{{tab_index ==2?'border-color:'+skin.color+';color:'+skin.color:''}}">
  12. 已使用/已过期
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class='list'>
  19. <view class="coupon {{item.is_over==1?'expired':''}} {{item.is_use==1?'used':''}}" wx:for="{{quan}}" wx:key="key" wx:if="{{quan.length}}">
  20. <view class='header'>
  21. <view class='price'>
  22. <view class='reduce-price'>
  23. {{item.credit}}<text>元</text>
  24. </view>
  25. <view class='reduce-desc'>{{item.limit_money >0.01 ?'满'+item.limit_money+'元可用':'不限制'}}</view>
  26. </view>
  27. <view class='info'>
  28. <view class='reduce-title'><text class='reduce-type' wx:if="{{item.tag}}">{{item.tag}}</text> {{item.voucher_title}}</view>
  29. <view class='reduce-area' wx:if="{{item.is_limit_goods_buy==0}}">使用范围:所有商品</view>
  30. <view class='reduce-area' wx:elif="{{item.is_limit_goods_buy==1}}">使用范围:指定商品</view>
  31. <view class='reduce-area' wx:elif="{{item.is_limit_goods_buy==2}}">使用范围:指定分类</view>
  32. </view>
  33. <view class='status'>
  34. <view class='go-shop' wx:if="{{item.is_over==0&&item.is_use==0}}" bindtap='goUse' data-idx='{{index}}'>去使用</view>
  35. <image src="../../images/expired.png" wx:if="{{item.is_over ==1&&item.is_use==0}}"></image>
  36. <image src="../../images/used.png" wx:if="{{item.is_use ==1}}"></image>
  37. </view>
  38. </view>
  39. <view class='footer i-flex'>
  40. <text class="footer-tag bg-sucess" wx:if="{{item.receive_type=='invitegift'||item.receive_type=='invitegift_new'}}">邀新奖励</text>
  41. <view>有效期:{{item.begin_time}}~{{item.end_time}}</view>
  42. </view>
  43. </view>
  44. <view class='empty-wrap' wx:if="{{quan.length==0&&isHideLoadMore}}">
  45. <image class='empty-img' src='../../images/noData.png'></image>
  46. <view class='empty-txt'>暂无任何记录~</view>
  47. </view>
  48. <i-load-more iClass="loadMore" loading="{{!isHideLoadMore}}" tip="{{loadText}}" wx:if="{{!isHideLoadMore}}"></i-load-more>
  49. </view>
  50. </view>
  51. </i-auth>