Commit 4aac4764 authored by 邱旭's avatar 邱旭

m

parent ed4ae4d1
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="0d3cb18d-e144-41a0-bc8b-4877c2e1fef1" name="默认的" comment=""> <list default="true" id="0d3cb18d-e144-41a0-bc8b-4877c2e1fef1" name="默认的" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/LotteryPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/LotteryPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/MapUI.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/MapUI.ts" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -129,7 +133,7 @@ ...@@ -129,7 +133,7 @@
<workItem from="1612577003915" duration="21094000" /> <workItem from="1612577003915" duration="21094000" />
<workItem from="1612662929222" duration="40609000" /> <workItem from="1612662929222" duration="40609000" />
<workItem from="1613698993022" duration="22309000" /> <workItem from="1613698993022" duration="22309000" />
<workItem from="1613785579125" duration="6509000" /> <workItem from="1613785579125" duration="7288000" />
</task> </task>
<task id="LOCAL-00001" summary="斐乐消消乐"> <task id="LOCAL-00001" summary="斐乐消消乐">
<created>1612581213298</created> <created>1612581213298</created>
...@@ -341,7 +345,14 @@ ...@@ -341,7 +345,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1613792877469</updated> <updated>1613792877469</updated>
</task> </task>
<option name="localTasksCounter" value="31" /> <task id="LOCAL-00031" summary="m">
<created>1613792960890</created>
<option name="number" value="00031" />
<option name="presentableId" value="LOCAL-00031" />
<option name="project" value="LOCAL" />
<updated>1613792960890</updated>
</task>
<option name="localTasksCounter" value="32" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
......
{ {
"code": "000000", "code": "000000",
"data": { "data": {
"currentLevel": 1, "currentLevel": 99,
"topLevelVisitSuccess": true, "topLevelVisitSuccess": true,
"isDrawTopLevelPrize": false, "isDrawTopLevelPrize": false,
"power": 10, "power": 10,
......
...@@ -44,7 +44,6 @@ export class LotteryPanel extends Panel { ...@@ -44,7 +44,6 @@ export class LotteryPanel extends Panel {
this.addChild(new FYGE.Sprite(RES.getRes("lotteryReturnBtn.png"))) this.addChild(new FYGE.Sprite(RES.getRes("lotteryReturnBtn.png")))
.addEventListener(FYGE.MouseEvent.CLICK, () => { .addEventListener(FYGE.MouseEvent.CLICK, () => {
this.hidePanel(); this.hidePanel();
changeScene(MapScene);
}, this) }, this)
.position.set(0, 250) .position.set(0, 250)
//刷新奖品列表和摇奖列表 //刷新奖品列表和摇奖列表
...@@ -70,6 +69,7 @@ export class LotteryPanel extends Panel { ...@@ -70,6 +69,7 @@ export class LotteryPanel extends Panel {
} else { } else {
showToast('奖品发放失败\n请前往我的奖品处进行处理'); showToast('奖品发放失败\n请前往我的奖品处进行处理');
} }
this.data.callFun && this.data.callFun();
this.hidePanel(); this.hidePanel();
}, true }, true
); );
...@@ -94,6 +94,11 @@ export class LotteryPanel extends Panel { ...@@ -94,6 +94,11 @@ export class LotteryPanel extends Panel {
} }
} }
hidePanel() {
this.data.callFun && this.data.callFun();
super.hidePanel();
}
async updatePrizes() { async updatePrizes() {
showWaiting(); showWaiting();
const { data: prizeList } = await sendTbNet(TbNetName.getTopLevelPrizes/*, { level: this.data.level }*/); const { data: prizeList } = await sendTbNet(TbNetName.getTopLevelPrizes/*, { level: this.data.level }*/);
......
...@@ -3,13 +3,13 @@ import { Tools } from "../Tools"; ...@@ -3,13 +3,13 @@ import { Tools } from "../Tools";
import { RES } from "../../module/RES"; import { RES } from "../../module/RES";
import { changeScene, showPanel } from "../../module/ctrls"; import { changeScene, showPanel } from "../../module/ctrls";
import { MapScene } from "../scene/map/MapScene"; import { MapScene } from "../scene/map/MapScene";
import { LotteryPanel } from "./LotteryPanel";
import Container = FYGE.Container; import Container = FYGE.Container;
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
import Tween = FYGE.Tween; import Tween = FYGE.Tween;
import Ease = FYGE.Ease; import Ease = FYGE.Ease;
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import Button = FYGE.Button; import Button = FYGE.Button;
import { LotteryPanel } from "./LotteryPanel";
export class SuccessNoPrizePanel extends Panel { export class SuccessNoPrizePanel extends Panel {
get groupNames() { get groupNames() {
...@@ -83,7 +83,7 @@ export class SuccessNoPrizePanel extends Panel { ...@@ -83,7 +83,7 @@ export class SuccessNoPrizePanel extends Panel {
public goPrize() { public goPrize() {
// 去抽奖 // 去抽奖
showPanel(LotteryPanel); showPanel(LotteryPanel, { callFun: () => changeScene(MapScene) });
super.hidePanel(); super.hidePanel();
} }
......
...@@ -61,7 +61,7 @@ export default class MapUI extends Container { ...@@ -61,7 +61,7 @@ export default class MapUI extends Container {
break; break;
case this.clearanceBtn: case this.clearanceBtn:
showPanel(LotteryPanel) showPanel(LotteryPanel, { callFun: () => 0 })
break; break;
} }
} }
......
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