index.wxml 1.4 KB

1234567891011121314151617181920212223242526
  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._type == 0 ? "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._type==0?"gray":""}}' wx:if="{{item.applicable_type===0}}">通用劵</span>
  11. <span class='line-title {{item._type==0?"gray":""}}' wx:elif="{{item.applicable_type===1}}">品类券</span>
  12. <span class='line-title {{item._type==0?"gray":""}}' wx:else>商品券</span>
  13. <span>{{item.coupon_title}}</span>
  14. </view>
  15. <view class='data acea-row row-between-wrapper'>
  16. <view>{{ item.start_time ? item.start_time+'-':''}}{{ item.end_time }}</view>
  17. <view class='bnt gray' wx:if="{{item._type==0}}">{{item._msg}}</view>
  18. <view class='bnt bg-color' wx:else>{{item._msg}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class='noCommodity' wx:if="{{!couponsList.length && loading==true}}">
  24. <view class='pictrue'><image src='/images/noCoupon.png'></image></view>
  25. </view>
  26. <authorize bind:onLoadFun="onLoadFun"></authorize>