inleft
2022-08-19 8ec9c517c58b70918f2d72f2bfa6ab4b0a4145f9
src/components/mini/box15-videoPlayBox.vue
@@ -7,6 +7,7 @@
         <div id="videoPlay" ref="myVdeoPlay"></div>
      </div>
      <div style="border-radius: 0 0 4px 4px;">
         <div style="padding: 10px 0px;">
            音量 :
            <a-slider v-model="volumeInit" :default-value="0.1" :step="0.1" :max="1" @change="changeVolume" />
@@ -16,6 +17,7 @@
            {{Math.floor(duration/60)}}:{{Math.floor(duration%60)}}
            <a-slider v-model="currentTime" :max="duration" @afterChange="changeTime" />
         </div>
         <a-collapse activeKey="playHistory">
            <a-collapse-panel key="playHistory" header="播放记录">
               <div v-for="(item,index) in playHistory">
@@ -102,6 +104,10 @@
      },
      methods: {
         pauseMyVideo() {
            this.dp.pause();
            this.isPlaying = false;
         },
         togglePlay() {
            this.dp.toggle();
            this.isPlaying = !this.isPlaying;
@@ -175,7 +181,7 @@
            }
            this.dp.switchVideo(this.playingVideoData)
         },
         //播放器初始化
         init() {
@@ -248,6 +254,14 @@
      position: relative;
   }
   .mark {
      border-radius: 14px;
      background: #00000073;
      width: 100%;
      height: 100%;
      pointer-events: none;
   }
   .playItem:hover {
      //transform: scale(1.1) translate3d(0, 0, 0);
   }