Browse Source

音频图片

jwyu 3 years ago
parent
commit
3dc02fc53d

+ 2 - 0
src/store/modules/hzyb.js

@@ -6,6 +6,7 @@ const hzybStore={
             url:'',//音频链接
             url:'',//音频链接
             videoTime:0,//音频时长
             videoTime:0,//音频时长
             videoName:'',//音频名称
             videoName:'',//音频名称
+            videoImg:'',//音频图片
             paused:true,//音频是否在暂停
             paused:true,//音频是否在暂停
             show:false,// 显示音频弹窗
             show:false,// 显示音频弹窗
         }
         }
@@ -16,6 +17,7 @@ const hzybStore={
             state.audioData.url=e.video_url
             state.audioData.url=e.video_url
             state.audioData.videoTime=e.video_play_seconds
             state.audioData.videoTime=e.video_play_seconds
             state.audioData.videoName=e.video_name
             state.audioData.videoName=e.video_name
+            state.audioData.videoImg=e.video_img
             state.audioData.INS.play()
             state.audioData.INS.play()
             state.audioData.show=true
             state.audioData.show=true
         },
         },

+ 1 - 1
src/views/hzyb/Index.vue

@@ -81,7 +81,7 @@ const handleCloseAudioPup=()=>{
     <!-- 悬浮音频模块 -->
     <!-- 悬浮音频模块 -->
     <div class="popup-audio-box" v-if="$store.state.hzyb.audioData.show">
     <div class="popup-audio-box" v-if="$store.state.hzyb.audioData.show">
         <div class="small-box" v-if="!showBigAudio" @click="showBigAudio=true">
         <div class="small-box" v-if="!showBigAudio" @click="showBigAudio=true">
-            <img src="" class="bg-img">
+            <img :src="$store.state.hzyb.audioData.videoImg" class="bg-img">
             <div class="small-con">
             <div class="small-con">
                 <div class="audio-name-box" style="flex:1">
                 <div class="audio-name-box" style="flex:1">
                     <div class="van-ellipsis title">{{$store.state.hzyb.audioData.videoName}}</div>
                     <div class="van-ellipsis title">{{$store.state.hzyb.audioData.videoName}}</div>

+ 2 - 1
src/views/hzyb/report/ChapterDetail.vue

@@ -178,7 +178,8 @@ export default {
           auth_ok:res.data.auth_ok,
           auth_ok:res.data.auth_ok,
           video_name:res.data.report_chapter_item.video_name,
           video_name:res.data.report_chapter_item.video_name,
           video_play_seconds:res.data.report_chapter_item.video_play_seconds,
           video_play_seconds:res.data.report_chapter_item.video_play_seconds,
-          video_url:res.data.report_chapter_item.video_url
+          video_url:res.data.report_chapter_item.video_url,
+          video_img:res.data.report_chapter_item.video_img
         }
         }
         document.title=res.data.report_chapter_item.classify_name_first
         document.title=res.data.report_chapter_item.classify_name_first
         if(res.data.auth_ok&&res.data.report_chapter_item.classify_name_first==='晨报'){
         if(res.data.auth_ok&&res.data.report_chapter_item.classify_name_first==='晨报'){

+ 2 - 1
src/views/hzyb/report/Detail.vue

@@ -186,7 +186,8 @@ export default {
                     auth_ok:res.data.auth_ok,
                     auth_ok:res.data.auth_ok,
                     video_name:res.data.report_info.video_name,
                     video_name:res.data.report_info.video_name,
                     video_play_seconds:res.data.report_info.video_play_seconds,
                     video_play_seconds:res.data.report_info.video_play_seconds,
-                    video_url:res.data.report_info.video_url
+                    video_url:res.data.report_info.video_url,
+                    video_img:res.data.report_info.video_img
                 }
                 }
                 this.chapterList=res.data.report_chapter_list
                 this.chapterList=res.data.report_chapter_list
                 document.title = res.data.report_info.classify_name_first
                 document.title = res.data.report_info.classify_name_first