Commit 993e23a2 authored by haiyoucuv's avatar haiyoucuv

1

parent c81f5ae7
...@@ -11,6 +11,7 @@ import { MapScene } from "../scene/map/MapScene"; ...@@ -11,6 +11,7 @@ import { MapScene } from "../scene/map/MapScene";
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import Button = FYGE.Button; import Button = FYGE.Button;
import Texture = FYGE.Texture; import Texture = FYGE.Texture;
import { sendTbNet, TbNetName } from "../TaoBaoNet";
const propImg = { const propImg = {
[PropType.BOOMS]: 'boomBtn.png', [PropType.BOOMS]: 'boomBtn.png',
...@@ -32,8 +33,8 @@ export class SuccessPrizePanel extends Panel { ...@@ -32,8 +33,8 @@ export class SuccessPrizePanel extends Panel {
this.isShowing = true; this.isShowing = true;
this.anchor.set(375, 812); this.anchor.set(375, 812);
Tween.get(this) Tween.get(this)
.set({scaleX: 0, scaleY: 0}) .set({ scaleX: 0, scaleY: 0 })
.to({scaleX: 1, scaleY: 1}, 400, Ease.backOut) .to({ scaleX: 1, scaleY: 1 }, 400, Ease.backOut)
.call(() => { .call(() => {
this.isShowing = false; this.isShowing = false;
}); });
...@@ -48,7 +49,7 @@ export class SuccessPrizePanel extends Panel { ...@@ -48,7 +49,7 @@ export class SuccessPrizePanel extends Panel {
initUi() { initUi() {
const {stars, tool, prize} = this.data; const { stars, tool, prize } = this.data;
this.tipsTex.textWidth = 750; this.tipsTex.textWidth = 750;
this.tipsTex.x = 0; this.tipsTex.x = 0;
...@@ -110,6 +111,13 @@ export class SuccessPrizePanel extends Panel { ...@@ -110,6 +111,13 @@ export class SuccessPrizePanel extends Panel {
private lookPrize() { private lookPrize() {
/// TODO 查看奖品 /// TODO 查看奖品
console.log('查看奖品'); console.log('查看奖品');
sendTbNet(
TbNetName.navigateTo,
{ url: '/pages/myprize/myprize' },
() => {
},
true
);
changeScene(MapScene); changeScene(MapScene);
super.hidePanel(); super.hidePanel();
} }
...@@ -118,7 +126,7 @@ export class SuccessPrizePanel extends Panel { ...@@ -118,7 +126,7 @@ export class SuccessPrizePanel extends Panel {
* 挑战满星 * 挑战满星
*/ */
private again() { private again() {
changeScene(MapScene, {level: this.data.level}); changeScene(MapScene, { level: this.data.level });
super.hidePanel(); super.hidePanel();
} }
...@@ -129,7 +137,7 @@ export class SuccessPrizePanel extends Panel { ...@@ -129,7 +137,7 @@ export class SuccessPrizePanel extends Panel {
if (this.data.level == 120) { if (this.data.level == 120) {
changeScene(MapScene); changeScene(MapScene);
} else { } else {
changeScene(MapScene, {level: this.data.level + 1}); changeScene(MapScene, { level: this.data.level + 1 });
} }
super.hidePanel(); super.hidePanel();
} }
......
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