Commit a995fc3a authored by haiyoucuv's avatar haiyoucuv

换了点皮,换了下接口

parent fd1c29ea
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>
\ No newline at end of file
......@@ -3,4 +3,7 @@
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectPlainTextFileTypeManager">
<file url="file://$PROJECT_DIR$/src/scene/LotteryScene.ts" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
{
"code": "530001",
"data": {
"power": 231,
"tools": {
"STEPS": 3,
"BOOMS": 4,
"HAMMERS": 5
},
"isvip": false,
"url": "//market.m.taobao.com/apps/market/shopmember/index.html?wh_weex=true&sellerId=2207623078795&extraInfo=%7B%22source%22%3A%22isvapp%22%2C%22entrance%22%3A%22duiba%22%7D"
},
"success": true,
"message": "需要成为会员"
}
{
"code": "000000",
"data": {
"inviteFriends": {
"type": 2,
"value": 8,
"taskNum": 3
},
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"rule": "测试活动规则",
"updateTime": 1594987802814,
"title": "澎锋测试1",
"toolsProbability": {
"HAMMERS": {
"properiodfrom": 1,
"properiodto": 3300,
"probability": 33
},
"STEPS": {
"properiodfrom": 3301,
"properiodto": 6700,
"probability": 34
},
"BOOMS": {
"properiodfrom": 6701,
"properiodto": 10000,
"probability": 33
}
},
"levelPrize": {
"level_90": "https://img.alicdn.com/imgextra/i4/2275046294/O1CN01rG9iDU1wMhRtEnjA8_!!2275046294-2-miniprogram.png",
"level_60": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01Sytynw1wMhRuqjy5V_!!2275046294-2-miniprogram.png",
"level_120": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Jh6dtM1wMhRxULetP_!!2275046294-2-miniprogram.png",
"level_30": "https://img.alicdn.com/imgextra/i3/2275046294/O1CN019uAoYk1wMhRsoAgag_!!2275046294-2-miniprogram.png",
"level_10": "https://img.alicdn.com/imgextra/i3/2275046294/O1CN01FwiFBB1wMhRybF1V4_!!2275046294-2-miniprogram.png"
},
"buyCredits": {
"HAMMERS": "3",
"POWERS": "4",
"STEPS": "2",
"BOOMS": "1"
},
"beMembership": 7,
"createTime": 1594987659195,
"deleteStatus": 1,
"browseGoods": {
"itemIds": "616444374083,617466150499,616903228711",
"type": 2,
"value": 5,
"taskNum": 3
},
"startTime": 1594988024000,
"_id": "5f11948b3075d9927ec1f4ce",
"endTime": 1595592824000,
"attentionStore": 6,
"openPrizeStatus": 2
},
"success": true,
"message": "成功"
}
This diff is collapsed.
This diff is collapsed.
{
"code": "000000",
"data": [
{
"switchStock": 2,
"isBackUp": false,
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"type": 3,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": "",
"id": "",
"stock": "",
"image": "https://img.alicdn.com/imgextra/i4/2275046294/O1CN01avEmL01wMhS5Wxd63_!!2275046294-2-miniprogram.png",
"properiodto": 0,
"amount": "",
"level": 3,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227570,
"ename": "",
"createTime": 1596014583758,
"name": "实物11",
"useStock": 0,
"_id": "5f213ff7738989c8b3f46f4d",
"endTime": ""
},
{
"switchStock": 1,
"isBackUp": false,
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"type": 3,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": "",
"id": "",
"stock": 10,
"image": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Zzj1FL1wMhS845iJp_!!2275046294-2-miniprogram.png",
"properiodto": 0,
"amount": "",
"level": 1,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227546,
"ename": "",
"createTime": 1596014583758,
"name": "实物1实物1实物1实",
"useStock": 1,
"_id": "5f213ff7738989c8b3f46f4b",
"endTime": ""
},
{
"switchStock": 2,
"isBackUp": false,
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"type": 1,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": 1593475200000,
"id": "",
"stock": "",
"image": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01fcO2aS1wMhS2wKUZO_!!2275046294-0-miniprogram.jpg",
"amount": "1",
"properiodto": 0,
"level": 2,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227558,
"ename": "18c738e4b1de4de3b481885b0d5e0936",
"createTime": 1596014583758,
"name": "优惠券1",
"useStock": 0,
"_id": "5f213ff7738989c8b3f46f4c",
"endTime": 1596239999000
},
{
"switchStock": 2,
"isBackUp": false,
"type": 3,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": "",
"id": "",
"stock": "",
"image": "https://img.alicdn.com/imgextra/i3/2275046294/O1CN01KWxBt41wMhS7Oiham_!!2275046294-2-miniprogram.png",
"properiodto": 0,
"amount": "",
"level": 4,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227581,
"ename": "",
"createTime": 1596078351428,
"name": "实物测试名称过长的啦",
"useStock": 0,
"_id": "5f22390fe5c0d7361f1e6b59",
"endTime": ""
},
{
"isBackUp": true,
"properiodto": 10000,
"amount": "",
"level": 5,
"probability": "100",
"prizeType": 10,
"updateTime": 1596093227586,
"type": 5,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"ename": "",
"lockStatus": 1,
"createTime": 1596093227586,
"deleteStatus": 1,
"name": "谢谢参与",
"useStock": 0,
"startTime": "",
"_id": "5f22732b738989c8b3f6d7c2",
"endTime": ""
}
],
"success": true,
"message": "成功"
}
\ No newline at end of file
{
"code": "000000",
"data": [
{
"taskType": "browseGoods",
"times": 3,
"todayCompleteTimes": 0,
"waitReceive": 0,
"value": "",
"rewards": 10
},
{
"taskType": "invites",
"times": 3,
"todayCompleteTimes": 0,
"waitReceive": 0,
"value": "",
"rewards": 10
},
{
"taskType": "follow",
"times": 1,
"todayCompleteTimes": 0,
"waitReceive": 0,
"value": "",
"rewards": 7
},
{
"taskType": "member",
"times": 1,
"todayCompleteTimes": 1,
"waitReceive": 0,
"rewards": 65
}
],
"success": true,
"message": "成功"
}
{
"code": "000000",
"data": {
"image": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Zzj1FL1wMhS845iJp_!!2275046294-2-miniprogram.png",
"amount": "",
"level": 10,
"drawStatus": 1,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"createDay": "2020/07/30",
"avatar": "http://wwc.alicdn.com/avatar/getAvatar.do?userIdStr=XFvSvGH0XmQGOFNWMCQyP08yX8cYPFgLXH*IXFMHvHcT&width=80&height=80&type=sns",
"type": 5,
"prizeId": "5f22732b738989c8b3f6d7c2",
"activityId": "5f213ff79897b44ce1d2925d",
"ename": "",
"userNick": "lpf468169313",
"name": "实物1实物1实物1实",
"_id": "AAFgCvE-ALiIWXYsJuSLKdVt1596078979091"
},
"success": true,
"message": "成功"
}
\ No newline at end of file
{
"success": true,
"message": "您还不是会员",
"data": {
"isvip": false,
"url": "xxx",
"credits": 471
}
}
{
"code":"000000",
"data":1,
"success":true,
"message":"成功"
}
\ No newline at end of file
This diff is collapsed.
{
"code": "000000",
"data": 1,
"success": true,
"message": "成功"
"code": "000000",
"message": "成功",
"data": {}
}
{
"success": true,
"code": "000000",
"message": "success",
"data": {
"tools": {
"HAMMERS": 1,
"STEPS": 1,
"BOOMS": 1
"steps": 1,
"booms": 1,
"hammers": 1
}
}
},
"success": true,
"message": "成功"
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {
"power": 100
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {
"_id": "",
"name": "",
"type": 1,
"image": "",
"drawStatus": "",
"level": ""
}
}
{
"success": true,
"code": "000000",
"message": "success",
"data": {
"currentLevel": 11,
"isPrizeLevel": false,
"isPrizeLevel": true,
"prize": {
},
"tool": {
"image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png"
"image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png",
"type": "hammers"
},
"prize": {
"type": "HAMMERS",
"image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png"
"currentLevel": 2
}
},
"success": true,
"message": "成功"
}
{
"success": true,
"code": "sit dolor quis",
"message": "nisi amet sunt Lorem",
"data": {
"rule": "测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试",
"currentLevel": 120,
"power": 100,
"tools": {
"steps": 100,
"booms": 100,
"hammers": 100
},
"records": [
{
"score": 57340,
"level": 107,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 61920,
"level": 90,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 71960,
"level": 30,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 33790,
"level": 29,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 22440,
"level": 28,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 61340,
"level": 27,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 43200,
"level": 26,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 35330,
"level": 25,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 19030,
"level": 24,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 10490,
"level": 23,
"isVisitSuccess": true,
"stars": 2
},
{
"score": 36280,
"level": 22,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 164350,
"level": 21,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 29280,
"level": 20,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 51060,
"level": 19,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 57090,
"level": 18,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 40860,
"level": 17,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 50350,
"level": 16,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 46920,
"level": 15,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 35630,
"level": 14,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 48950,
"level": 13,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 17990,
"level": 12,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 42230,
"level": 11,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 45420,
"level": 10,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 27230,
"level": 9,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 29620,
"level": 8,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 31870,
"level": 7,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 22810,
"level": 6,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 28460,
"level": 5,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 24440,
"level": 4,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 9380,
"level": 3,
"isVisitSuccess": true,
"stars": 2
},
{
"score": 960,
"level": 2,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 72080,
"level": 1,
"isVisitSuccess": true,
"stars": 3
}
],
"levelPrize": {
"level50": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png",
"level100": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png",
"level120": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png"
},
"prizes": [
{
"receiveTime": "2020/09/16",
"level": 1,
"isReceive": true
}
],
"isFristLogin": false,
"loginAddPower": false
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": [
{
"_id": "",
"ename": "",
"type": 1,
"image": "",
"name": "",
"drawStatus": 1,
"receiveName": "",
"phone": "",
"address": "",
"receiveTime": "",
"remark": ""
}
]
}
{
"code": "000000",
"success": false,
"data": {
"power": 3
"reaminTimes": 1000
},
"success": true,
"code": "000000",
"message": "成功"
}
{
"success": true,
"code": "consectetur ex dolore id commodo",
"message": "aliqua sint commodo",
"data": {
"taskList": [
{
"taskType": "browseGoods",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "invites",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "orderGoods",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "follow",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "member",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
}
]
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {
"tools": {
"steps": 100,
"booms": 100,
"hammers": 100
}
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {}
}
{
"success": false,
"code": "ipsum in",
"message": "nulla dolor est eiusmod sunt",
"data": {
"power": 7
}
}
......@@ -17157,7 +17157,7 @@ var NoStepPanel = (function (_super) {
}, _this);
});
this.liveBtn.addEventListener(FYGE.MouseEvent.CLICK, function () {
if (!Tools_1.Tools.gameData.tools.STEPS) {
if (!Tools_1.Tools.gameData.tools.steps) {
ctrls_1.showPanel(ToolsOutPanel_1.ToolsOutPanel, { type: PropType_1.PropType.STEPS, showSucPanel: false });
}
else {
......@@ -19717,9 +19717,9 @@ var PlayScene = (function (_super) {
return false;
};
PlayScene.prototype.updateScene = function () {
this.propBtnCon.boomCount = Tools_1.Tools.gameData.tools.BOOMS;
this.propBtnCon.hammerCount = Tools_1.Tools.gameData.tools.HAMMERS;
this.propBtnCon.stepCount = Tools_1.Tools.gameData.tools.STEPS;
this.propBtnCon.boomCount = Tools_1.Tools.gameData.tools.booms;
this.propBtnCon.hammerCount = Tools_1.Tools.gameData.tools.hammers;
this.propBtnCon.stepCount = Tools_1.Tools.gameData.tools.steps;
};
PlayScene.prototype.initEvents = function () {
this.addEventListener(FYGE.Event.ENTER_FRAME, this.onEnterFrame, this);
resource/FailedPanel/失败Bg.png

170 KB | W: | H:

resource/FailedPanel/失败Bg.png

82.6 KB | W: | H:

resource/FailedPanel/失败Bg.png
resource/FailedPanel/失败Bg.png
resource/FailedPanel/失败Bg.png
resource/FailedPanel/失败Bg.png
  • 2-up
  • Swipe
  • Onion skin
resource/FreePowerPanel/圆圈.png

146 KB | W: | H:

resource/FreePowerPanel/圆圈.png

127 KB | W: | H:

resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
  • 2-up
  • Swipe
  • Onion skin
resource/TaskPanel/任务背景.png

198 KB | W: | H:

resource/TaskPanel/任务背景.png

175 KB | W: | H:

resource/TaskPanel/任务背景.png
resource/TaskPanel/任务背景.png
resource/TaskPanel/任务背景.png
resource/TaskPanel/任务背景.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/ele5.png

10.8 KB | W: | H:

resource/common/ele5.png

13.4 KB | W: | H:

resource/common/ele5.png
resource/common/ele5.png
resource/common/ele5.png
resource/common/ele5.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/ele7.png

6.66 KB | W: | H:

resource/common/ele7.png

9.21 KB | W: | H:

resource/common/ele7.png
resource/common/ele7.png
resource/common/ele7.png
resource/common/ele7.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/ele9.png

11.5 KB | W: | H:

resource/common/ele9.png

7.18 KB | W: | H:

resource/common/ele9.png
resource/common/ele9.png
resource/common/ele9.png
resource/common/ele9.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/stepBtn.png

14.5 KB | W: | H:

resource/common/stepBtn.png

15.4 KB | W: | H:

resource/common/stepBtn.png
resource/common/stepBtn.png
resource/common/stepBtn.png
resource/common/stepBtn.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/关闭按钮.png

10.2 KB | W: | H:

resource/common/关闭按钮.png

14.2 KB | W: | H:

resource/common/关闭按钮.png
resource/common/关闭按钮.png
resource/common/关闭按钮.png
resource/common/关闭按钮.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/再想想.png

15.3 KB | W: | H:

resource/common/再想想.png

17.4 KB | W: | H:

resource/common/再想想.png
resource/common/再想想.png
resource/common/再想想.png
resource/common/再想想.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/确定.png

15.2 KB | W: | H:

resource/common/确定.png

21.1 KB | W: | H:

resource/common/确定.png
resource/common/确定.png
resource/common/确定.png
resource/common/确定.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/继续闯关大.png

22.1 KB | W: | H:

resource/common/继续闯关大.png

29 KB | W: | H:

resource/common/继续闯关大.png
resource/common/继续闯关大.png
resource/common/继续闯关大.png
resource/common/继续闯关大.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/继续闯关小.png

20.7 KB | W: | H:

resource/common/继续闯关小.png

22.8 KB | W: | H:

resource/common/继续闯关小.png
resource/common/继续闯关小.png
resource/common/继续闯关小.png
resource/common/继续闯关小.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle0.png

10.1 KB | W: | H:

resource/playScene/bubleEle0.png

13.2 KB | W: | H:

resource/playScene/bubleEle0.png
resource/playScene/bubleEle0.png
resource/playScene/bubleEle0.png
resource/playScene/bubleEle0.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle1.png

13.9 KB | W: | H:

resource/playScene/bubleEle1.png

12.6 KB | W: | H:

resource/playScene/bubleEle1.png
resource/playScene/bubleEle1.png
resource/playScene/bubleEle1.png
resource/playScene/bubleEle1.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle2.png

13.3 KB | W: | H:

resource/playScene/bubleEle2.png

12.8 KB | W: | H:

resource/playScene/bubleEle2.png
resource/playScene/bubleEle2.png
resource/playScene/bubleEle2.png
resource/playScene/bubleEle2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle3.png

12.8 KB | W: | H:

resource/playScene/bubleEle3.png

12.6 KB | W: | H:

resource/playScene/bubleEle3.png
resource/playScene/bubleEle3.png
resource/playScene/bubleEle3.png
resource/playScene/bubleEle3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle4.png

13 KB | W: | H:

resource/playScene/bubleEle4.png

13.5 KB | W: | H:

resource/playScene/bubleEle4.png
resource/playScene/bubleEle4.png
resource/playScene/bubleEle4.png
resource/playScene/bubleEle4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballDisBg.png

2.34 KB | W: | H:

resource/playScene/hairballDisBg.png

9.03 KB | W: | H:

resource/playScene/hairballDisBg.png
resource/playScene/hairballDisBg.png
resource/playScene/hairballDisBg.png
resource/playScene/hairballDisBg.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece1.png

1.8 KB | W: | H:

resource/playScene/hairballPiece1.png

2.02 KB | W: | H:

resource/playScene/hairballPiece1.png
resource/playScene/hairballPiece1.png
resource/playScene/hairballPiece1.png
resource/playScene/hairballPiece1.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece2.png

1.94 KB | W: | H:

resource/playScene/hairballPiece2.png

2.04 KB | W: | H:

resource/playScene/hairballPiece2.png
resource/playScene/hairballPiece2.png
resource/playScene/hairballPiece2.png
resource/playScene/hairballPiece2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece3.png

1.69 KB | W: | H:

resource/playScene/hairballPiece3.png

2.75 KB | W: | H:

resource/playScene/hairballPiece3.png
resource/playScene/hairballPiece3.png
resource/playScene/hairballPiece3.png
resource/playScene/hairballPiece3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece4.png

1.69 KB | W: | H:

resource/playScene/hairballPiece4.png

2.96 KB | W: | H:

resource/playScene/hairballPiece4.png
resource/playScene/hairballPiece4.png
resource/playScene/hairballPiece4.png
resource/playScene/hairballPiece4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece5.png

1.08 KB | W: | H:

resource/playScene/hairballPiece5.png

2.35 KB | W: | H:

resource/playScene/hairballPiece5.png
resource/playScene/hairballPiece5.png
resource/playScene/hairballPiece5.png
resource/playScene/hairballPiece5.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece6.png

1.76 KB | W: | H:

resource/playScene/hairballPiece6.png

2.85 KB | W: | H:

resource/playScene/hairballPiece6.png
resource/playScene/hairballPiece6.png
resource/playScene/hairballPiece6.png
resource/playScene/hairballPiece6.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece7.png

1.61 KB | W: | H:

resource/playScene/hairballPiece7.png

2.73 KB | W: | H:

resource/playScene/hairballPiece7.png
resource/playScene/hairballPiece7.png
resource/playScene/hairballPiece7.png
resource/playScene/hairballPiece7.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece8.png

2.14 KB | W: | H:

resource/playScene/hairballPiece8.png

1.6 KB | W: | H:

resource/playScene/hairballPiece8.png
resource/playScene/hairballPiece8.png
resource/playScene/hairballPiece8.png
resource/playScene/hairballPiece8.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice2.png

13.5 KB | W: | H:

resource/playScene/ice2.png

8.1 KB | W: | H:

resource/playScene/ice2.png
resource/playScene/ice2.png
resource/playScene/ice2.png
resource/playScene/ice2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice3.png

13.9 KB | W: | H:

resource/playScene/ice3.png

9.57 KB | W: | H:

resource/playScene/ice3.png
resource/playScene/ice3.png
resource/playScene/ice3.png
resource/playScene/ice3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice4.png

14.4 KB | W: | H:

resource/playScene/ice4.png

9.51 KB | W: | H:

resource/playScene/ice4.png
resource/playScene/ice4.png
resource/playScene/ice4.png
resource/playScene/ice4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice6.png

12.5 KB | W: | H:

resource/playScene/ice6.png

10.3 KB | W: | H:

resource/playScene/ice6.png
resource/playScene/ice6.png
resource/playScene/ice6.png
resource/playScene/ice6.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/lockVine.png

28.2 KB | W: | H:

resource/playScene/lockVine.png

6.02 KB | W: | H:

resource/playScene/lockVine.png
resource/playScene/lockVine.png
resource/playScene/lockVine.png
resource/playScene/lockVine.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/magicLion.png

13.5 KB | W: | H:

resource/playScene/magicLion.png

10.2 KB | W: | H:

resource/playScene/magicLion.png
resource/playScene/magicLion.png
resource/playScene/magicLion.png
resource/playScene/magicLion.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock2.png

11.5 KB | W: | H:

resource/playScene/rock2.png

14 KB | W: | H:

resource/playScene/rock2.png
resource/playScene/rock2.png
resource/playScene/rock2.png
resource/playScene/rock2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock3.png

13.2 KB | W: | H:

resource/playScene/rock3.png

14.3 KB | W: | H:

resource/playScene/rock3.png
resource/playScene/rock3.png
resource/playScene/rock3.png
resource/playScene/rock3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock4.png

13.1 KB | W: | H:

resource/playScene/rock4.png

14 KB | W: | H:

resource/playScene/rock4.png
resource/playScene/rock4.png
resource/playScene/rock4.png
resource/playScene/rock4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock5.png

13.7 KB | W: | H:

resource/playScene/rock5.png

14.7 KB | W: | H:

resource/playScene/rock5.png
resource/playScene/rock5.png
resource/playScene/rock5.png
resource/playScene/rock5.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock6.png

14.4 KB | W: | H:

resource/playScene/rock6.png

13.9 KB | W: | H:

resource/playScene/rock6.png
resource/playScene/rock6.png
resource/playScene/rock6.png
resource/playScene/rock6.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -73,7 +73,7 @@
"name": "bonusTime"
},
{
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common"
},
{
......@@ -113,7 +113,7 @@
"name": "mapWhaleEffect"
},
{
"keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"name": "playScene"
},
{
......
......@@ -2,19 +2,14 @@
import { layers, destroyLayers } from "../module/views/layers";
import { RES } from "../module/RES";
import { changeScene, showWaiting, destroyAllCtrls, showPanel } from "../module/ctrls";
import { changeScene, destroyAllCtrls } from "../module/ctrls";
import { ResJson } from "./ResJson";
import { destroyNetData, sendTbNet, TbNetName } from "./TaoBaoNet";
import { destroyNetData } from "./TaoBaoNet";
import { SkinJson } from "./SkinJson";
import { G_EVENT } from "./common/G_EVENT";
import { MapScene } from "./scene/map/MapScene";
import { PlayScene } from "./scene/PlayScene";
import { LoadingScene } from "./scene/LoadingScene";
import { JoinPanel } from "./panels/JoinPanel";
import { NoStepPanel } from "./panels/NoStepPanel";
import { NoPrizePanel } from "./panels/NoPrizePanel";
import { LotteryScene } from "./scene/LotteryScene";
/**
* 全局事件,为了和小程序交互
......@@ -89,26 +84,6 @@ export class Main {
// if (document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
//打开开始场景
changeScene(LoadingScene);
// changeScene(SStartScene);
// changeScene(StoryScene);
// changeScene(AdoptScene);
// console.log("恶趣味去")
// showPanel(NoPrizePanel)
//测试
// sendTbNet(TbNetName.aaa, {}, (s, res) => {
// console.log(res)
// })
//获取数据,,必成功
// showWaiting();
// sendTbNet(TbNetName.getAppData, {}, (s, res) => {
// hideWaiting();
// Tool.globalData = res.data;
// changeScene(PlayScene);
// //先去获取下任务列表的商品信息吧
// sendTbNet(TbNetName.getTaskList, { activityId: Tool.globalData.activityId }, (s, res) => {
// if (s) Tool.browseItems = res.data.browseItemIds.content;
// })
// })
}
//在小程序显示时调用onShow
......
......@@ -73,7 +73,7 @@ export const ResJson = {
"name": "bonusTime"
},
{
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common"
},
{
......@@ -113,7 +113,7 @@ export const ResJson = {
"name": "mapWhaleEffect"
},
{
"keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"name": "playScene"
},
{
......
This diff is collapsed.
......@@ -9,14 +9,9 @@ export enum TbNetName {
* activityId params elemType
*/
trackingReport = "squirrelsAdoptRest2c.trackingReport",
/**
* 进入活动调用, 刷新数据不调用该接口
* activityId userNick avatar follow inviteId
*/
getIndex = "babycare.getIndex",
// 领取权益奖励
receiveEnamePrize = "babycare.receiveEnamePrize",
receiveEnamePrize = "popmartXXL2c.receiveEnamePrize",
/**
......@@ -24,71 +19,42 @@ export enum TbNetName {
* @param activityId
* @type {string}
*/
getActivityBaseInfoById = "babycare.getActivityBaseInfoById",
getActivityBaseInfoById = "popmartXXL2c.getActivityBaseInfoById",
/**
* 获取游戏信息
* activityId
*/
getGameInfo = "babycare.getGameInfo",
/**
* 消耗道具 ,会返回剩余所有道具数量
* activityId type
*/
consumerTools = "babycare.consumerTools",
consumerTools = "popmartXXL2c.consumerTools",
/**
* 提交分数
* activityId level score stars isVisitSuccess(是否通关)
*/
gameOver = "babycare.gameOver",
gameOver = "popmartXXL2c.gameOver",
/**
* 领取任务奖励
* activityId taskType
*/
receiveTaskRewards = "babycare.receiveTaskRewards",
/**
* 积分兑换道具和体力
* activityId type credits
*/
exchange = "babycare.exchange",
/**
* 根据等级获取奖品列表
* activityId level
*/
getPrizesByLevel = "babycare.getPrizesByLevel",
/**
* 查询用户积分
* activityId
*/
queryCredits = "babycare.queryCredits",
receiveTaskRewards = "popmartXXL2c.receiveTaskRewards",
/**
* 开始闯关,会返回体力值
* activityId level
*/
dojoin = "babycare.dojoin",
dojoin = "popmartXXL2c.doJoin",
/**
* 完成任务(浏览商品详情页, 关注店铺)
* activityId taskType
*/
completeTask = "babycare.completeTask",
completeTask = "popmartXXL2c.completeTask",
/**
* 任务列表
* activityId
*/
getTaskList = "babycare.getTaskList",
/**
* 抽奖
* activityId
*/
luckyDraw = "babycare.luckyDraw",
getTaskList = "popmartXXL2c.getTaskList",
///////////////////前端调用接口都加个mine
/**
* 获取120名通关的人数
*/
getAppointCount = "mine.getAppointCount",
////带用户操作,和index.js特殊操作的
/**
* 用户授权
......
......@@ -33,83 +33,62 @@ export class Tools {
"openId": string,
"inviteId": string,
"isFollow": boolean,
"isFromWx": boolean,
}
/**
* 游戏数据,需要根据接口维护
*/
public static gameData: {
"currentLevel": number,
"loginAddPower": boolean,
"visitors": {
"score": number,
"level": number,
"isVisitSuccess": boolean,
"stars": number,
sendAwardType: any
}[],
"prizes": {
"receiveTime": string,//number
"level": number,
"isReceive": boolean
}[],
"power": number,
"tools": {
"HAMMERS": number,
"STEPS": number,
"BOOMS": number
},
"isFristLogin": boolean,//是否是首次
"topAward": {
openPrizeStatus: boolean,
prize: any
},//120关自动开奖
"wxOriginPrize"?: {//微信中奖信息
"type": number,
"name": string,
"rewardNum": number,
"code"?:string,
"defaultMsg"?:string
public static async getAppData() {
const {data} = await sendTbNet(TbNetName.getAppData);
Tools.globalData = data;
}
public static propInfo: {
hammers: number,
steps: number,
booms: number,
power: number,
} = {
hammers: 0,
steps: 0,
booms: 0,
power: 0,
}
public static baseInfo: {
prizeLevels: number[],
inviteFriends: any,
openId: string,
rule: string,
updateTime: number,
title: string,
toolsProbability: any,
levelPrize: any,
buyCredits: any, /// TODO ……
currentLevel: 1,
records: {
score: number,
level: number,
isVisitSuccess: boolean,
stars: number,
}[],
levelPrize: {
level50: string,
level100: string,
level120: string
},
loginAddPower: boolean,
isFristLogin: boolean, //是否是首次
};// 活动基本信息
/**
* 首页数据,loading页面执行一次
*/
public static getIndex(): Promise<boolean> {
public static getBaseInfo() {
// 游戏基本信息
return new Promise((r) => {
sendTbNet(TbNetName.getIndex, {
userNick: this.globalData.nickName,
avatar: this.globalData.avatar,
follow: this.globalData.isFollow,
inviteId: this.globalData.inviteId,
isFromWx: this.globalData.isFromWx
}, (s, res) => {
if (s) this.gameData = res.data;
r(s);
})
})
sendTbNet(TbNetName.getActivityBaseInfoById, {}, (s, res) => {
if (s && res && res.data) {
const data = Tools.baseInfo = res.data;
if (res.data.tools) {
Tools.propInfo.booms = data.tools.booms || 0;
Tools.propInfo.steps = data.tools.steps || 0;
Tools.propInfo.hammers = data.tools.hammers || 0;
}
Tools.propInfo.power = data.power || 0;
}
/**
* 进入地图页面刷新
*/
public static getGameInfo() {
return new Promise((r) => {
sendTbNet(TbNetName.getGameInfo, {}, (s, res) => {
if (s) this.gameData = res.data;
r(s);
})
})
......@@ -120,11 +99,12 @@ export class Tools {
*/
public static consumerTools(type: PropType): Promise<boolean> {
return new Promise((resolve, reject) => {
sendTbNet(TbNetName.consumerTools, { type }, (s, res) => {
sendTbNet(TbNetName.consumerTools, {type}, (s, res) => {
if (s) {
//修改道具数量
this.gameData.tools = res.data.tools;
// resolve(res);//数据按照gameData的更新,不返回
this.propInfo.booms = res.data.tools.booms;
this.propInfo.steps = res.data.tools.steps;
this.propInfo.hammers = res.data.tools.hammers;
resolve(true)
} else {
// reject()
......@@ -149,45 +129,6 @@ export class Tools {
}
}
/**
* 兑换道具,根据返回参数判断
*/
public static async exchange(type: PropType): Promise<boolean | string> {
//先获取积分,判断是否有积分
var creditsData = await sendTbNet(TbNetName.queryCredits, null, null, true)
//接口失败,没数据时,返回false
if (!creditsData || !creditsData.data) {
showToast("网络异常,请重试")//上面禁掉了提示,这里提示下
return false
}
//非会员,返回会员路径
if (creditsData && !creditsData.success && !creditsData.data.isvip) {
return creditsData.data.url
}
//判断积分,不足兑换
if (!creditsData.data.credits ||
creditsData.data.credits < getTbData(TbNetName.getActivityBaseInfoById).data.buyCredits[type]
) {
showPanel(CreditsOutPanel)
return false
}
const res = await sendTbNet(TbNetName.exchange, { type, credits: creditsData.data.credits }, null, true)
if (res.success) {
//修改道具数量和体力
this.gameData.power = res.data.power;
this.gameData.tools = res.data.tools;
return true;//可根据gameData修改视图
} else {
//如果code积分不足,弹出赚积分弹窗
if (res.code == "730005") {
showPanel(CreditsOutPanel)
} else {
showToast(res.message || "网络开小差了,请重试")
}
return false;
}
}
/**
* 询问权限用
*/
......@@ -196,11 +137,11 @@ export class Tools {
var tbMy = my
if (!tbMy) return;
//@ts-ignore
const { cloud } = getApp();
const {cloud} = getApp();
//测试地址//到时云存储传一个小json,,改路径
var url = "cloud://B4F0300E5148F478B506DEDC26EA4C6C//butterfly0.svga";
//获取临时地址
var urls = await cloud.file.getTempFileURL({ fileId: [url] })
var urls = await cloud.file.getTempFileURL({fileId: [url]})
url = urls[0].url.replace('-internal', '');
tbMy.downloadFile({
url: url,
......@@ -209,10 +150,10 @@ export class Tools {
tbMy.getFileSystemManager().readFile({
filePath: i,
// encoding: "utf8",
success: function (r) {
success: function(r) {
},
fail: function (res) {
fail: function(res) {
}
})
......@@ -356,11 +297,11 @@ export class Tools {
showTime: number = 300
) {
Tween.get(target)
.set({ alpha: 0, visible: true })
.to({ alpha: 1 }, showTime, Ease.quadIn)
.set({alpha: 0, visible: true})
.to({alpha: 1}, showTime, Ease.quadIn)
.wait(time)
.to({ alpha: 0 }, showTime, Ease.quadOut)
.set({ alpha: 0, visible: false })
.to({alpha: 0}, showTime, Ease.quadOut)
.set({alpha: 0, visible: false})
.call(() => {
call();
});
......
<audio src="aaaa.mp3" id="au" autoplay='autoplay' loop="loop"></audio>
<script>
var au = document.getElementById('au');
au.src = "aaaaa.mp3";//需要js引入路径
au.play();
// 音乐兼容微信自动播放
document.addEventListener('DOMContentLoaded', function () {
function audioAutoPlay() {
var au = document.getElementById('au');
au.play();
document.addEventListener("WeixinJSBridgeReady", function () {
au.play();
}, false);
}
audioAutoPlay();
});
document.addEventListener("WeixinJSBridgeReady", function () {
au.play();
}, false);
window.onclick = ()=>{
au.play();
window.onclick = null;
}
</script>
import { Panel } from "../../module/views/Panel";
import { Tools } from "../Tools";
import { getCurrentScene, hideWaiting, showPanel, showToast, showWaiting } from "../../module/ctrls";
import { JoinPanel } from "./JoinPanel";
import { PropType } from "../something/enum/PropType";
import VERTICAL_ALIGN = FYGE.VERTICAL_ALIGN;
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import TextField = FYGE.TextField;
export class BuyPowerPanel extends Panel {
get groupNames() {
return ["BuyPowerPanel"]
}
get skinName() {
return "BuyPowerPanel"
}
msgTxt: FYGE.TextField;
exchangeBtn: FYGE.Button;
closeBtn: FYGE.Button;
initUi() {
const btnTxt: TextField = this.exchangeBtn.addChild(Tools.getText(
'1店铺积分', 36, '#ffffff',
TEXT_ALIGN.CENTER, this.exchangeBtn.width, 0, -6
));
btnTxt.textHeight = this.exchangeBtn.height;
btnTxt.verticalAlign = VERTICAL_ALIGN.MIDDLE;
btnTxt.bold = true;
btnTxt.stroke = 3;
btnTxt.strokeColor = '#21926e';
this.msgTxt.bold = true;
this.msgTxt.stroke = 3;
this.msgTxt.strokeColor = '#21926e';
this.exchangeBtn.addEventListener(FYGE.MouseEvent.CLICK, async () => {
//购买道具
showWaiting();
var res = await Tools.exchange(PropType.POWER);
hideWaiting();
//如果是链接,弹出加入会员弹框
if (typeof res == "string") {
showPanel(JoinPanel, { url: res });
}
//成功了,关闭弹框,修改道具信息
else if (res) {
showToast("兑换成功");
this.hidePanel();
getCurrentScene().updateScene();
}
}, this);
}
start(data) {
super.start();
}
initEvents() {
super.initEvents();
}
removeEvents() {
super.removeEvents();
}
}
import { Panel } from "../../module/views/Panel";
import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { Tools } from "../Tools";
export class CreditsOutPanel extends Panel {
get groupNames() { return ["CreditsOutPanel"] }
get skinName() { return "CreditsOutPanel" }
earnBtn: FYGE.Button;
closeBtn: FYGE.Button;
initUi() {
}
start(data) {
super.start();
}
initEvents() {
super.initEvents();
this.earnBtn.addEventListener(FYGE.MouseEvent.CLICK, () => {
Tools.btnDelay(this);
sendTbNet(TbNetName.navigateToOutside, {
url: "https://market.m.taobao.com/app/tb-source-app/shopact/pages/index?wh_weex=true&pathInfo=shop/activity&userId=2275046294&shopId=114637892&pageId=187145736&alisite=true"
})//赚积分路径
}, this)
}
removeEvents() {
super.removeEvents();
}
}
import { Panel } from "../../module/views/Panel";
export class ExchangeSucPanel extends Panel {
get groupNames() { return ["ExchangeSucPanel"] }
get skinName() { return "ExchangeSucPanel" }
knowBtn:FYGE.Button;
closeBtn:FYGE.Button;
get closeBtns(){
return [this.knowBtn,this.closeBtn]
}
}
......@@ -16,35 +16,8 @@ export class FailedPanel extends Panel {
againBtn: FYGE.Button;
closeBtn: FYGE.Button;
tipsTex: FYGE.TextField;
checkTex: FYGE.TextField;
initUi() {
this.checkTex.text = `第\t${this.data.level}\t关`;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
this.checkTex.x = 2;
this.checkTex.textWidth = 750;
const curLevel: number = Tools.gameData.currentLevel;
let upLevel: number = 120;
let dLevel: number = 120;
Tools.baseInfo.prizeLevels.forEach((value, index) => {
const d: number = value - curLevel;
if (curLevel <= value && d >= 0 && d <= dLevel) {
upLevel = value;
dLevel = d + 1;
}
});
this.tipsTex.text = `\t\t\t再接再厉!\n再解锁${dLevel}关可参与抽奖`;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 750;
this.tipsTex.x = 0;
if (Tools.gameData.currentLevel == 120
&& MapScene.checkArr && MapScene.checkArr[120]
&& MapScene.checkArr[120].checkData.isVisitSuccess) {
this.tipsTex.text = '';
}
}
start(data) {
......
import { Panel } from "../../module/views/Panel";
import MouseEvent = FYGE.MouseEvent;
import { showPanel } from "../../module/ctrls";
import { BuyPowerPanel } from "./BuyPowerPanel";
export class NoEnergyPanel extends Panel {
get groupNames() {
......@@ -26,7 +25,6 @@ export class NoEnergyPanel extends Panel {
initEvents() {
super.initEvents();
this.okBtn.addEventListener(MouseEvent.CLICK, () => {
showPanel(BuyPowerPanel);
this.hidePanel();
}, this);
}
......
import { Panel } from "../../module/views/Panel";
import { RES } from "../../module/RES";
export class NoPrizePanel extends Panel {
get groupNames(){return ["NoPrizePanel"]}
initUi() {
this.addChild(new FYGE.Sprite(RES.getRes("noPrizeBg.png")))
this.addChild(new FYGE.Button(RES.getRes("关闭按钮.png")))
.addEventListener(FYGE.MouseEvent.CLICK, this.hidePanel, this)
.position.set(633,468);
this.addChild(new FYGE.Button(RES.getRes("知道了.png")))
.addEventListener(FYGE.MouseEvent.CLICK, this.hidePanel, this)
.position.set(165,759);
}
}
\ No newline at end of file
import { Panel } from "../../module/views/Panel";
import { Tools } from "../Tools";
import { getCurrentScene, showPanel } from "../../module/ctrls";
import { ToolsOutPanel } from "./ToolsOutPanel";
import { PropType } from "../something/enum/PropType";
import { getCurrentScene } from "../../module/ctrls";
export class NoStepPanel extends Panel {
get groupNames() { return ["NoStepPanel"] }
get skinName() { return "NoStepPanel" }
get groupNames() {
return ["NoStepPanel"]
}
get skinName() {
return "NoStepPanel"
}
overBtn: FYGE.Button;
liveBtn: FYGE.Button;
closeBtn: FYGE.Button;
......@@ -16,12 +20,12 @@ export class NoStepPanel extends Panel {
}
initUi() {
// Tools.changeTextAlign(this.tipsTex, FYGE.TEXT_ALIGN.CENTER, 500)
this.tipsTex.textAlign = FYGE.TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 500;
this.tipsTex.x = (750 - 500) / 2;
this.tipsTex.text = "是否使用步数道具\n增加5次步数"
}
initEvents() {
//结束
[this.closeBtn, this.overBtn].forEach((e) => {
......@@ -32,15 +36,11 @@ export class NoStepPanel extends Panel {
})
//复活
this.liveBtn.addEventListener(FYGE.MouseEvent.CLICK, () => {
//无步数道具,弹出积分兑换
if (!Tools.gameData.tools.STEPS) {
showPanel(ToolsOutPanel, { type: PropType.STEPS, showSucPanel: false })
} else {
this.data.reviveFun();
this.hidePanel();
}
}, this)
}
removeEvents() {
}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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