123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <!--pages/videoDetail/videoDetail.wxml-->
- <wxs module="filter" src="../../assets/js/common.wxs"></wxs>
- <custom-header title="视频详情" isBack="true"></custom-header>
- <view class="topView"></view>
- <view class="detail" style="margin-top:{{safeAreaTop}}px">
- <view class="info">
- <view class="box">
- <view class="post" bindtap="toToast">
- <image class="icon" mode="heightFix" src="{{videoInfo.cover_url}}"></image>
- <image class="play" mode="widthFix" src="../../assets/img/play.png"></image>
- </view>
- <view class="right">
- <view class="username">{{videoInfo.description}}</view>
- <image class="follow" wx:if="{{videoInfo.is_follow==1}}" bindtap="followVideo" src="../../assets/img/like.png"></image>
- <image class="follow" wx:if="{{videoInfo.is_follow!=1}}" bindtap="followVideo" src="../../assets/img/follow.png"></image>
- <view class="desc">
- 发布时间:{{videoInfo.createtime}}
- </view>
- <view class="desc">
- 视频时长:{{videoInfo.duration}}
- </view>
- <view class="userBox" bindtap="goUserDetail">
- <image src="{{videoInfo.head_url}}" class="userImg"></image>
- <view class="userInfo">
- <view class="userName">{{videoInfo&&videoInfo.nickname?videoInfo.nickname:'-'}}</view>
- <view class="auth" style="width:240rpx;margin-top:-10rpx;" wx:if="{{videoInfo&&(videoInfo.auth_icon_url||videoInfo.auth_profession)}}">
- <image src="{{videoInfo.auth_icon_url}}" mode="widthFix"></image>
- <text>{{videoInfo.auth_profession}}</text>
- </view>
- </view>
- <!-- <button class="save" catchtap="makeDraw">生成海报</button> -->
- <button class="save" catchtap open-type="share">分享</button>
- </view>
- </view>
- </view>
- </view>
- <view class="list">
- <view class="li">
- <view class="num">{{videoInfo.like_count>100000?filter.NumberHandle(videoInfo.like_count)+'+':filter.NumberHandle(videoInfo.like_count)}}</view>
- <view class="text">总点赞数</view>
- </view>
- <view class="li">
- <view class="num">{{videoInfo.forward_count>100000?filter.NumberHandle(videoInfo.forward_count)+'+':filter.NumberHandle(videoInfo.forward_count)}}</view>
- <view class="text">总转发数</view>
- </view>
- <view class="li">
- <view class="num">{{videoInfo.comment_count>100000?filter.NumberHandle(videoInfo.comment_count)+'+':filter.NumberHandle(videoInfo.comment_count)}}</view>
- <view class="text">总评论数</view>
- </view>
- </view>
- <view class="echartsBox">
- <view class="topName">趋势分析</view>
- <view class="echartsDiv">
- <ec-canvas id="wholeEcharts" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
- </view>
- </view>
- <block wx:if="{{page != 'userDetail'}}">
- <view class="linkBox">
- <view class="linkTop">
- <text>扩展链接列表</text>
- <text>使用次数</text>
- </view>
- <view class="linkList" wx:if="{{linkLenth!=-1}}">
- <view class="linkItem" wx:for="{{linkList}}" wx:key="id">
- <view class="left">
- <view class="linkTitle">{{item.exttitle}}</view>
- <view class="infoBox">
- <image src="{{item.wx_app_headimg}}"></image>
- <text class="name">{{item.app_name}}</text>
- </view>
- </view>
- <view class="count">{{item.count}}</view>
- </view>
- </view>
- <view class="none" wx:else>
- <image mode="widthFix" src="../../assets/img/noList.png"></image>
- <view>暂无数据</view>
- </view>
- </view>
- <!-- 关联公众号 -->
- <view class="linkBox">
- <view class="linkTop">
- <text>链接关联公众号</text>
- <text>挂链篇数</text>
- </view>
- <view class="accountBox" wx:if="{{userLength!=-1}}">
- <view class="accountItem" wx:for="{{userList}}" wx:key="app_id">
- <image class="iconImg" src="{{item.wx_app_headimg}}"></image>
- <view class="centerBox">
- <view class="linkTitle">{{item.app_name}}</view>
- <view class="id">{{item.app_id}}</view>
- </view>
- <view class="count">{{item.count}}</view>
- </view>
- </view>
- <view class="none" wx:else>
- <image mode="widthFix" src="../../assets/img/noList.png"></image>
- <view>暂无数据</view>
- </view>
- </view>
- </block>
- </view>
- <!-- 生成海报 -->
- <view class="box" style="position: absolute; left: -9999rpx;top:0rpx;">
- <painter customStyle='position: absolute; left: -9999rpx;' palette="{{template}}" bind:imgOK="canvasSuc" bind:imgErr="canvasErr"/>
- <image mode="widthFix" src="{{image}}" bindtap="previewImg" />
- </view>
- <!-- 复制PC端网站 -->
- <van-popup show="{{toastFlag}}" position="bottom" custom-style="height: 310rpx;background:#F0F1F3;padding: 0 40rpx;" round close-on-click-overlay="{{true}}" closeable="{{false}}" bind:close="cancelTask">
- <view class="toastText">播放或下载视频请到电脑端操作</view>
- <view class="toastMain">
- <view class="imgBox">
- <image class="toastImg" mode="widthFix" src="../../assets/newLive/logo_live_detail.png"></image>
- </view>
- <view class="linkText">sph.wenxingshuju.com</view>
- <button class="copyButton" bindtap="copyEvent">复制网址</button>
- </view>
- </van-popup>
|