exchange.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--pages/integral/exchange.wxml-->
  2. <view style="box-sizing:border-box;display: block;">
  3. <view class="card-list" wx:for="{{cardList}}" wx:key="key" data-id="{{item.id}}">
  4. <view class="card-list-top flex-row">
  5. <image class="top-image" src="{{item.image}}" mode="aspectFill"></image>
  6. <view class="content">
  7. <view class="content-title">
  8. <text>{{item.coupon_name}}</text>
  9. </view>
  10. <view class="content-type">
  11. <text>代金券1张</text>
  12. </view>
  13. <view class="content-num" wx:if="{{item.show != 0}}">
  14. <text>券码:{{item.coupon_code}}</text>
  15. </view>
  16. </view>
  17. <view class="status" :style="item.order_status === 0 ? 'line-height: 168upx;' : 'line-height: 84upx;'">
  18. <text class="status-text" style="color: rgb(245, 108, 108);" catchtap="toInstructions">使用说明</text>
  19. <text class="status-text" style="color: rgb(51, 51, 51);">{{item.order_status === 1 ? '已使用' : item.order_status === 2 ? '已过期' : ''}}</text>
  20. </view>
  21. </view>
  22. <view class="time">
  23. <text>有效期:</text>
  24. <text>{{item.start}} </text>
  25. <text>至</text>
  26. <text> {{item.end}}</text>
  27. </view>
  28. </view>
  29. <view class="card-img" wx:if="{{cardList.length === 0}}">
  30. <view class="card-img-text">
  31. <text>暂无卡券</text>
  32. </view>
  33. </view>
  34. </view>