coupon.wxml 1.4 KB

123456789101112131415161718192021222324252627
  1. <template name="coupon">
  2. <view wx:if="{{hasCoupon}}" class="promotion">
  3. <view class="slider">
  4. <view class="slider-wraper">
  5. <view class="list">
  6. <view bindtap='receiveCoupon' wx:for="{{quan}}" wx:key="id" data-quan_id="{{qItem.id}}" wx:for-index="idx" wx:for-item='qItem'
  7. class="card-content list-item {{(qItem.is_get==1&&qItem.is_hide>0)? 'get':''}}">
  8. <view class="card">
  9. <view class="card-price span">
  10. <view class="card-price--unit span">¥</view>
  11. <view class="card-price--num span">{{qItem.credit}}</view>
  12. </view>
  13. <view class="card-desc span" wx:if="{{qItem.limit_money >0}}">
  14. 满{{qItem.limit_money}}元可用</view>
  15. <view class='card-desc span fsz-16' wx:if="{{qItem.is_limit_goods_buy==0}}">使用范围:所有商品</view>
  16. <view class='card-desc span fsz-16' wx:elif="{{qItem.is_limit_goods_buy==1}}">使用范围:指定商品</view>
  17. <view class='card-desc span fsz-16' wx:elif="{{qItem.is_limit_goods_buy==2}}">使用范围:指定分类</view>
  18. <view class="card-tag span {{(qItem.is_get==1&&qItem.is_hide>0)? 'card-tag--get':''}}">
  19. <view class="card-tag--text span">已领取</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>