couponSelect.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <view class="container">
  2. <scroll-view class="coupon-list" scroll-y="true" scroll-top="{{scrollTop}}">
  3. <view class="unselect" bindtap='unselectCoupon'>不选择优惠券</view>
  4. <view class="my-coupon-list">
  5. <view wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" class="my-coupon-item" bindtap="selectCoupon" data-id="{{item.id}}" data-cid="{{item.cid}}">
  6. <view class="coupon-left">
  7. <view wx:if="{{item.voucherType==1}}">¥<text class="coupon-amount">{{item.discount}}</text></view>
  8. <view wx:if="{{item.voucherType==2}}"><text class="coupon-amount">{{item.discount/10}}</text>折</view>
  9. <view class="coupon-type">
  10. <!-- {{item.name}} -->
  11. <span wx:if="{{item.voucherType==1}}">立减券</span>
  12. <span wx:if="{{item.voucherType==2}}">折扣券</span>
  13. </view>
  14. <view class="coupon-btn active-btn" data-goodsvalue="{{item.goodsValue}}" bindtap="goService">立即使用</view>
  15. </view>
  16. <view class="coupon-content">
  17. <view class="coupon-name">{{item.name}}</view>
  18. <view class="coupon-date">有效期开始:{{item.startTime}}</view>
  19. <view class="coupon-date">有效期结束:{{item.endTime}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- <view class="item" wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" bindtap="selectCoupon" data-id="{{item.id}}" data-cid="{{item.cid}}">
  24. <view class="tag">{{item.tag}}</view>
  25. <view class="content">
  26. <view class="left">
  27. <view class="discount">{{item.discount}}元</view>
  28. <view class="min"> 满{{item.min}}元使用</view>
  29. </view>
  30. <view class="right">
  31. <view class="name">{{item.name}}</view>
  32. <view class="time"> 有效期:{{item.startTime}} - {{item.endTime}}</view>
  33. </view>
  34. </view>
  35. <view class="condition">
  36. <text class="txt">{{item.desc}}</text>
  37. <image src="{{item.pic}}" class="icon"></image>
  38. </view>
  39. </view> -->
  40. <view class="no-list" wx:if="{{couponList==0}}">暂无优惠券</view>
  41. </scroll-view>
  42. </view>