大数据平台的小程序版本

index.wxml 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!--pages/liveDetail/index.wxml-->
  2. <wxs module="filter" src="../../assets/js/common.wxs"></wxs>
  3. <!-- <view class="liveDetail" wx:if="{{infoObj}}"> -->
  4. <scroll-view class="liveDetail" scroll-y="true" style="height:{{scrollHeight}}px;" bindscrolltolower="bindDownLoad" bindscroll="scroll">
  5. <view class="mainInfo">
  6. <view class="mainImg" style="height:200rpx;">
  7. <image class="targetImg" mode="aspectFit" src="{{infoObj.cover_thumbnail_url}}" webp="{{infoObj.cover_thumbnail_url&&infoObj.cover_thumbnail_url.indexOf('.webp') != -1 ? true : false}}"></image>
  8. </view>
  9. <view class="infoText">
  10. <view class="people">
  11. <view class="mainIcon">
  12. <image style="display:inline-block;width:100%;height:100%;border-radius:50%" wx:if="{{infoObj.headurl}}" src="{{infoObj.headurl}}"></image>
  13. </view>
  14. <view class="rightInfo">
  15. <view class="user">{{infoObj.user_name?infoObj.user_name:'-'}}</view>
  16. <view class="count">{{infoObj.fan?infoObj.fan:'-'}}粉丝</view>
  17. </view>
  18. </view>
  19. <view class="date">
  20. {{infoObj.time?infoObj.time:'-'}}
  21. </view>
  22. </view>
  23. </view>
  24. <view class="tabList {{isFix?'toTop':''}}" id="tabItem">
  25. <view class="tab {{tab==1?'active':''}}" data-id="1" bindtap="check">最新评论</view>
  26. <view class="tab {{tab==2?'active':''}}" data-id="2" bindtap="check">热门评论</view>
  27. </view>
  28. <view wx:if="{{isFix}}" style="width:100%;height:56rpx;background:#fff;"></view>
  29. <view wx:if="{{tab==1}}">
  30. <view class="total">
  31. <view class="ul">
  32. <view class="li">
  33. <text class="text">
  34. 播放量
  35. </text>
  36. <text>
  37. {{infoObj.view_count?infoObj.view_count:'-'}}
  38. </text>
  39. </view>
  40. <view class="li">
  41. <text class="text">
  42. 评论量
  43. </text>
  44. <text>
  45. {{infoObj.comment_count?infoObj.comment_count:'-'}}
  46. </text>
  47. </view>
  48. <view class="li">
  49. <text class="text">
  50. 点赞数
  51. </text>
  52. <text>
  53. {{infoObj.like_count?infoObj.like_count:'-'}}
  54. </text>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="commentList">
  59. <view class="commentItem" wx:for="{{newCommentList}}"wx:key="newComment">
  60. <view class="comment">
  61. <image class="commentIcon" src="{{item.headurl}}"></image>
  62. <view class="commentleft">
  63. <view class="user">{{item.author_name?item.author_name:'-'}}</view>
  64. <view class="date">{{item.time}}</view>
  65. </view>
  66. <view class="commentRight">
  67. <image class="like" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/nolike.png"></image>
  68. <text>{{item.likedCount?item.likedCount:'-'}}</text>
  69. </view>
  70. </view>
  71. <view class="content">
  72. {{item.content}}
  73. </view>
  74. </view>
  75. <view class="noneBox" wx:if="{{noneNew}}">
  76. <image class="noneImg" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/dataLoadingImg.png"></image>
  77. <view class="noneText">暂无最新评论</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view wx:if="{{tab==2}}">
  82. <view class="commentList" style="padding-top:42rpx;">
  83. <view class="commentItem" wx:for="{{hotCommentList}}"wx:key="newComment">
  84. <view class="comment">
  85. <image class="commentIcon" src="{{item.headurl}}"></image>
  86. <view class="commentleft">
  87. <view class="user">{{item.author_name?item.author_name:'-'}}</view>
  88. <view class="date">{{item.time}}</view>
  89. </view>
  90. <view class="commentRight">
  91. <image class="like" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/nolike.png"></image>
  92. <text>{{item.likedCount?item.likedCount:'-'}}</text>
  93. </view>
  94. </view>
  95. <view class="content">
  96. {{item.content}}
  97. </view>
  98. </view>
  99. <view class="noneBox" wx:if="{{noneHot}}">
  100. <image class="noneImg" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/dataLoadingImg.png"></image>
  101. <view class="noneText">暂无热门评论</view>
  102. </view>
  103. </view>
  104. </view>
  105. </scroll-view>
  106. <text class="desc">更多数据请登录https://data.kuxuan.com进行查看</text>