index.wxml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 {{item.type=='2'?'yxb':item.type=='3'?'rbb':'pkb'}}" wx:if="{{item.bannerType==2}}">
  34. <view class="header">
  35. <view class="left">
  36. <image src="{{item.type=='2'?'/static/yxb.png':item.type=='3'?'/static/rbb.png':'/static/pkb.png'}}"
  37. class="icon" />
  38. <view class="title">{{item.title}}</view>
  39. </view>
  40. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  41. <image src="/static/rBtn.png" class="backIcon" />
  42. </view>
  43. </view>
  44. <view class="body">
  45. <view class="top">
  46. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[1].uid}}'>
  47. <view class="secondUser">
  48. <image src="{{item.userList[1].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  49. </view>
  50. <view class="nickName textOver">{{item.userList[1].nickName||item.userList[1].eid||'等你来占位'}}</view>
  51. </view>
  52. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[0].uid}}'>
  53. <view class="firstUser">
  54. <image src="{{item.userList[0].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  55. </view>
  56. <view class="nickName textOver">{{item.userList[0].nickName||item.userList[0].eid||'等你来占位'}}</view>
  57. </view>
  58. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[2].uid}}'>
  59. <view class="thirdUser">
  60. <image src="{{item.userList[2].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  61. </view>
  62. <view class="nickName textOver">{{item.userList[2].nickName||item.userList[2].eid||'等你来占位'}}</view>
  63. </view>
  64. </view>
  65. <view class="btm">
  66. <view class="userBox" wx:for="{{5}}" wx:key="index" wx:for-item="items">
  67. <image src="{{item.userList[index+3].avatar||'/static/nullAvatar.png'}}" class="avatar"
  68. bindtap="jumpUserInfo" data-uid='{{item.userList[index+3].uid}}' />
  69. <view class="nickName textOver">
  70. {{item.userList[index+3].nickName||item.userList[index+3].eid||'等你来占位'}}
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="ranking-class-2 {{item.type=='2'?'yxb':item.type=='3'?'rbb':'pkb'}}" wx:if="{{item.bannerType==3}}">
  77. <view class="header">
  78. <view class="left">
  79. <image src="{{item.type=='2'?'/static/yxb.png':item.type=='3'?'/static/rbb.png':'/static/pkb.png'}}"
  80. class="icon" />
  81. <view class="title">{{item.title}}</view>
  82. </view>
  83. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  84. <image src="/static/rBtn.png" class="backIcon" />
  85. </view>
  86. </view>
  87. <view class="body">
  88. <view class="row" wx:for="{{3}}" wx:key="index" wx:for-item='items' bindtap="jumpUserInfo"
  89. data-uid='{{item.userList[index].uid}}'>
  90. <view class="left">
  91. <image src="/static/{{index+1}}-1.png" class="stand" />
  92. <image src="{{item.userList[index].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  93. <view class="nickName textOver">{{item.userList[index].nickName||item.userList[index].eid||'等你来占位'}}
  94. </view>
  95. </view>
  96. <view class="right">
  97. <image src="{{item.type=='2'?'/static/yx.png':item.type=='3'?'/static/play.png':'/static/win.png'}}"
  98. class="playIcon" />
  99. <view class="num">{{item.userList[index].count}}</view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </block>
  105. </view>
  106. <Voucher id="voucher" />