index.wxml 6.2 KB

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