index.wxml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <navigationBar bind:reload='reload' showNav="{{false}}"></navigationBar>
  3. <view class="matchBox">
  4. <swiper class="bannerList" autoplay circular indicator-dots="{{bannerList.length>1}}" indicator-active-color="#fff"
  5. indicator-color='#ecececa1'>
  6. <swiper-item wx:for="{{bannerList}}" wx:key="id">
  7. <image src="{{item.icon}}" class="headerImg" data-iconDetail="{{item.iconDetail}}" bindtap="jumpIntro" />
  8. </swiper-item>
  9. </swiper>
  10. <view class="modelText">
  11. <view class="header">
  12. <image src="/static/modelBg.png" class="bg" />
  13. <view class="text">选择下面范文进行朗读</view>
  14. </view>
  15. <swiper class="swiper" autoplay circular indicator-dots previous-margin='40px' next-margin='20px'
  16. indicator-active-color="#7ACAFF" indicator-color='#BABABA'>
  17. <swiper-item wx:for="{{modelList}}" wx:key="id">
  18. <image src="{{item.coverImg}}" class="swiper-item" bindtap='bannelEvent' data-id='{{item.exampleId}}' />
  19. </swiper-item>
  20. </swiper>
  21. </view>
  22. <view class="rankList">
  23. <view class="switchBtns" bindtap="selectType">
  24. <view class="switchBtn {{currentType?'currentBtn currentBtn-l':''}}" data-type='true'>人气榜TOP100</view>
  25. <view class="switchBtn {{!currentType?'currentBtn currentBtn-r':''}}" data-type='false'>我的参赛作品</view>
  26. </view>
  27. <view class="table" wx:if="{{currentType}}">
  28. <view class="titleLine">
  29. <view class="colTitle">排名</view>
  30. <view class="colTitle">人气值</view>
  31. </view>
  32. <block wx:if="{{activityUserList.length>0}}">
  33. <view class="contentBox" wx:for="{{activityUserList}}" wx:key="id">
  34. <view class="firstCol">
  35. <image src="/static/{{index+1}}-1.png" class="rankingImg" wx:if="{{index<3}}" />
  36. <text wx:else>{{index+1}}</text>
  37. </view>
  38. <view class="secondCol" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
  39. <image lazy-load src="{{item.user.avatar}}" class="avatar" />
  40. <view class="userInfo">
  41. <view class="nickName">{{item.user.nickName||item.user.eid}}</view>
  42. <view class="date">
  43. <view>
  44. <image src="/static/f.png" class="icon" />
  45. <view class="num">{{filters.numFilter(item.activityJoinUser.shareAmount)}}</view>
  46. </view>
  47. <view>
  48. <image src="/static/p.png" class="icon" />
  49. <view class="num">{{filters.numFilter(item.activityJoinUser.commentAmount)}}</view>
  50. </view>
  51. <view>
  52. <image src="/static/d.png" class="icon" />
  53. <view class="num">{{filters.numFilter(item.activityJoinUser.likeAmount)}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="threeCol">
  59. <image src="/static/hot.png" class="icon" />
  60. <view class="num">{{filters.numFilter(item.activityJoinUser.hotAmount)}}</view>
  61. </view>
  62. </view>
  63. </block>
  64. <image src="/static/rankNull.png" class="rankNull" wx:else />
  65. <view class="contentBox selfRank" wx:if="{{myActivityUser.activityJoinUser}}">
  66. <view class="firstCol">
  67. <text>{{myActivityUser.activityJoinUser.order}}</text>
  68. </view>
  69. <view class="secondCol">
  70. <image src="{{myActivityUser.user.avatar}}" class="avatar" />
  71. <view class="userInfo">
  72. <view class="nickName">{{myActivityUser.user.nickName||myActivityUser.user.eid}}</view>
  73. <view class="date">
  74. <view>
  75. <image src="/static/f.png" class="icon" />
  76. <view class="num">{{filters.numFilter(myActivityUser.activityJoinUser.shareAmount)}}
  77. </view>
  78. </view>
  79. <view>
  80. <image src="/static/p.png" class="icon" />
  81. <view class="num">{{filters.numFilter(myActivityUser.activityJoinUser.commentAmount)}}
  82. </view>
  83. </view>
  84. <view>
  85. <image src="/static/d.png" class="icon" />
  86. <view class="num">{{filters.numFilter(myActivityUser.activityJoinUser.likeAmount)}}
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="threeCol">
  93. <image src="/static/hot.png" class="icon" />
  94. <view class="num">{{filters.numFilter(myActivityUser.activityJoinUser.hotAmount)}}</view>
  95. </view>
  96. </view>
  97. </view>
  98. <block wx:else>
  99. <worksList class="worksList" videoType='my' worksList="{{list}}" wx:if="{{list.length>0}}" />
  100. <image src="/static/rankNull.png" class="rankNull" wx:else />
  101. </block>
  102. </view>
  103. <canvas id='share' type="2d"> </canvas>
  104. </view>