inleft
2022-08-30 271ca6cb0ee2ff0a789bf74d1821e7891a7043bb
src/components/layouts/baseLayout.vue
@@ -6,13 +6,19 @@
      </a-layout-header>
      <keep-alive>
         <router-view @showMyVideo="showMyVideo"></router-view>
         <router-view @showMyVideo="showMyVideo" @detailBackAction="detailBackAction"></router-view>
      </keep-alive>
      <a-layout-footer>
         <AplayerBox />
         <tagFooter />
         <MyVideo ref="MyVideo"  />
         <MyVideo ref="MyVideo" @closeMyVideo="closeMyVideo" />
         <a-button v-if="miniVideoPlayData!=null && showMiniBox" class="fadeInRight"
            style="position: fixed;right: 0px;bottom: 130px;" @click="showMyVideo(miniVideoPlayData)">
            {{miniBoxContent}}
            <a-icon type="youtube" style="transform: scale(1.5);" />
         </a-button>
      </a-layout-footer>
      <a-back-top>
@@ -23,8 +29,11 @@
</template>
<script>
   // Dplayer Api地址
   // http://dplayer.js.org/
   import tagHeader from "../fixed/header.vue"
   import tagFooter from "../fixed/footer.vue"
   // import tagFooter from "../fixed/footer.vue"
   const tagFooter = () => import("../fixed/footer.vue")
   import AplayerBox from "../mini/Aplayer.vue"
   import MyVideo from "../group/MyVideo.vue"
   export default {
@@ -36,12 +45,34 @@
      },
      data() {
         return {
            miniVideoPlayData: null,
            firstQuery: true,
            showMiniBox: false,
            miniBoxContent: "视频盒子",
         }
      },
      methods: {
         showMyVideo() {
            this.$refs.MyVideo.showModal();
         showMyVideo(param) {
            this.miniVideoPlayData = param;
            this.$refs.MyVideo.showModal(param);
         },
         detailBackAction(param) {
            this.miniVideoPlayData = param;
            this.closeMyVideo()
         },
         closeMyVideo() {
            if (this.firstQuery) {
               this.firstQuery = !this.firstQuery;
               this.showMiniBox = !this.showMiniBox;
               this.$notification.info({
                  message: '视频盒子最小化啦..',
                  placement: 'bottomRight',
               });
               setTimeout(() => {
                  this.miniBoxContent = "";
               }, 6000);
            }
         },
         // 下载文件
         down: function() {
@@ -122,6 +153,8 @@
      -webkit-animation-iteration-count: 1;
   }
   .fadeInLeft {
      -webkit-animation-name: "fadeInLeft";
      -webkit-animation-duration: 1s;