Commit 2660873b authored by shunx 马's avatar shunx 马

修改

parent c89d1f9a
This diff is collapsed.
......@@ -24,7 +24,7 @@ export class PrizePanel extends Panel {
click_prize_open() {
sendLog("click",2);
console.log('click_prize_open');
location.href=this['opt'].url;
location.href = 'f34481928.html';
}
get groupNames() { return ["prize"] }
......
......@@ -122,9 +122,12 @@ export class BoxGroup extends FYGE.Sprite {
prizeData = await sendWebNetWithToken(WebNetName.drawPrize);
setTimeout(() => {
sendWebNet(WebNetName.index).then(res => {
layers.stage.dispatchEvent('updateIndexData')
})
}, 2000);
if (prizeData && prizeData.success) {
if (prizeData.data && prizeData.data.options) {
......
......@@ -116,7 +116,7 @@ export class IndexScene extends Scene {
}
onRestartFrame() {
if(boxGroup.indexsvga.parent)
if(boxGroup && boxGroup.indexsvga && boxGroup.indexsvga.parent)
boxGroup.removeChild(boxGroup.indexsvga);
if(!this.hasEventListener(FYGE.Event.ENTER_FRAME))
this.addEventListener(FYGE.Event.ENTER_FRAME, this.onEnterFrame, this);
......
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