Commit 0add544a authored by 李维's avatar 李维

bug fix

parent 95662032
......@@ -839,6 +839,7 @@ export class PlayComponent implements OnInit, OnDestroy {
element.textContainer = null;
element.resetContent = (contentData)=>{
element.isOpen = false;
element.audio_url = contentData.audio_url
if(contentData.type == "Image"){
if(element.content){
element.ref.removeChild(element.content)
......@@ -923,8 +924,8 @@ export class PlayComponent implements OnInit, OnDestroy {
if(element.isOpen){
this.g_cartoon.stopAllAudio();
this.g_cartoon.playAudio(`gusheng_${index+1}`, false, ()=>{
if(data.audio_url){
this.g_cartoon.playAudio(data.audio_url)
if(element.audio_url){
this.g_cartoon.playAudio(element.audio_url)
}
})
this.g_cartoon.getCartoonElement("boy").beat(index, ()=>{
......@@ -938,8 +939,8 @@ export class PlayComponent implements OnInit, OnDestroy {
}
this.g_cartoon.stopAllAudio();
this.g_cartoon.playAudio(`gusheng_${index+1}`, false, ()=>{
if(data.audio_url){
this.g_cartoon.playAudio(data.audio_url)
if(element.audio_url){
this.g_cartoon.playAudio(element.audio_url)
}
})
this.setRenderZIndex(element.ref, zIndexMap.drum + 1)
......
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