Commit fb1ebcd9 by 李伟康

refactor(HomeFrame): 优化消息提示功能

- 移除 LeftSide 组件中的 readCount 重置逻辑
- 在 HomeFrame 组件中添加 closeTips 方法
- 删除 receptionDetail 页面中的无用 console.log 和空行
1 parent 38a9689b
...@@ -222,7 +222,8 @@ export default { ...@@ -222,7 +222,8 @@ export default {
if (this.tabIndex == index && index !== 3) return; if (this.tabIndex == index && index !== 3) return;
let jumpUrl let jumpUrl
if (item.isTrack) { if (item.isTrack) {
this.readCount = 0 // this.readCount = 0
this.$emit('closeTips')
try { try {
jumpUrl = await this.findBeiSenSSOToken() jumpUrl = await this.findBeiSenSSOToken()
} catch (error) { } catch (error) {
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
@changeTab="changeTab" @changeTab="changeTab"
@stopAudio="stopAudio" @stopAudio="stopAudio"
@showReadCountTips="showReadCountTips" @showReadCountTips="showReadCountTips"
@closeTips="closeTips"
/> />
<view <view
class="tips-box" class="tips-box"
......
...@@ -203,9 +203,7 @@ export default { ...@@ -203,9 +203,7 @@ export default {
}, },
setAudio (recordingUrl) { setAudio (recordingUrl) {
this.qualityAudio = uni.createInnerAudioContext() this.qualityAudio = uni.createInnerAudioContext()
console.log(recordingUrl)
this.qualityAudio.src = recordingUrl this.qualityAudio.src = recordingUrl
this.qualityAudio.onPause(() => { this.qualityAudio.onPause(() => {
this.status = 'pause' this.status = 'pause'
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!