From 3391eaa51cee15e0ac67a6cc008cd6927e0f0aa2 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 26 Jul 2022 18:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E6=B4=9E?= =?UTF-8?q?=E5=AF=9F=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98=E4=BB=8E=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E5=88=86=E6=94=AF=E5=90=88=E5=B9=B6=E8=BF=87=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Customerportrait/Detailsofthesearch.vue | 21 +-- .../Customerportrait/Receivedetailabout.vue | 26 ++-- pages/learning/ScoringPlaylist.vue | 12 +- pages/mine/details2.vue | 143 ++++++++---------- pages/mine/reception/consultant.vue | 59 +++++++- static/images/Customer.png | Bin 556 -> 528 bytes static/images/audioinfo2.png | Bin 908 -> 860 bytes static/images/audioinfo3.png | Bin 831 -> 762 bytes static/images/audioinfo4.png | Bin 732 -> 696 bytes static/images/back.png | Bin 3032 -> 444 bytes static/images/backTop.png | Bin 543 -> 490 bytes static/images/battery.png | Bin 327 -> 320 bytes static/images/bishang.png | Bin 560 -> 523 bytes static/images/building.png | Bin 841 -> 805 bytes static/images/customerEmpty.png | Bin 13188 -> 12456 bytes static/images/down1.png | Bin 313 -> 296 bytes static/images/down2.png | Bin 332 -> 315 bytes static/images/edit.png | Bin 273 -> 269 bytes static/images/exit.png | Bin 421 -> 370 bytes static/images/function1.png | Bin 3048 -> 2496 bytes static/images/function2.png | Bin 3107 -> 2456 bytes static/images/function3.png | Bin 2516 -> 2217 bytes static/images/function4.png | Bin 2462 -> 2034 bytes static/images/img/ban.png | Bin 1042 -> 929 bytes static/images/img/hand.png | Bin 909 -> 813 bytes static/images/img/hit.png | Bin 1782 -> 1570 bytes static/images/img/low_power.png | Bin 330 -> 299 bytes static/images/img/message.png | Bin 924 -> 833 bytes static/images/img/note.png | Bin 1245 -> 1110 bytes static/images/img/people.png | Bin 1103 -> 983 bytes static/images/img/percent.png | Bin 686 -> 593 bytes static/images/img/power.png | Bin 686 -> 593 bytes static/images/img/power1.png | Bin 375 -> 323 bytes static/images/img/time.png | Bin 939 -> 816 bytes static/images/img/view.png | Bin 1087 -> 962 bytes static/images/img/voice.png | Bin 799 -> 650 bytes static/images/newimg/dianliang.png | Bin 223 -> 208 bytes static/images/newimg/dianliang456.png | Bin 219 -> 209 bytes static/images/newimg/search.png | Bin 1247 -> 1111 bytes static/images/newimg/xinhao0.png | Bin 324 -> 294 bytes static/images/newimg/xinhao1.png | Bin 310 -> 271 bytes static/images/newimg/xinhao2.png | Bin 287 -> 270 bytes static/images/newimg/xinhao3.png | Bin 246 -> 228 bytes static/images/newimg/xinhao4.png | Bin 223 -> 219 bytes static/images/recordingManagement/add.png | Bin 1206 -> 1026 bytes .../images/recordingManagement/calendar.png | Bin 829 -> 750 bytes static/images/recordingManagement/edit.png | Bin 688 -> 599 bytes static/images/recordingManagement/like.png | Bin 1138 -> 988 bytes .../images/recordingManagement/likeActive.png | Bin 830 -> 752 bytes .../images/recordingManagement/like_gray.png | Bin 737 -> 655 bytes static/images/recordingManagement/play.png | Bin 1017 -> 938 bytes static/images/recordingManagement/voice.png | Bin 1506 -> 1359 bytes uview-ui/libs/request/index.js | 2 +- 53 files changed, 157 insertions(+), 106 deletions(-) diff --git a/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue b/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue index b92b40f..891a3bc 100644 --- a/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue +++ b/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue @@ -68,10 +68,13 @@ Semanticword: '', qujian: true, from: '', // 来源 + tipsFncName: '', // 提醒页面变更的值 }; }, onLoad(options) { this.customerId = options.customerId; + if (options.UpDateEvent) this.tipsFncName = options.UpDateEvent + console.log(options) this.statistical() }, methods: { @@ -165,16 +168,14 @@ item.id = id; item.index = index; - let pages = getCurrentPages() //获取当前页面栈的信息 - let prevPage = pages[pages.length - 2] //获取上一个页面 - prevPage.setData({ //把需要回传的值保存到上一个页面 - info: item - }); - uni.$emit('Receivedetailabout', item) - - wx.navigateBack({ //然后返回上一个页面 - delta: 1 - }) + // let pages = getCurrentPages() //获取当前页面栈的信息 + // let prevPage = pages[pages.length - 2] //获取上一个页面 + // prevPage.setData({ //把需要回传的值保存到上一个页面 + // info: item + // }); + console.log('我在这里打印了', item) + uni.$emit(this.tipsFncName, item) + uni.navigateBack() } }, } diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index 9b4a934..ac986d7 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -469,6 +469,10 @@ }, onLoad(options) { + uni.$on('Receivedetailabouts', info => { + console.log('我监听收到了', info) + this.init(info, 'seek') + }) this.customerId = options.customerId; this.$zaudio.autoPlay = true @@ -482,10 +486,10 @@ console.log('我是强制暂停或关闭小程序音频浮窗触发的') }) this.$zaudio.on('seek', this.ACTION, (time) => { + console.log('seek', time) this.sliderChangeComplate(this.TIMEEVENT(time)) }) this.$zaudio.on('playing', this.ACTION, (obj) => { - console.log(this.TIMEEVENT(obj.current)) this.duration = obj.duration this.TimeUpdate(this.TIMEEVENT(obj.current)) }) @@ -495,15 +499,13 @@ }) this.$zaudio.on('ended', this.ACTION, e => { + console.log('ended') this.$zaudio.stop() this.init({ bg: 0, customerId: this.customerId }) }) - uni.$on('Receivedetailabout', info => { - this.init(info, 'Receivedetailabout') - }) }, onShow() { @@ -544,11 +546,14 @@ // 销毁实例 onUnload() { + uni.$off('Receivedetailabouts') this.info = {} //卸载不需要的业务和获取播放状态的业务,提高页面性能 this.$zaudio.off('seek', this.ACTION); this.$zaudio.off('stop', this.ACTION); this.$zaudio.off('playing', this.ACTION); + this.$zaudio.off('error', this.ACTION); + this.$zaudio.off('ended', this.ACTION); }, methods: { SPEAKERSTYLE(index) { @@ -590,7 +595,7 @@ //进搜索页面 uni.navigateTo({ url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&keyword=" + item + - "&skpl=" + "2" + "&UpDateEvent=Receivedetailabout" + "&skpl=" + "2" + "&UpDateEvent=Receivedetailabouts" }) }, recordclick(i) { @@ -621,13 +626,13 @@ guanjiancishifo() { uni.navigateTo({ url: '/pages/center/Piabodata/Customerportrait/Detailsofthesearch?customerId=' + this - .customerId + '&from=Receivedetailabout' + .customerId + '&from=Receivedetailabouts' + "&UpDateEvent=Receivedetailabouts" }) }, tosearch() { uni.navigateTo({ url: '/pages/center/Piabodata/Customerportrait/Detailsofthesearch?customerId=' + this - .customerId + '&from=Receivedetailabout' + .customerId + '&from=Receivedetailabouts' + "&UpDateEvent=Receivedetailabouts" }) }, //标签选择 @@ -836,7 +841,7 @@ } this.datetiem = res[0].receptionTime; this.Alladdtodigest = res[0].status; - this.zyAudio() + if (type != 'seek') this.zyAudio() this.getCorpusAnalysis(info) } }) @@ -1195,7 +1200,7 @@ this.Pinspeak = false uni.navigateTo({ url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item - .keywordsId + "&type=" + 1 + "&UpDateEvent=Receivedetailabout" + .keywordsId + "&type=" + 1 + "&UpDateEvent=Receivedetailabouts" }) } }, @@ -1379,7 +1384,7 @@ this.Pinspeak = false uni.navigateTo({ url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item - .marketingId + "&type=0" + "&UpDateEvent=Receivedetailabout" + .marketingId + "&type=0" + "&UpDateEvent=Receivedetailabouts" }) } }, @@ -1533,7 +1538,6 @@ // 跳转指定位置播放 stepPlay(t) { - console.log(this.$zaudio) this.$zaudio.seek(t) if (this.$zaudio.paused) { this.$zaudio.operate() diff --git a/pages/learning/ScoringPlaylist.vue b/pages/learning/ScoringPlaylist.vue index c29f954..1a6c436 100644 --- a/pages/learning/ScoringPlaylist.vue +++ b/pages/learning/ScoringPlaylist.vue @@ -1,7 +1,6 @@