Commit 34c15a0a authored by liujiangnan's avatar liujiangnan

fix: 读音并行

parent 79ee702c
...@@ -73,9 +73,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -73,9 +73,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
console.log('this.currentPageIdx = ' + this.currentPageIdx); console.log('this.currentPageIdx = ' + this.currentPageIdx);
console.log('this.currentPartIdx = ' + this.currentPartIdx); console.log('this.currentPartIdx = ' + this.currentPartIdx);
const ps1 = this.asyncPlayAudioByUrl(this.data.pageArr[this.currentPageIdx].hotZoneItemArr[this.currentPartIdx].audio_url); this.asyncPlayAudioByUrl(this.data.pageArr[this.currentPageIdx].hotZoneItemArr[this.currentPartIdx].audio_url).then();
const ps2 = this.checkPart(); await this.checkPart();
await Promise.all([ps1, ps2]);
const pageIdxMap = this.data.pageArr.map((page, pageIdx) => { const pageIdxMap = this.data.pageArr.map((page, pageIdx) => {
return page.hotZoneItemArr.map(item => pageIdx); return page.hotZoneItemArr.map(item => pageIdx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment