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