index.wxml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <wxs src='../../pages/wxs/util.wxs' module='filter' />
  2. <view class="list septal-bottom-line borderRadiu" wx:for="{{activeData}}" wx:key="unique" >
  3. <view bindtap="goDetails" data-aid="{{item.aid}}" data-title="{{item.title}}">
  4. <view class="content-pad">
  5. <view class="listBan">
  6. <image src="{{filter.formatImg(imgPath, item.logo)}}" mode="aspectFill" lazy-load="true" binderror="binderror" data-aid="{{item.aid}}" data-index="{{index}}"></image>
  7. <view class="label" wx:if="{{history}}">
  8. <text class="labelText gray"><text class="icon icon-finish"></text> 往期活动</text>
  9. </view>
  10. <view class='label' wx:else>
  11. <text class="labelText statusDisabled" wx:if="{{item.status == 1}}"><text class="icon icon-finish"></text> 已结束</text>
  12. <text class="labelText statusAll" wx:elif="{{item.status == 2}}"><text class="icon icon-full"></text> 已满额</text>
  13. <view wx:elif="{{item.status == 0}}">
  14. <text class="labelText discountLG" wx:if="{{(item.discount == '早鸟+拼团折扣' || item.discount == '拼团+早鸟折扣') && item.presellOpen == 0}}">拼团+早鸟折扣</text>
  15. <text class='labelText discountG' wx:elif="{{item.discount == '拼团折扣' && item.presellOpen == 0}}">拼团折扣</text>
  16. <text class='labelText discountL' wx:elif="{{item.discount == '早鸟折扣' && item.presellOpen == 0}}">早鸟折扣</text>
  17. <text class='labelText discountG' wx:elif="{{item.presellOpen == 1}}"><text class="icon icon-pressel"></text> 预售中</text>
  18. </view>
  19. <text class='labelText statusSoon' wx:elif="{{(item.status == 3 && item.presellOpen == 0) || item.presellOpen == 2}}"><text class="icon icon-soon"></text> 即将开始</text>
  20. </view>
  21. <view class="listPos">
  22. <view class="left">
  23. <text wx:if="{{item.sparent!=2}}" class="theme">
  24. <text class="icon {{item.sparent==0?'icon-guarder':'icon-me'}}" style="color: #3E3A39;"></text>{{item.sparent==0?'亲子':'独立'}}营
  25. </text>
  26. <text class="icon icon1 icon-time" style="margin-left:20rpx;"></text>{{item.days}}天<text class="icon icon-children icon1" style="margin-left:20rpx;"></text>{{item.ages?item.ages+'岁':'所有'}}
  27. </view>
  28. <view class="right">
  29. <text class="saleCount" wx:if="{{item.saleCount > 10}}">{{item.saleCount}}人参加</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="card-bottom">
  35. <view class="card-bottom-info">
  36. <view class="titleT">{{item.title}}</view>
  37. <view class="act-sign font12">
  38. <text wx:if="{{item.presellOpen == 1}}">预付折扣</text>
  39. <block wx:if="{{item.discount}}">
  40. <text wx:for="{{item.discount}}" wx:for-item="el" wx:key="unique" wx:if="{{(el != '早鸟' && el != '早鸟折扣' && item.presellOpen != 0)|| item.presellOpen == 0}}">{{el}}</text>
  41. </block>
  42. <text wx:if="{{item.maxUserCoin&&item.maxUserCoin>0}}">宝贝币最高可抵{{item.maxUserCoin/10}}元</text>
  43. </view>
  44. <view class="listInfo">
  45. <block wx:if="{{item.tags.length > 0}}">
  46. <view class="gray6 font12"><text><block wx:for="{{item.tags}}" wx:for-index="idx" wx:for-item="it" wx:key="unique">{{idx > 0 ? ' | ':''}}{{it.tagValue}}</block></text></view>
  47. </block>
  48. <!-- <view class='gray font12'>{{item.sessionsDays || ''}}</view> -->
  49. </view>
  50. </view>
  51. <view class="listTitle">
  52. <view class="listPrice">
  53. <view class="{{item.originalPrice?'actualPrice':'noOriginPrice'}}">¥{{item.price}}</view>
  54. <view class="s" wx:if="{{item.originalPrice}}">¥{{item.originalPrice}}</view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>