Commit 993e23a2 authored by haiyoucuv's avatar haiyoucuv

1

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