jwyu 2 년 전
부모
커밋
edf5982fc7
3개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      pages-voice/addVoice.vue
  2. 1 1
      pages/voice/components/noAuth.vue
  3. 6 0
      pages/voice/voice.vue

+ 1 - 0
pages-voice/addVoice.vue

@@ -337,6 +337,7 @@ export default {
             this.temAudio.curTime=0
             this.temAudio.paused=true
             this.time=0
+            innerAudioContext.stop()
             TIMER=null
         },
 

+ 1 - 1
pages/voice/components/noAuth.vue

@@ -5,7 +5,7 @@
 		<view v-if="info.type==='contact'" style="margin-bottom:15px">若想查看可以联系对口销售</view>
 		<view v-else style="margin-bottom:15px">若想查看可以申请开通</view>
 		<view v-if="info.type==='contact'">
-			{{info.name||''}}:<text @click="handleCallPhone(info.mobile+'')">{{info.mobile||''}}</text>
+			{{info.name||''}}:<text @click="handleCall" style="color:#E3B377">{{info.mobile||''}}</text>
 		</view>
 		<view class="global-btn-yellow-change btn" @click="handleApply" v-else style="margin-top:30px">立即申请</view>
   </view>

+ 6 - 0
pages/voice/voice.vue

@@ -122,6 +122,12 @@ export default {
         this.listenAudio()
         this.addListenVoiceSuccess()
     },
+    onShow(){
+        //无权限时刷新列表
+        if(!this.isAuth){
+            this.getVoiceList()
+        }
+    },
     onUnload(){
 		uni.$off('addVoiceSuccess')
 	},