index.wxml 1.7 KB

12345678910111213141516171819202122232425262728
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='coupon-list' wx:if="{{couponsList.length}}">
  3. <view class='item acea-row row-center-wrapper' wx:for="{{couponsList}}" wx:key='index'>
  4. <view class='money {{item.is_use ? "moneyGray" : "" }}'>
  5. <view>¥<text class='num'>{{item.coupon_price}}</text></view>
  6. <view class="pic-num">满{{item.use_min_price}}元可用</view>
  7. </view>
  8. <view class='text'>
  9. <view class='condition line1'>
  10. <span class='line-title {{(item.is_use==true || item.is_use==2)?"gray":""}}' wx:if="{{item.type===0}}">通用劵</span>
  11. <span class='line-title {{(item.is_use==true || item.is_use==2)?"gray":""}}' wx:elif="{{item.type===1}}">品类券</span>
  12. <span class='line-title {{(item.is_use==true || item.is_use==2)?"gray":""}}' wx:else>商品券</span>
  13. <span>{{item.title}}</span>
  14. </view>
  15. <view class='data acea-row row-between-wrapper'>
  16. <view wx:if='{{item.end_time != 0}}'>{{ item.start_time ? item.start_time+'-':''}}{{ item.end_time }}</view>
  17. <view wx:else>不限时</view>
  18. <view class='bnt gray' wx:if="{{item.is_use==true}}">已领取</view>
  19. <view class='bnt gray' wx:elif="{{item.is_use==2}}">已领完</view>
  20. <view class='bnt bg-color' wx:else bindtap='getCoupon' data-id="{{item.id}}" data-index="{{index}}">立即领取</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class='noCommodity' wx:elif="{{!couponsList.length && loading==true}}">
  26. <view class='pictrue'><image src='/images/noCoupon.png'></image></view>
  27. </view>
  28. <authorize bind:onLoadFun="onLoadFun"></authorize>