jwyu 2 years ago
parent
commit
46677a6b9b
1 changed files with 5 additions and 4 deletions
  1. 5 4
      components/videoBox/videoBox.vue

+ 5 - 4
components/videoBox/videoBox.vue

@@ -7,7 +7,7 @@
             enable-play-gesture
             :poster="videoInfo.cover_img_url"
             :src="videoInfo.video_url"
-            :id="videoInfo.community_video_id"
+            :id="videoInfo.id"
             @ended="handleVideoEnd"
             @play="handleVideoPlay"
             @pause="handleVideoPause"
@@ -33,7 +33,7 @@
 
             <view class="video-inner-right-box" v-if="isShowControls">
                 <!-- 切换音频播放按钮 -->
-                <view class="change-music-icon" @click="handleChangeMusic"></view>
+                <view class="change-music-icon" @click.stop="handleChangeMusic"></view>
                 <!-- 弹幕控制按钮 -->
                 <view class="video-danmu-control-box">
                     <view class="show-btn" v-if="!closeDM" @click.stop="closeDM=true"></view>
@@ -74,7 +74,7 @@
                 <input 
                     type="text" 
                     v-model="danmuText" 
-                    placeholder="请输入弹幕~" 
+                    placeholder="发个友善的弹幕见证当下~" 
                     cursor-spacing="20" 
                     maxlength="50" 
                     focus 
@@ -223,6 +223,7 @@ export default {
 
         //切换为背景音频播放
         handleChangeMusic(){
+            console.log('切换背景音频播放');
             this.curVideoIns.requestBackgroundPlayback()
         },
 
@@ -404,7 +405,7 @@ export default {
         height: 40rpx;
         background-image: url('@/static/headphones-icon.png');
         background-size: cover;
-        margin-bottom: 10rpx;
+        margin-bottom: 20rpx;
     }
 
     .video-speed-btn{