|
@@ -5,9 +5,11 @@ import teaseIcon from '@/assets/question/tease.png'
|
|
import teaseactIcon from '@/assets/question/tease_act.png'
|
|
import teaseactIcon from '@/assets/question/tease_act.png'
|
|
|
|
|
|
import {reactive,ref} from 'vue'
|
|
import {reactive,ref} from 'vue'
|
|
|
|
+import {useRouter} from 'vue-router'
|
|
import {apiSetLike,apiHotComment,apiMyComment,apiPublishComment,apiDelComment} from '@/api/question'
|
|
import {apiSetLike,apiHotComment,apiMyComment,apiPublishComment,apiDelComment} from '@/api/question'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
|
|
|
|
|
+const router=useRouter()
|
|
const props=defineProps({
|
|
const props=defineProps({
|
|
videoInfo:null
|
|
videoInfo:null
|
|
})
|
|
})
|
|
@@ -140,6 +142,16 @@ const handleDelMyComment=(item)=>{
|
|
}).catch(()=>{})
|
|
}).catch(()=>{})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//跳转至报告详情
|
|
|
|
+const goReportDetail = (item)=>{
|
|
|
|
+ router.push({
|
|
|
|
+ path:'/report/detail',
|
|
|
|
+ query:{
|
|
|
|
+ reportId:item.report_id,
|
|
|
|
+ frompage:'video'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -157,6 +169,9 @@ const handleDelMyComment=(item)=>{
|
|
<img src="@/assets/question/comment.png" alt="">
|
|
<img src="@/assets/question/comment.png" alt="">
|
|
<span>{{info.comment_total>0?info.comment_total:''}}</span>
|
|
<span>{{info.comment_total>0?info.comment_total:''}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="item" @click="goReportDetail(info)" v-if="info.report_id">
|
|
|
|
+ <img src="@/assets/video/report-btn.png" alt="">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="list-comment-wrap" v-if="info.comment_list.length>0">
|
|
<div class="list-comment-wrap" v-if="info.comment_list.length>0">
|
|
<template v-for="(item,index) in info.comment_list" :key="index">
|
|
<template v-for="(item,index) in info.comment_list" :key="index">
|