1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!--pages/topicDetail/topicDetail.wxml-->
- <wxs module="filter" src="../../assets/js/common.wxs"></wxs>
- <custom-header title="话题详情" isBack="true"></custom-header>
- <view class="detail" style="margin-top:{{safeAreaTop}}px">
- <view class="info">
- <image class="icon" src="../../assets/img/topic.png"></image>
- <view class="right">
- <view class="name">{{name}}</view>
- <view class="flex">
- <view>参与视频数<text>{{topicInfo.total.condition.video_count}}</text></view>
- <view>
- <image class="star" src="../../assets/img/star.png"></image>
- 平均点赞<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>
- </view>
- </view>
- </view>
- </view>
- <view class="tab">
- <view class="tabItem {{type==1&&'active'}}" data-type="1" bindtap="checkType">按点赞数</view>
- <view class="tabItem {{type==2&&'active'}}" data-type="2" bindtap="checkType">按发布时间</view>
- </view>
- <view class="rankList videoList statusList" wx:for="{{videoList}}" wx:key="index" data-item="{{item}}" bindtap="goVideoDetail">
- <view class="video">
- <image class="videoImg" mode="heightFix" src="{{item.cover_url}}"></image>
- </view>
- <view class="videoBox">
- <view class="videoTop">
- <rich-text class="userName" nodes="<div class='userName'>{{item.description?item.description:'-'}}</div>"></rich-text>
- <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>
- <image class="starImg" data-item="{{item}}" data-uid="{{item.id}}" data-index="{{index}}" catchtap="followVideo" wx:else src="../../assets/img/follow.png"></image>
- </view>
- <view class="tagList">
- <text class="tag" wx:for="{{item.user_sign}}" wx:key="index" wx:if="{{index<3}}" wx:for-item="item1">{{item1}}</text>
- </view>
- <view class="infoBox">
- <image src="{{item.head_url}}" class="headImg"></image>
- <view class="userText">{{item.nickname}}</view>
- <view class="starBox">
- <image mode="widthFix" src="../../assets/img/star.png"></image>
- {{item.like_count>100000?filter.NumberHandle(item.like_count)+'+':filter.NumberHandle(item.like_count)}}
- </view>
- </view>
- <view class="time">发布于{{item.createtime}}</view>
- </view>
- </view>
- <!-- 搜索结果 -->
- <view class="searchResult" wx:if="{{pages ==-1}}">
- <image mode="widthFix" class="img" src="../../assets/img/none.png"/>
- <view class="result1">没有找到呦~</view>
- <view class="result2" wx:if="{{type!='1'}}">换个搜索词试试~</view>
- </view>
- </view>
|