couponReceive.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <view class="container">
  2. <view class="b">
  3. <view wx:if="{{status == 0}}" class="coupon-switch-block">
  4. <view wx:for="{{typeList}}" wx:for-index="index" wx:for-item="item" wx:key="index" data-type="{{item.type}}"
  5. class="type-switch {{item.type===currentType?'active-switch':''}}" bindtap="switchType">
  6. {{item.name}}
  7. </view>
  8. </view>
  9. <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" class="my-coupon-list">
  10. <!-- 未使用 -->
  11. <view wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" class="my-coupon-item-valid">
  12. <view class="coupon-top">
  13. <view class="coupon-top-left">
  14. <view class="coupon-value">
  15. <text wx:if="{{item.voucherType==1}}" class="coupon-flag">¥</text>
  16. <text class="{{item.type==4?'coupon-value-member':'coupon-value-num'}}" wx:if="{{item.voucherType==1}}">{{item.discount}}</text>
  17. <text class="{{item.type==4?'coupon-value-member':'coupon-value-num'}}" wx:if="{{item.voucherType==2}}">{{item.discount/10}}</text>
  18. <text wx:if="{{item.voucherType==2}}" class="{{item.type==4?'coupon-unit-member':'coupon-unit'}}">折</text>
  19. </view>
  20. <view class="coupon-type">
  21. <text wx:if="{{item.voucherType==1}}" style="color:#555555">满{{item.min}}可用</text>
  22. <text wx:if="{{item.voucherType==2}}" style="color:#555555">满{{item.min}}可用</text>
  23. </view>
  24. </view>
  25. <view class="coupon-top-content">
  26. <view class="coupon-valid-name">{{item.name}}</view>
  27. <view wx:if="{{item.timeType==1}}">有效期至:{{item.endTime}}</view>
  28. <view wx:if="{{item.timeType==0}}">领券后:{{item.days}}天有效</view>
  29. </view>
  30. </view>
  31. <view class="coupon-bottom">
  32. <text wx:if="{{item.desc&&item.name!=item.desc}}" style="flex:1;">{{item.desc}}</text>
  33. <text wx:else=""></text>
  34. <view class="coupon-top-right" data-id="{{item.id}}" bindtap="goReceive">
  35. 领取并使用
  36. </view>
  37. </view>
  38. </view>
  39. </scroll-view>
  40. <view class="no-list" wx:if="{{couponList==0}}">没有更多可领优惠券了</view>
  41. </view>
  42. </view>