coupon.wxml 2.2 KB

12345678910111213141516171819202122232425262728
  1. <!--pages/welfareMall/coupon/coupon.wxml-->
  2. <!-- 内容 -->
  3. <navigator class="{{item.couponType == 'C'?'coupon-list2 flex-row':'coupon-list flex-row'}}" wx:for="{{couponList}}" wx:key="index" data-couponSn="{{item.couponSn}}" target="miniProgram" app-id="wxd92a2d29f8022f40" path="pages/index/index" open-type='navigate'>
  4. <view class="coupon-info flex-column">
  5. <viwe class="coupon-info-tittle">{{item.couponTitle}}</viwe>
  6. <view class="coupon-center-bm flex-row">
  7. <view class="coupon-center-block1"></view>
  8. <view class="coupon-center-middle" wx:if="{{item.formatLeastCost == '0'}}">无门槛</view>
  9. <view class="coupon-center-middle" wx:if="{{item.formatLeastCost != '0'}}">满{{item.formatLeastCost}}元使用</view>
  10. <view class="coupon-center-block2"></view>
  11. </view>
  12. <viwe class="coupon-info-date">{{item.couponBeginTimestamp}}-{{item.couponEndTimestamp}}</viwe>
  13. </view>
  14. <view class="coupon-numText flex-column">
  15. <view class="coupon-num flex-row">
  16. <!-- 折扣券 -->
  17. <view class="{{item.formatDiscount.length > 3 ?'coupon-num-numSmall':'coupon-num-num'}}" wx:if="{{item.couponType == 'D'}}">{{item.formatDiscount ?item.formatDiscount:0}}</view>
  18. <view class="{{item.formatDiscount.length > 3 ?'coupon-num-hanSmall':'coupon-num-han'}}" wx:if="{{item.couponType == 'D'}}">折</view>
  19. <!-- 代金券 -->
  20. <view class="{{item.formatReduceCost.length > 3 ?'coupon-num-hanSmall':'coupon-num-han'}}" wx:if="{{item.couponType == 'C'}}">¥</view>
  21. <view class="{{item.formatReduceCost.length > 3 ?'coupon-num-numSmall':'coupon-num-num'}}" wx:if="{{item.couponType == 'C'}}">{{item.formatReduceCost ?item.formatReduceCost:0}}</view>
  22. </view>
  23. <!-- <jumpmallapp>去使用</jumpmallapp> -->
  24. <view class="coupon-num-text">立即使用</view>
  25. </view>
  26. </navigator>
  27. <view class="no_result" wx:if="{{noResult}}">———— 抱歉,您暂可用优惠券 ————</view>
  28. <view class="no_result" wx:if="{{noMore}}">—— 人家也是有底线的 ——</view>