inleft
2022-08-30 271ca6cb0ee2ff0a789bf74d1821e7891a7043bb
src/components/group/MyVideo.vue
@@ -1,7 +1,7 @@
<template>
   <div class="myModal">
      <a-modal v-model="visible" title="视频盒子" :width="myWidth" :footer="null" :mask="false" :maskClosable="true"
         :bodyStyle="{'overflow':'overlay','height': '750px'}" :afterClose="afterClose" >
      <a-modal v-drag-modal v-model="visible" title="视频盒子" :width="myWidth" :footer="null" :mask="false"
         :maskClosable="true" :bodyStyle="{'overflow':'overlay','height': '700px'}" :afterClose="afterClose">
         <videoDetail ref="videoDetail" :showFade="showFade"></videoDetail>
      </a-modal>
   </div>
@@ -62,6 +62,10 @@
            }
         },
         showModal(param) {
            if (this.$route.path == "/videoDetail") {
               this.$message.info("已经在播放页面啦..")
               return
            }
            this.visible = true;
            this.$nextTick(function() {
               this.$refs.videoDetail.showVideo(param)
@@ -71,14 +75,14 @@
            this.visible = false;
         },
         afterClose() {
            //关闭视频播放
            this.$refs.videoDetail.$refs.videoPlayBox.pauseMyVideo()
            this.$emit("closeMyVideo")
         }
      },
   }
</script>
<style scoped>
<style lang="less">
</style>