couponItem.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <view class="component-coupon-item flex-justify-center flex-column {{couponStatus == 0 ? '' : 'invalid' }}">
  2. <view class="coupon-item-mark">{{marks[item.coupon_type]}}</view>
  3. <view class="coupon-item-content" bindtap="clickItem" data-id="{{item.id}}">
  4. <view class="coupon-item-money">
  5. <view class="coupon-item-money-detail flex-row justify-between" style="margin-top: 30rpx;" wx:if="{{item.coupon_type == 3 || item.coupon_type == 4}}">
  6. <text class="yuan" style="font-size: 44rpx">全免</text>
  7. </view>
  8. <view class="coupon-item-money-detail flex-row justify-between {{item.coupon_type == 2 ? 'line2' : ''}}" wx:else>
  9. <text class="currency">¥</text>
  10. <text class="yuan-price">{{item.price}}</text>
  11. <!-- <text class="fen">.00</text> -->
  12. </view>
  13. <text class="coupon-item-limit-text ellipsis" wx:if="{{item.coupon_type == 2}}">满{{item.full_price}}元可用</text>
  14. </view>
  15. <view class="coupon-item-title flex-col justify-between flex1">
  16. <text class="ellipsis">{{item.coupon_name}}</text>
  17. <text class="coupon-time ellipsis">有效期{{item.ex_time}}</text>
  18. </view>
  19. <view wx:if="{{!source&&couponStatus==0}}" class="coupon-item-btn1 flex-col justify-center align-center" catchtap="check" data-id="{{item.id}}">
  20. 去使用
  21. </view>
  22. <view wx:elif="{{source=='checkbox'}}" class="coupon-item-btn2 flex-col justify-center align-center" catchtap="check" data-id="{{item.id}}">
  23. <image src="{{checkStatus ? '/images/icon_17.png' : '/images/icon_16.png'}}"></image>
  24. </view>
  25. </view>
  26. <!-- 0待使用,1已使用,2已过期 -->
  27. <image class="coupon-item-status-icon" wx:if="{{couponStatus == 1 || couponStatus == 2}}" src="{{couponStatus == 1 ? '/images/my/icon_coupon_used.png' : '/images/my/icon_coupon_expired.png'}}"></image>
  28. <view class="coupon-item-line flex-col"></view>
  29. <view class="coupon-item-rules flex-row flex-center" bindtap="clickRuleText">
  30. <text class="coupon-item-rules-text {{showRuleText ? ' rules-show ' : ' ellipsis '}}">{{item.coupon_desc}}</text>
  31. <view class="flex-center" style="justify-content: flex-end;">
  32. <image style="{{showRuleText ? 'transform: rotate(180deg);' : ''}}" src="{{couponStatus == 0 ? '/images/icon_arrow_2.png' : '/images/icon_arrow_gray.png'}}"></image>
  33. </view>
  34. </view>
  35. </view>