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

修改

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