index.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="activityList">
  3. <view class="activityBox">
  4. <image src="" class="cover" />
  5. <view class="footer">
  6. <view class="info">
  7. <view class="title">标题</view>
  8. <!-- <view class="time">{{filters.formatDate(item.startTime,2)}}—{{filters.formatDate(item.endTime,2)}}
  9. </view> -->
  10. <view class="timeOut {{item.second=='00'?'closing':''}}" wx:if="{{item.second}}">距活动结束:
  11. <view class="outNum">{{item.hour}}</view>
  12. <view class="outSplit">:</view>
  13. <view class="outNum">{{item.minute}}</view>
  14. <view class="outSplit">:</view>
  15. <view class="outNum">{{item.second}}</view>
  16. </view>
  17. </view>
  18. <view class="btn {{item.second=='00'?'closingBtn':''}}" bindtap="drawVoucher">立即领取</view>
  19. </view>
  20. </view>
  21. <block wx:for="{{activityList}}" wx:key="id">
  22. <view class="activityBox" wx:if="{{item.bannerType==1}}" bindtap="activityEvent" data-info="{{item}}">
  23. <image src="{{item.icon}}" class="cover" />
  24. <view class="footer">
  25. <view class="info">
  26. <view class="title">{{item.title}}</view>
  27. <view class="time">{{filters.formatDate(item.startTime,2)}}—{{filters.formatDate(item.endTime,2)}}
  28. </view>
  29. </view>
  30. <view class="btn">立即参与</view>
  31. </view>
  32. </view>
  33. <view class="ranking-class-1" wx:if="{{item.bannerType==2}}">
  34. <view class="header">
  35. <view class="title">{{item.title}}</view>
  36. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  37. <image src="/static/black.png" class="backIcon" />
  38. </view>
  39. </view>
  40. <view class="body">
  41. <view class="top">
  42. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[1].uid}}'>
  43. <view class="secondUser">
  44. <image src="{{item.userList[1].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  45. </view>
  46. <view class="nickName textOver">{{item.userList[1].nickName||item.userList[1].eid||'等你来占位'}}</view>
  47. </view>
  48. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[0].uid}}'>
  49. <view class="firstUser">
  50. <image src="{{item.userList[0].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  51. </view>
  52. <view class="nickName textOver">{{item.userList[0].nickName||item.userList[0].eid||'等你来占位'}}</view>
  53. </view>
  54. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[2].uid}}'>
  55. <view class="thirdUser">
  56. <image src="{{item.userList[2].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  57. </view>
  58. <view class="nickName textOver">{{item.userList[2].nickName||item.userList[2].eid||'等你来占位'}}</view>
  59. </view>
  60. </view>
  61. <view class="btm">
  62. <view class="userBox" wx:for="{{5}}" wx:key="index" wx:for-item="items">
  63. <image src="{{item.userList[index+3].avatar||'/static/nullAvatar.png'}}" class="avatar"
  64. bindtap="jumpUserInfo" data-uid='{{item.userList[index+3].uid}}' />
  65. <view class="nickName textOver">
  66. {{item.userList[index+3].nickName||item.userList[index+3].eid||'等你来占位'}}
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="ranking-class-2 {{item.type=='2'?'yxb':item.type=='3'?'rbb':'pkb'}}" wx:if="{{item.bannerType==3}}">
  73. <view class="header">
  74. <view class="left">
  75. <image src="{{item.type=='2'?'/static/yxb.png':item.type=='3'?'/static/rbb.png':'/static/pkb.png'}}"
  76. class="icon" />
  77. <view class="title">{{item.title}}</view>
  78. </view>
  79. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  80. <image src="/static/rBtn.png" class="backIcon" />
  81. </view>
  82. </view>
  83. <view class="body">
  84. <view class="row" wx:for="{{3}}" wx:key="index" wx:for-item='items' bindtap="jumpUserInfo"
  85. data-uid='{{item.userList[index].uid}}'>
  86. <view class="left">
  87. <image src="/static/{{index+1}}-1.png" class="stand" />
  88. <image src="{{item.userList[index].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  89. <view class="nickName textOver">{{item.userList[index].nickName||item.userList[index].eid||'等你来占位'}}
  90. </view>
  91. </view>
  92. <view class="right">
  93. <image src="{{item.type=='2'?'/static/yx.png':item.type=='3'?'/static/play.png':'/static/win.png'}}"
  94. class="playIcon" />
  95. <view class="num">{{item.userList[index].count}}</view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </block>
  101. </view>
  102. <Voucher id="voucher" />