Browse Source

Merge branch 'xqc_fix'

jwyu 2 years ago
parent
commit
b49012fa75

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

@@ -35,6 +35,9 @@ const hzybStore={
         //关闭音频弹窗
         closeAudioPop(state){
             state.audioData.show=false
+            state.audioData.INS=null 
+            state.audioData.url=''
+            state.audioData.paused=true
         },
         showAudioPop(state){
             state.audioData.show=true

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

@@ -59,6 +59,7 @@ const handleClickAudio=()=>{
 // 关闭音频弹窗
 const handleCloseAudioPup=()=>{
     showBigAudio.value=false
+    store.state.hzyb.audioData.INS.pause()
     store.commit('hzyb/closeAudioPop')
 }
 
@@ -83,7 +84,7 @@ const handleCloseAudioPup=()=>{
         <div class="small-box" v-if="!showBigAudio" @click="showBigAudio=true">
             <img :src="$store.state.hzyb.audioData.videoImg" class="bg-img">
             <div class="small-con">
-                <div class="audio-name-box" style="flex:1">
+                <div class="audio-name-box" style="flex:1;overflow: hidden;">
                     <div class="van-ellipsis title">{{$store.state.hzyb.audioData.videoName}}</div>
                     <div style="color:#666">时长 {{ formatVoiceTime($store.state.hzyb.audioData.videoTime) }}</div>
                 </div>

+ 3 - 0
src/views/hzyb/components/leaveMessage/index.vue

@@ -272,6 +272,9 @@ const delMessageHandle = ({ comment_id }) => {
 					</li>
 				</ul>
 			</div>
+			<div v-if="myMessageList.length==0&&hotMessageList.length==0" style="text-align:center;font-size:14px;color:#999;line-height:100px">
+				暂无留言
+			</div>
 		</div>
 	</div>