瀏覽代碼

修改段录音

dev
douzhuo 2 年之前
父節點
當前提交
054a46874c
共有 3 個文件被更改,包括 19 次插入6 次删除
  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 查看文件

@@ -461,9 +461,13 @@
}, },
onLoad(options) { onLoad(options) {
if (options.info) this.info = JSON.parse(options.info)
this.customerId = options.customerId; 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, () => { this.$zaudio.on('stop', this.ACTION, () => {
console.log('我是强制暂停或关闭小程序音频浮窗触发的') console.log('我是强制暂停或关闭小程序音频浮窗触发的')
@@ -814,8 +818,10 @@
} }
this.datetiem = res[0].receptionTime; this.datetiem = res[0].receptionTime;
this.Alladdtodigest = res[0].status; this.Alladdtodigest = res[0].status;
this.zyAudio()
this.getCorpusAnalysis(info)
this.zyAudio()
setTimeout(() => {
this.getCorpusAnalysis(info)
}, 150)
} }
}) })
}, },


+ 1
- 1
pages/center/Piabodata/Userinsightinto.vue 查看文件

@@ -203,7 +203,7 @@
Toview(item,i){ Toview(item,i){
console.log(item) console.log(item)
let keywordsid = 0 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 keywordsid = item.matchKeywords[i].children[0].keywordsId
} else { } else {
keywordsid = item.matchKeywords[i].keywordsId keywordsid = item.matchKeywords[i].keywordsId


+ 8
- 1
pages/mine/details.vue 查看文件

@@ -273,7 +273,11 @@
textItself:'', textItself:'',
argtextindex1:0, argtextindex1:0,
argtextindex2:0, argtextindex2:0,
isNum:false
isNum:false,
ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法
isPageHide: false, // 是否息屏
duration: '', // 总时长
}; };
}, },


@@ -293,6 +297,7 @@
this.sliderChangeComplate(this.TIMEEVENT(time)) this.sliderChangeComplate(this.TIMEEVENT(time))
}) })
this.$zaudio.on('playing', this.ACTION, (obj) => { this.$zaudio.on('playing', this.ACTION, (obj) => {
console.log(obj, '12312321')
this.TimeUpdate(this.TIMEEVENT(obj.current)) this.TimeUpdate(this.TIMEEVENT(obj.current))
}) })
this.$zaudio.on('ended', this.ACTION, e => { this.$zaudio.on('ended', this.ACTION, e => {
@@ -445,6 +450,7 @@
TimeUpdate(currentTime) { TimeUpdate(currentTime) {
this.playNow = Number(currentTime) this.playNow = Number(currentTime)
console.log(this.playNow)
if (this.dialogList.length == 0) { if (this.dialogList.length == 0) {
return return
} else { } else {
@@ -457,6 +463,7 @@
break; break;
} }
if (i < message.length - 1 && Math.floor(message[i].ed / 1000) <= this.playNow && this.playNow <= Math.floor(message[i + 1].bg / 1000)) { 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; this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
break; break;
} }


Loading…
取消
儲存