couponCenter.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="bgc">
  2. <view class="couponBig">
  3. <!-- <image class="backgroundImage" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220822/%E7%BC%96%E7%BB%84%203%402x%20%283%29.png"></image> -->
  4. <!-- 优惠券 -->
  5. <view class="couponBig-box">
  6. <view class="coupon" wx:for="{{CouponList}}" wx:key="index">
  7. <view class="couponLeft">
  8. <!-- 优惠券类型,1无条件抵扣券,2满减券,3全额券,4卡券,项目全减券 -->
  9. <view class="couponType">{{couponType[item.type-1]}}</view>
  10. <view class="price" wx:if="{{item.type==3||item.type==4}}">
  11. <text class="a">全免</text>
  12. </view>
  13. <view class="price" wx:else>
  14. <view>
  15. <text>¥</text>
  16. <text class="a">{{item.price}}</text>
  17. </view>
  18. <view wx:if="{{item.type==2}}" class="full_price">满{{item.full_price}}可用</view>
  19. </view>
  20. </view>
  21. <view class="couponRight">
  22. <view class="couponRight-box">
  23. <view class="title">{{item.coupon_name}}</view>
  24. <!-- <view class="condition" wx:if="{{item.type==2}}">满{{item.full_price}}元可用</view> -->
  25. <view wx:if="{{item.coupon_desc!=''}}" class="condition coupon_desc">{{item.coupon_desc}}</view>
  26. </view>
  27. <view class="button" bindtap="getCoupon" data-activeId="{{item.id}}" wx:if="{{item.status==1}}">领取</view>
  28. <!-- <view class="button-open" wx:else>已领取</view> -->
  29. <view class="button" bindtap="goProject" wx:else>去使用</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>