大数据平台的小程序版本

topicDetail.wxml 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/topicDetail/topicDetail.wxml-->
  2. <wxs module="filter" src="../../assets/js/common.wxs"></wxs>
  3. <custom-header title="话题详情" isBack="true"></custom-header>
  4. <view class="detail" style="margin-top:{{safeAreaTop}}px">
  5. <view class="info">
  6. <image class="icon" src="../../assets/img/topic.png"></image>
  7. <view class="right">
  8. <view class="name">{{name}}</view>
  9. <view class="flex">
  10. <view>参与视频数<text>{{topicInfo.total.condition.video_count}}</text></view>
  11. <view>
  12. <image class="star" src="../../assets/img/star.png"></image>
  13. 平均点赞<text>{{topicInfo.total.condition.like_count_avg>100000 ? filter.NumberHandle(topicInfo.total.condition.like_count_avg) + '+' : filter.NumberHandle(topicInfo.total.condition.like_count_avg)}}</text>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="tab">
  19. <view class="tabItem {{type==1&&'active'}}" data-type="1" bindtap="checkType">按点赞数</view>
  20. <view class="tabItem {{type==2&&'active'}}" data-type="2" bindtap="checkType">按发布时间</view>
  21. </view>
  22. <view class="rankList videoList statusList" wx:for="{{videoList}}" wx:key="index" data-item="{{item}}" bindtap="goVideoDetail">
  23. <view class="video">
  24. <image class="videoImg" mode="heightFix" src="{{item.cover_url}}"></image>
  25. </view>
  26. <view class="videoBox">
  27. <view class="videoTop">
  28. <rich-text class="userName" nodes="<div class='userName'>{{item.description?item.description:'-'}}</div>"></rich-text>
  29. <image class="starImg" data-item="{{item}}" data-uid="{{item.id}}" data-index="{{index}}" catchtap="followVideo" wx:if="{{item.is_follow==1}}" src="../../assets/img/like.png"></image>
  30. <image class="starImg" data-item="{{item}}" data-uid="{{item.id}}" data-index="{{index}}" catchtap="followVideo" wx:else src="../../assets/img/follow.png"></image>
  31. </view>
  32. <view class="tagList">
  33. <text class="tag" wx:for="{{item.user_sign}}" wx:key="index" wx:if="{{index<3}}" wx:for-item="item1">{{item1}}</text>
  34. </view>
  35. <view class="infoBox">
  36. <image src="{{item.head_url}}" class="headImg"></image>
  37. <view class="userText">{{item.nickname}}</view>
  38. <view class="starBox">
  39. <image mode="widthFix" src="../../assets/img/star.png"></image>
  40. {{item.like_count>100000?filter.NumberHandle(item.like_count)+'+':filter.NumberHandle(item.like_count)}}
  41. </view>
  42. </view>
  43. <view class="time">发布于{{item.createtime}}</view>
  44. </view>
  45. </view>
  46. <!-- 搜索结果 -->
  47. <view class="searchResult" wx:if="{{pages ==-1}}">
  48. <image mode="widthFix" class="img" src="../../assets/img/none.png"/>
  49. <view class="result1">没有找到呦~</view>
  50. <view class="result2" wx:if="{{type!='1'}}">换个搜索词试试~</view>
  51. </view>
  52. </view>