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

修改

parent c89d1f9a
...@@ -2,47 +2,586 @@ export const ResJson = { ...@@ -2,47 +2,586 @@ export const ResJson = {
"groups": [ "groups": [
{ {
"keys": "ruleBg.png,我知道了.png", "keys": "ruleBg.png,我知道了.png",
"name": "RulePanel" "name": "RulePanel",
"atlas": {
"ruleBg.png": {
"x": 2,
"y": 2,
"w": 680,
"h": 1120,
"ox": 0,
"oy": 0,
"sw": 680,
"sh": 1120,
"ro": false
},
"我知道了.png": {
"x": 684,
"y": 2,
"w": 412,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 412,
"sh": 114,
"ro": true
}
}
}, },
{ {
"keys": "startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png", "keys": "startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png",
"name": "StartScene" "name": "StartScene",
"atlas": {
"底部按钮区背景.png": {
"x": 2,
"y": 2,
"w": 750,
"h": 191,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 191,
"ro": false
},
"开始游戏.png": {
"x": 2,
"y": 195,
"w": 413,
"h": 149,
"ox": 0,
"oy": 0,
"sw": 413,
"sh": 149,
"ro": false
},
"运动锦鲤按钮.png": {
"x": 417,
"y": 195,
"w": 121,
"h": 117,
"ox": 0,
"oy": 0,
"sw": 121,
"sh": 117,
"ro": true
},
"奖品按钮.png": {
"x": 536,
"y": 195,
"w": 119,
"h": 44,
"ox": 0,
"oy": 0,
"sw": 119,
"sh": 44,
"ro": true
},
"规则按钮.png": {
"x": 582,
"y": 195,
"w": 119,
"h": 44,
"ox": 0,
"oy": 0,
"sw": 119,
"sh": 44,
"ro": true
},
"排行榜按钮.png": {
"x": 628,
"y": 195,
"w": 91,
"h": 117,
"ox": 0,
"oy": 0,
"sw": 91,
"sh": 117,
"ro": true
},
"赚次数按钮.png": {
"x": 2,
"y": 346,
"w": 92,
"h": 117,
"ox": 0,
"oy": 0,
"sw": 92,
"sh": 117,
"ro": true
}
}
}, },
{ {
"keys": "comCloseBtn.png,index_box.png,index_prizeitembg.png,sharemask.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.png", "keys": "comCloseBtn.png,index_box.png,index_prizeitembg.png,sharemask.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.png",
"name": "common" "name": "common",
"atlas": {
"toastBg.png": {
"x": 2,
"y": 2,
"w": 460,
"h": 130,
"ox": 0,
"oy": 0,
"sw": 460,
"sh": 130,
"ro": false
},
"知道啦.png": {
"x": 2,
"y": 134,
"w": 306,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 306,
"sh": 102,
"ro": false
},
"sharemask.png": {
"x": 2,
"y": 238,
"w": 248,
"h": 229,
"ox": 0,
"oy": 0,
"sw": 248,
"sh": 229,
"ro": false
},
"index_box.png": {
"x": 252,
"y": 238,
"w": 181,
"h": 198,
"ox": 0,
"oy": 0,
"sw": 181,
"sh": 198,
"ro": true
},
"waitingBg.png": {
"x": 464,
"y": 2,
"w": 160,
"h": 180,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 180,
"ro": false
},
"index_prizeitembg.png": {
"x": 452,
"y": 184,
"w": 131,
"h": 131,
"ox": 0,
"oy": 0,
"sw": 131,
"sh": 131,
"ro": false
},
"关闭按钮.png": {
"x": 310,
"y": 134,
"w": 60,
"h": 60,
"ox": 0,
"oy": 0,
"sw": 60,
"sh": 60,
"ro": false
},
"waitingRot.png": {
"x": 372,
"y": 134,
"w": 56,
"h": 56,
"ox": 0,
"oy": 0,
"sw": 56,
"sh": 56,
"ro": false
},
"comCloseBtn.png": {
"x": 452,
"y": 317,
"w": 48,
"h": 48,
"ox": 0,
"oy": 0,
"sw": 48,
"sh": 48,
"ro": false
}
}
}, },
{ {
"keys": "cost_bg.png,cost_close.png,cost_open.png", "keys": "cost_bg.png,cost_close.png,cost_open.png",
"name": "cost" "name": "cost",
"atlas": {
"cost_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"cost_open.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"cost_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "getTimes_bg.png,getTimes_close.png,getTimes_go.png", "keys": "getTimes_bg.png,getTimes_close.png,getTimes_go.png",
"name": "getTimes" "name": "getTimes",
"atlas": {
"getTimes_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"getTimes_go.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"getTimes_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharehand.png,index_sharetips.png", "keys": "index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharehand.png,index_sharetips.png",
"name": "index" "name": "index",
"atlas": {
"index_bg.png": {
"x": 2,
"y": 2,
"w": 750,
"h": 1624,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 1624,
"ro": false
},
"index_bg2.png": {
"x": 754,
"y": 2,
"w": 687,
"h": 751,
"ox": 0,
"oy": 0,
"sw": 687,
"sh": 751,
"ro": false
},
"index_prizebg.png": {
"x": 754,
"y": 755,
"w": 687,
"h": 154,
"ox": 0,
"oy": 0,
"sw": 687,
"sh": 154,
"ro": false
},
"index_logo2.png": {
"x": 754,
"y": 911,
"w": 405,
"h": 76,
"ox": 0,
"oy": 0,
"sw": 405,
"sh": 76,
"ro": false
},
"index_sharetips.png": {
"x": 1161,
"y": 911,
"w": 383,
"h": 54,
"ox": 0,
"oy": 0,
"sw": 383,
"sh": 54,
"ro": true
},
"index_opentips.png": {
"x": 754,
"y": 989,
"w": 350,
"h": 29,
"ox": 0,
"oy": 0,
"sw": 350,
"sh": 29,
"ro": false
},
"index_logo1.png": {
"x": 1106,
"y": 989,
"w": 276,
"h": 39,
"ox": 0,
"oy": 0,
"sw": 276,
"sh": 39,
"ro": true
},
"index_record.png": {
"x": 1217,
"y": 911,
"w": 142,
"h": 35,
"ox": 0,
"oy": 0,
"sw": 142,
"sh": 35,
"ro": false
},
"index_rule.png": {
"x": 1361,
"y": 911,
"w": 140,
"h": 35,
"ox": 0,
"oy": 0,
"sw": 140,
"sh": 35,
"ro": true
},
"index_sharehand.png": {
"x": 1217,
"y": 948,
"w": 70,
"h": 71,
"ox": 0,
"oy": 0,
"sw": 70,
"sh": 71,
"ro": true
}
}
}, },
{ {
"keys": "进度条.png,进度条底.png", "keys": "进度条.png,进度条底.png",
"name": "loading" "name": "loading",
"atlas": {
"进度条底.png": {
"x": 2,
"y": 2,
"w": 584,
"h": 24,
"ox": 0,
"oy": 0,
"sw": 584,
"sh": 24,
"ro": false
},
"进度条.png": {
"x": 2,
"y": 28,
"w": 580,
"h": 20,
"ox": 0,
"oy": 0,
"sw": 580,
"sh": 20,
"ro": false
}
}
}, },
{ {
"keys": "memberGuide_bg.png,memberGuide_btn.png,memberGuide_close.png", "keys": "memberGuide_bg.png,memberGuide_btn.png,memberGuide_close.png",
"name": "memberGuide" "name": "memberGuide",
"atlas": {
"memberGuide_bg.png": {
"x": 2,
"y": 2,
"w": 493,
"h": 582,
"ox": 0,
"oy": 0,
"sw": 493,
"sh": 582,
"ro": false
},
"memberGuide_btn.png": {
"x": 497,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"memberGuide_close.png": {
"x": 552,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "newRule_bg.png,newRule_close.png", "keys": "newRule_bg.png,newRule_close.png",
"name": "newRule" "name": "newRule",
"atlas": {
"newRule_bg.png": {
"x": 2,
"y": 2,
"w": 529,
"h": 725,
"ox": 0,
"oy": 0,
"sw": 529,
"sh": 725,
"ro": false
},
"newRule_close.png": {
"x": 533,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "noprize_bg.png,noprize_close.png,noprize_ok.png", "keys": "noprize_bg.png,noprize_close.png,noprize_ok.png",
"name": "noprize" "name": "noprize",
"atlas": {
"noprize_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"noprize_ok.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"noprize_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "notEnoughMoney_bg.png,notEnoughMoney_btn.png,notEnoughMoney_close.png", "keys": "notEnoughMoney_bg.png,notEnoughMoney_btn.png,notEnoughMoney_close.png",
"name": "notEnoughMoney" "name": "notEnoughMoney",
"atlas": {
"notEnoughMoney_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"notEnoughMoney_btn.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"notEnoughMoney_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "playBg.jpg", "keys": "playBg.jpg",
...@@ -50,11 +589,92 @@ export const ResJson = { ...@@ -50,11 +589,92 @@ export const ResJson = {
}, },
{ {
"keys": "prize_bg.png,prize_bg2.png,prize_close.png,prize_open.png", "keys": "prize_bg.png,prize_bg2.png,prize_close.png,prize_open.png",
"name": "prize" "name": "prize",
"atlas": {
"prize_bg2.png": {
"x": 2,
"y": 2,
"w": 731,
"h": 731,
"ox": 0,
"oy": 0,
"sw": 731,
"sh": 731,
"ro": false
},
"prize_bg.png": {
"x": 735,
"y": 2,
"w": 521,
"h": 618,
"ox": 0,
"oy": 0,
"sw": 521,
"sh": 618,
"ro": false
},
"prize_open.png": {
"x": 735,
"y": 622,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": false
},
"prize_close.png": {
"x": 957,
"y": 622,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "share_bg.png,share_close.png,share_go.png", "keys": "share_bg.png,share_close.png,share_go.png",
"name": "share" "name": "share",
"atlas": {
"share_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"share_go.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"share_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
}, },
{ {
"keys": "盲盒开启-打开-输出.svga,盲盒选中-输出.svga,首页元素循环上-输出.svga,首页元素循环下-输出.svga", "keys": "盲盒开启-打开-输出.svga,盲盒选中-输出.svga,首页元素循环上-输出.svga,首页元素循环下-输出.svga",
...@@ -62,8 +682,43 @@ export const ResJson = { ...@@ -62,8 +682,43 @@ export const ResJson = {
}, },
{ {
"keys": "timesNotEnough_bg.png,timesNotEnough_close.png,timesNotEnough_ok.png", "keys": "timesNotEnough_bg.png,timesNotEnough_close.png,timesNotEnough_ok.png",
"name": "timesNotEnough" "name": "timesNotEnough",
"atlas": {
"timesNotEnough_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"timesNotEnough_ok.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"timesNotEnough_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
} }
], ],
"path": "./resource/" "path": "https://yun.duiba.com.cn/db_games/activity/template/1629355646/resource/"
} }
\ No newline at end of file
...@@ -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