reward.wxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <view class="tabs">
  2. <view class='tabs-bar'>
  3. <view class='tabs-nav--container'>
  4. <view class='tabs-nav--wrap'>
  5. <view class='tabs-nav tabs-nav--animated'>
  6. <view class='tabs-link-bar tabs-link-bar-animated'></view>
  7. <view bindtap='tabchange' data-index='1' class='tabs-tab J-tabs-tab-key {{tab_index==1?"tabs-tab-active":""}}'
  8. 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":""}}'
  12. style="{{tab_index ==2?'border-color:'+skin.color+';color:'+skin.color:''}}">
  13. 积分
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <view wx:if="{{tab_index==1}}" class="list u-p-l-20 u-p-r-20">
  21. <view class="coupon {{item.is_over==1?'expired':''}} {{item.is_use==1?'used':''}}" wx:for="{{list}}" wx:key="key" wx:if="{{list.length}}">
  22. <view class='header'>
  23. <view class='price'>
  24. <view class='reduce-price'>
  25. {{item.credit}}<text>元</text>
  26. </view>
  27. <view class='reduce-desc'>{{item.limit_money >0.01 ?'满'+item.limit_money+'元可用':'不限制'}}</view>
  28. </view>
  29. <view class='info'>
  30. <view class='reduce-title'><text class='reduce-type' wx:if="{{item.tag}}">{{item.tag}}</text>
  31. {{item.voucher_title}}</view>
  32. <view class='reduce-area' wx:if="{{item.is_limit_goods_buy==0}}">使用范围:所有商品</view>
  33. <view class='reduce-area' wx:elif="{{item.is_limit_goods_buy==1}}">使用范围:指定商品</view>
  34. <view class='reduce-area' wx:elif="{{item.is_limit_goods_buy==2}}">使用范围:指定分类</view>
  35. </view>
  36. <view class='status' wx:if="{{item.is_collect==1}}">
  37. <view class='go-shop' wx:if="{{item.is_over==0&&item.is_use==0}}" bindtap='goUse' data-idx='{{index}}'>去使用
  38. </view>
  39. <image src="../../images/expired.png" wx:if="{{item.is_over==1&&item.is_use==0}}"></image>
  40. <image src="../../images/used.png" wx:if="{{item.is_use==1}}"></image>
  41. </view>
  42. <view class='status' wx:else>
  43. <view class='go-shop' wx:if="{{item.is_use==2&&(item.total_count-item.send_count)>0}}" bindtap='receiveCoupon' data-idx='{{index}}'>领取</view>
  44. <image src="../../images/expired.png" wx:elif="{{item.is_over==1}}"></image>
  45. <image src="../../images/qiangguang.png" wx:elif="{{item.is_nomore==1||(item.total_count-item.send_count)==0}}"></image>
  46. </view>
  47. </view>
  48. <view class='footer i-flex'>
  49. <text class="footer-tag bg-sucess" wx:if="{{item.receive_type=='invitegift'||item.receive_type=='invitegift_new'}}">邀新奖励</text>
  50. <view>有效期:{{item.begin_time}}~{{item.end_time}}</view>
  51. </view>
  52. </view>
  53. <i-empty wx:if="{{list.length==0}}">暂无记录~</i-empty>
  54. </view>
  55. <view class="list text-center" wx:else>
  56. <view class="bg-f u-p-t-35 u-p-b-50">
  57. <view class="u-font-32 medium pos-r">
  58. <view>当前活动获得积分</view>
  59. <view class="i-flex i-aic details u-font-24" bindtap="goLink" data-link="/lionfish_comshop/moduleB/invite/scoreList">
  60. <view>积分明细</view>
  61. <text class="iconfont icon-youjiantou" style="color: #ff6139;font-size:24rpx;"></text>
  62. </view>
  63. </view>
  64. <view class="i-flex u-m-t-35 jcontent-c" style="color: #ff6139;line-height: 1;align-items:flex-end;">
  65. <view class="score">{{total_points}}</view>
  66. <text>积分</text>
  67. </view>
  68. </view>
  69. </view>