quan.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <view class="container">
  2. <!-- 顶部切换标题 -->
  3. <switchTab arr="{{switchTitle}}" bind:changeIndex="changeIndex"></switchTab>
  4. <!-- end -->
  5. <view class="quan-view">
  6. <view class="quan-list">
  7. <view class="quan-box">
  8. <view class="{{status == 0 ? 'wrapper' : 'wrapper-ed'}}" wx:for="{{list}}" wx:key='index'>
  9. <!-- 左侧box -->
  10. <view class="content">
  11. <view class="{{status == 0 ? 'couponCount' : 'couponCount-ed'}}">火爆</view>
  12. <view class="oilline linwidth160 lineBt" style="margin-top:26rpx"></view>
  13. <view wx:if="{{item.couponType == 1}}">
  14. <text class="moyfh">¥</text>
  15. <text class="moneyNum">{{item.couponAmount}}</text>
  16. </view>
  17. <view wx:if="{{item.couponType == 2}}">
  18. <text class="moneyNum zk-quan">{{item.couponAmount}} 折</text>
  19. </view>
  20. <view wx:if="{{item.couponType == 3}}">
  21. <text class="moneyNum">{{item.couponAmount}} 课时</text>
  22. </view>
  23. <view wx:if="{{item.couponType == 4}}">
  24. <text class="moneyNum">{{item.couponAmount}} 个</text>
  25. </view>
  26. <view class="oilline linwidth160 lineBt"></view>
  27. <view class="tempThreshold">{{item.tempThreshold}}</view>
  28. </view>
  29. <view class="split-line"></view>
  30. <!-- 右侧box -->
  31. <view class="tip">
  32. <view class="tempDate">{{item.tempDate}}</view>
  33. <view class="oilline linwidth227 lineBt "></view>
  34. <view class="vnameBx">
  35. <view class="couponmaes">{{item.itemName}}</view>
  36. <view class="couponmaes" wx:if="{{item.couponType == 1}}">{{item.couponAmount}}元 优惠券</view>
  37. <view class="couponmaes" wx:if="{{item.couponType == 2}}">{{item.couponAmount}}折 折扣券</view>
  38. <view class="couponmaes" wx:if="{{item.couponType == 3}}">赠课券</view>
  39. <view class="couponmaes" wx:if="{{item.couponType == 4}}">礼品券</view>
  40. </view>
  41. <view class="oilline linwidth227 lineBt"></view>
  42. <view class="tempDetail">
  43. {{item.tempRange}}<view style="display:inline-block;width:20rpx"></view>{{item.tempCrowd}}
  44. </view>
  45. <view class="moveCm btnbx" wx:if="{{status == '0' && item.flag == 0}}">
  46. <view class="btnw btnBgActive" bindtap="submitCilck" data-index="{{index}}">
  47. <view class="btnn">立即领取</view>
  48. </view>
  49. </view>
  50. <!-- <view class="btnbx" wx:elif="{{status == '0' && item.flag!= 0}}">
  51. <view class="btnw btnBgActive">
  52. <view class="btnn-ed">已领取</view>
  53. </view>
  54. </view> -->
  55. <!-- <view class="moveCm-ed btnbx-ed" >
  56. <view class="btnw btnBgGray">
  57. <view wx:if="{{item.couponStatus == 1}}" class="btnn-ed">可使用</view>
  58. <view wx:if="{{item.couponStatus == 2}}" class="btnn-ed">已使用</view>
  59. <view wx:if="{{item.couponStatus == 3}}" class="btnn-ed">已过期</view>
  60. </view>
  61. </view> -->
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="loading">{{loading}}</view>
  68. </view>