Browse Source

修改段录音

dev
douzhuo 2 years ago
parent
commit
054a46874c
3 changed files with 19 additions and 6 deletions
  1. +10
    -4
      pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
  2. +1
    -1
      pages/center/Piabodata/Userinsightinto.vue
  3. +8
    -1
      pages/mine/details.vue

+ 10
- 4
pages/center/Piabodata/Customerportrait/Receivedetailabout.vue View File

@@ -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)
}
})
},


+ 1
- 1
pages/center/Piabodata/Userinsightinto.vue View File

@@ -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


+ 8
- 1
pages/mine/details.vue View File

@@ -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;
}


Loading…
Cancel
Save