index.wxml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!--pages/activity/index/index.wxml-->
  2. <view class="activity-index">
  3. <image class="activity-bg" src="http://reader-wx.ai160.com/images/reader/activity/bg.jpg" mode="scaleToFill">
  4. </image>
  5. <view class="rule" bindtap="rule">
  6. <image src="../../../static/activity/rule-img.png"></image>
  7. </view>
  8. <view class="strategy" bindtap="strategy">
  9. <image src="../../../static/activity/strategy-img.png"></image>
  10. </view>
  11. <!-- <view class="strategy" bindtap="getPrice">
  12. <image src="../../../static/activity/get_price.png"></image>
  13. </view> -->
  14. <view class="activity-works">
  15. <image class="swiper-bg" src="http://reader-wx.ai160.com/images/reader/activity/swiper-bg.png"
  16. mode="scaleToFill"></image>
  17. <text class="gradeText">{{grades}}朗读范文素材</text>
  18. <view class="activity-works-swiper">
  19. <swiper indicator-dots="true" autoplay="false" circular="true" previous-margin="66rpx" next-margin="56rpx"
  20. indicator-color="#BABABA" indicator-active-color="#fff">
  21. <block wx:for="{{activityReadData}}" wx:key="*this">
  22. <swiper-item>
  23. <view class="swiper-item-view" bindtap="goToReading" data-id="{{item.id}}">
  24. <image src="{{item.iconImg}}" mode="scaleToFill"></image>
  25. </view>
  26. </swiper-item>
  27. </block>
  28. </swiper>
  29. </view>
  30. </view>
  31. <view class="activity-ranking">
  32. <view class="activity-ranking-tab">
  33. <!-- <image class="tab-bg" src="../../../static/activity/tab-bg.png" mode="scaleToFill"></image> -->
  34. <image class="select-bg {{selectInd === 0 ? 'left' : 'right'}}" src="{{selectBg[selectInd]}}"
  35. mode="scaleToFill"></image>
  36. <text class="left {{selectInd === 0 && 'select'}}" data-index="0" bindtap="tabSelect">人气榜 TOP100</text>
  37. <text class="right {{selectInd === 1 && 'select'}}" data-index="1" bindtap="tabSelect">我的参赛作品</text>
  38. </view>
  39. <view class="activity-ranking-container" style="background: #fff;" hidden="{{selectInd === 1}}">
  40. <view class="activity-ranking-title">
  41. <text>排名</text>
  42. <text class="midTitle">昵称</text>
  43. <text>人气值</text>
  44. </view>
  45. <view class="scroll-view" style="{{myHotAmountData.activityJoinUser ? 'margin-bottom: 150rpx;' : ''}}">
  46. <view class="scroll-view-item" wx:for="{{hotAmountTopData}}" wx:for-index="index" wx:key="*this">
  47. <image wx:if="{{sortImg[index]}}" class="ranking-number-img" src="{{sortImg[index]}}"></image>
  48. <text wx:else class="ranking-number">{{index + 1}}</text>
  49. <view class="ranking-message">
  50. <view class="reanking-message-head">
  51. <image class="haed-url" bindtap="headTap" src="{{item.user.avatar}}"
  52. data-uid="{{item.user.uid}}"></image>
  53. <image class="follow-url" src="{{item.isFans ? '' : '../../../static/activity/follow.png'}}"
  54. bindtap="{{!item.isFans && 'follow'}}" data-uid="{{item.user.uid}}"
  55. data-fans="{{item.isFans}}"></image>
  56. </view>
  57. <view class="reanking-message-name">
  58. <text>{{item.user.nickName}}</text>
  59. <view class="operation">
  60. <view class="forward">
  61. <image src="../../../static/activity/forward1.png"></image>
  62. {{item.activityJoinUser.shareAmount}}
  63. </view>
  64. <view class="like">
  65. <image src="../../../static/activity/like1.png"></image>
  66. {{item.activityJoinUser.likeAmount}}
  67. </view>
  68. <view class="comment">
  69. <image src="../../../static/activity/comment1.png"></image>
  70. {{item.activityJoinUser.commentAmount}}
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="popularity">
  76. <!-- <image src="../../../static/activity/popularity1.png"></image> -->
  77. {{item.activityJoinUser.hotAmount}}
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="activity-my-ranking" hidden="{{selectInd === 1 || !myHotAmountData.activityJoinUser}}">
  83. <text class="ranking-number" style="color: #fff;">{{myHotAmountData.activityJoinUser.order}}</text>
  84. <view class="ranking-message">
  85. <view class="reanking-message-head">
  86. <image class="haed-url" src="{{myHotAmountData.user.avatar}}"></image>
  87. </view>
  88. <view class="reanking-message-name" style="color: #fff;">
  89. <text style="color: #fff;">{{myHotAmountData.user.nickName}}</text>
  90. <view class="operation" style="color: #fff;">
  91. <view class="forward">
  92. <image src="../../../static/activity/forward.png"></image>
  93. {{myHotAmountData.activityJoinUser.shareAmount}}
  94. </view>
  95. <view class="like">
  96. <image src="../../../static/activity/like.png"></image>
  97. {{myHotAmountData.activityJoinUser.likeAmount}}
  98. </view>
  99. <view class="comment">
  100. <image src="../../../static/activity/comment.png"></image>
  101. {{myHotAmountData.activityJoinUser.commentAmount}}
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="popularity" style="color: #fff;">
  107. <!-- <image src="../../../static/activity/popularity.png"></image> -->
  108. {{myHotAmountData.activityJoinUser.hotAmount}}
  109. </view>
  110. </view>
  111. <view class="my-activity-read" hidden="{{selectInd === 0}}">
  112. <VideoSwiper wx:if="{{activityMyReadData.length > 0}}" class="video-swiper"
  113. video-list="{{activityMyReadData}}" nextMargin="{{nextMargin}}" isSwiper="{{isSwiper}}"
  114. noMoreWork="{{noMoreWork}}" ifHeadTap="{{true}}" binddelHideMyWork="delHideMyWork"
  115. bindcollectTap="collectTap" bindlikeTap="likeTap" bindopenComment="openComment"
  116. bindopenShare="openShare" />
  117. <image class="no_works" wx:if="{{activityMyReadData.length === 0}}"
  118. src="http://reader-wx.ai160.com/images/reader/activity/no_works.png" />
  119. </view>
  120. <view class="comment_section" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  121. <Comment data-type="list" commentId="{{commentId}}" commentNum="{{commentNum}}" inputValue="{{inputValue}}"
  122. bindsendReply="sendReply" />
  123. </view>
  124. </view>
  125. </view>
  126. <canvas canvas-id="myCanvas"
  127. style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>