index.wxml 6.3 KB

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