quan.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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"></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>
  28. <view class="split-line"></view>
  29. <!-- 右侧box -->
  30. <view class="tip">
  31. <view class="oilline linwidth227 lineBt "></view>
  32. <view class="vnameBx">
  33. <view class="couponmaes">{{item.itemName}}</view>
  34. <view class="couponmaes" wx:if="{{item.couponType == 1}}">抵扣券</view>
  35. <view class="couponmaes" wx:if="{{item.couponType == 2}}">折扣券</view>
  36. <view class="couponmaes" wx:if="{{item.couponType == 3}}">赠课券</view>
  37. <view class="couponmaes" wx:if="{{item.couponType == 4}}">礼品券</view>
  38. </view>
  39. <view class="oilline linwidth227 lineBt"></view>
  40. <view class="moveCm btnbx" wx:if="{{status == '0' && item.flag == 0}}">
  41. <view class="btnw btnBgActive" bindtap="submitCilck" data-index="{{index}}">
  42. <view class="btnn">立即领取</view>
  43. </view>
  44. </view>
  45. <view class="btnbx" wx:elif="{{status == '0' && item.flag!= 0}}">
  46. <view class="btnw btnBgActive">
  47. <view class="btnn-ed">已领取</view>
  48. </view>
  49. </view>
  50. <view class="moveCm-ed btnbx-ed" wx:elif="{{status != '0'}}">
  51. <view class="btnw btnBgGray">
  52. <view wx:if="{{item.couponStatus == 1}}" class="btnn-ed">可使用</view>
  53. <view wx:if="{{item.couponStatus == 2}}" class="btnn-ed">已使用</view>
  54. <view wx:if="{{item.couponStatus == 3}}" class="btnn-ed">已过期</view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="loading">{{loading}}</view>
  63. </view>