|
@@ -93,6 +93,9 @@
|
|
|
:user-id="item.user_id"
|
|
|
@update:comments="setComments(i, $event)">
|
|
|
</Remark>
|
|
|
+
|
|
|
+ <!-- 视频弹框 -->
|
|
|
+ <VideoDialog :visible="showVideo" :url="videoUrl" @close="showVideo = false"></VideoDialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -106,9 +109,10 @@
|
|
|
import { dynamicList, dynamicLike,dynamicDetail } from "@/api/path/im.api";
|
|
|
import { showToast, showImagePreview } from 'vant';
|
|
|
import Remark from '../remarkList/index.vue';
|
|
|
+import VideoDialog from '../VideoDialog/index.vue';
|
|
|
|
|
|
export default {
|
|
|
- components: { Remark },
|
|
|
+ components: { Remark,VideoDialog },
|
|
|
data() {
|
|
|
return {
|
|
|
list: [],
|
|
@@ -119,6 +123,9 @@ export default {
|
|
|
refreshing: false,
|
|
|
showActionsMap: {},
|
|
|
remarkRefs: [],
|
|
|
+ showVideo: false,
|
|
|
+ videoUrl: '',
|
|
|
+ videoName: ''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -228,13 +235,16 @@ export default {
|
|
|
},
|
|
|
handlePlay(item) {
|
|
|
console.log(item)
|
|
|
- this.$router.push({
|
|
|
- path: '/videoPlayer',
|
|
|
- query: {
|
|
|
- name: item.filename,
|
|
|
- src: encodeURIComponent(item.video)
|
|
|
- }
|
|
|
- })
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/videoPlayer',
|
|
|
+ // query: {
|
|
|
+ // name: item.filename,
|
|
|
+ // src: encodeURIComponent(item.video)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ this.videoUrl = item.video
|
|
|
+ this.videoName = item.filename
|
|
|
+ this.showVideo = true;
|
|
|
},
|
|
|
gotoRecord() {
|
|
|
this.$router.push('record');
|