|
@@ -42,8 +42,10 @@
|
|
|
:data-item="item">
|
|
|
<image class="share-img" src="@/static/share-icon.png" mode="aspectFill"/>
|
|
|
</button>
|
|
|
- <view class="time">发布时间:{{item.publish_time}}</view>
|
|
|
- <view class="user-name">{{item.admin_real_name}}</view>
|
|
|
+ <view style="padding-top:20rpx">
|
|
|
+ <view class="time">发布时间:{{item.publish_time}}</view>
|
|
|
+ <view class="user-name">{{item.admin_real_name}}</view>
|
|
|
+ </view>
|
|
|
<video
|
|
|
autoplay
|
|
|
object-fit="contain"
|
|
@@ -56,7 +58,7 @@
|
|
|
v-if="item.road_video_id==curVideoId"
|
|
|
></video>
|
|
|
<image @click="handelClickPlay(item)" v-else class="poster" :src="item.cover_img_url" mode="aspectFill" lazy-load/>
|
|
|
-
|
|
|
+ <comment :videoInfo="getCommentData(item)"></comment>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -117,10 +119,12 @@ import {apiRoadShowVideoList,apiRoadShowVideoPlayLog} from '@/api/roadShow'
|
|
|
import {apiGetSceneToParams,apiUserBindPermission} from '@/api/common'
|
|
|
import noAuth from './components/noAuth.vue'
|
|
|
import dragButton from '@/components/dragButton/dragButton.vue'
|
|
|
+import comment from '@/components/videoComment/comment.vue'
|
|
|
export default {
|
|
|
components:{
|
|
|
noAuth,
|
|
|
- dragButton
|
|
|
+ dragButton,
|
|
|
+ comment
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -192,6 +196,14 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 处理评论模块需要的数据
|
|
|
+ getCommentData(item){
|
|
|
+ return {
|
|
|
+ source:3,
|
|
|
+ id:item.road_video_id,
|
|
|
+ ...item
|
|
|
+ }
|
|
|
+ },
|
|
|
async init(options){
|
|
|
if(options.scene){
|
|
|
const resScene=await apiGetSceneToParams({scene_key:options.scene})
|