From 054a46874c9ccadf372689a8fab842da2c8a09af Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Thu, 19 May 2022 19:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AE=B5=E5=BD=95=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Customerportrait/Receivedetailabout.vue | 14 ++++++++++---- pages/center/Piabodata/Userinsightinto.vue | 2 +- pages/mine/details.vue | 9 ++++++++- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index 7d3ac4b..00cf35a 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -461,9 +461,13 @@ }, onLoad(options) { - if (options.info) this.info = JSON.parse(options.info) this.customerId = options.customerId; - this.$zaudio.autoPlay = true + this.$zaudio.autoPlay = true + + if (options.info && options.info.length > 0) { + this.info = JSON.parse(options.info) + } + //注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响; this.$zaudio.on('stop', this.ACTION, () => { console.log('我是强制暂停或关闭小程序音频浮窗触发的') @@ -814,8 +818,10 @@ } this.datetiem = res[0].receptionTime; this.Alladdtodigest = res[0].status; - this.zyAudio() - this.getCorpusAnalysis(info) + this.zyAudio() + setTimeout(() => { + this.getCorpusAnalysis(info) + }, 150) } }) }, diff --git a/pages/center/Piabodata/Userinsightinto.vue b/pages/center/Piabodata/Userinsightinto.vue index 6eacad7..5cea6b3 100644 --- a/pages/center/Piabodata/Userinsightinto.vue +++ b/pages/center/Piabodata/Userinsightinto.vue @@ -203,7 +203,7 @@ Toview(item,i){ console.log(item) let keywordsid = 0 - if (item.matchKeywords[i].children) { + if (item.matchKeywords[i].children && item.matchKeywords[i].children.length > 0) { keywordsid = item.matchKeywords[i].children[0].keywordsId } else { keywordsid = item.matchKeywords[i].keywordsId diff --git a/pages/mine/details.vue b/pages/mine/details.vue index 57042fe..7cf5efd 100644 --- a/pages/mine/details.vue +++ b/pages/mine/details.vue @@ -273,7 +273,11 @@ textItself:'', argtextindex1:0, argtextindex2:0, - isNum:false + isNum:false, + + ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法 + isPageHide: false, // 是否息屏 + duration: '', // 总时长 }; }, @@ -293,6 +297,7 @@ this.sliderChangeComplate(this.TIMEEVENT(time)) }) this.$zaudio.on('playing', this.ACTION, (obj) => { + console.log(obj, '12312321') this.TimeUpdate(this.TIMEEVENT(obj.current)) }) this.$zaudio.on('ended', this.ACTION, e => { @@ -445,6 +450,7 @@ TimeUpdate(currentTime) { this.playNow = Number(currentTime) + console.log(this.playNow) if (this.dialogList.length == 0) { return } else { @@ -457,6 +463,7 @@ break; } if (i < message.length - 1 && Math.floor(message[i].ed / 1000) <= this.playNow && this.playNow <= Math.floor(message[i + 1].bg / 1000)) { + console.log(message[i]) this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; break; }