Commit 4cee9345 authored by haiyoucuv's avatar haiyoucuv

asjghdfkaksjhsaft asxjcv bnot6qwuk

parent 619d7f3d
This diff is collapsed.
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
"code": "000000", "code": "000000",
"message": "成功", "message": "成功",
"data": { "data": {
"power": 100 "power": 100,
"isGiftPrizeLevel": true
} }
} }
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
"message": "成功", "message": "成功",
"data": { "data": {
"_id": "", "_id": "",
"name": "", "name": "aaa",
"type": 1, "type": 1,
"image": "", "image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png",
"drawStatus": "", "drawStatus": "",
"level": "" "level": "1"
} }
} }
{ {
"success": true, "success": true,
"code": "sit dolor quis", "code": "sit dolor quips",
"message": "nisi amet sunt Lorem", "message": "nisei amet sunt Lorem",
"data": { "data": {
"rule": "测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试", "rule": "测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试",
"currentLevel": 5, "currentLevel": 120,
"power": 101, "power": 101,
"tools": { "tools": {
"steps": 100, "steps": 100,
......
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import { PropType } from "../something/enum/PropType";
import { RES } from "../../module/RES";
import { Tools } from "../Tools";
import { getTbData, TbNetName } from "../TaoBaoNet";
import Tween = FYGE.Tween; import Tween = FYGE.Tween;
import Ease = FYGE.Ease; import Ease = FYGE.Ease;
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
import { PropType } from "../something/enum/PropType";
import { RES } from "../../module/RES";
import { changeScene } from "../../module/ctrls";
import { MapScene } from "../scene/map/MapScene";
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import Button = FYGE.Button; import Button = FYGE.Button;
import { Tools } from "../Tools";
const propImg = { const propImg = {
[PropType.BOOMS]: 'boomBtn.png', [PropType.BOOMS]: 'boomBtn.png',
...@@ -21,10 +20,6 @@ export class FesRedPrizePanel extends Panel { ...@@ -21,10 +20,6 @@ export class FesRedPrizePanel extends Panel {
return ['FesRedPrizePanel'] return ['FesRedPrizePanel']
} }
// get skinName() {
// return "SuccessPrizePanel"
// }
public showAni() { public showAni() {
if (this.isShowing) return; if (this.isShowing) return;
this.isShowing = true; this.isShowing = true;
...@@ -56,7 +51,8 @@ export class FesRedPrizePanel extends Panel { ...@@ -56,7 +51,8 @@ export class FesRedPrizePanel extends Panel {
.addEventListener(MouseEvent.CLICK, this.hidePanel, this) .addEventListener(MouseEvent.CLICK, this.hidePanel, this)
.position.set(165, 1045); .position.set(165, 1045);
this.img = this.addChild(new Sprite()); const res = getTbData(TbNetName.drawLotteryPrize);
this.img = this.addChild(Sprite.fromUrl(res.data.image));
this.img.anchorTexture.x = 0.5; this.img.anchorTexture.x = 0.5;
this.img.position.set(375, 693); this.img.position.set(375, 693);
this.img.width = this.img.height = 252; this.img.width = this.img.height = 252;
......
...@@ -89,7 +89,10 @@ export class StartPanelPrize extends Panel { ...@@ -89,7 +89,10 @@ export class StartPanelPrize extends Panel {
if (!success) return; if (!success) return;
Tools.propInfo.power = res.data.power; Tools.propInfo.power = res.data.power;
changeScene(PlayScene, {chapter: level}); changeScene(PlayScene, {
chapter: level,
isGiftPrizeLevel: res.data.isGiftPrizeLevel
});
this.hidePanel(); this.hidePanel();
} }
); );
......
...@@ -132,11 +132,13 @@ export class TaskPanel extends Panel { ...@@ -132,11 +132,13 @@ export class TaskPanel extends Panel {
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
GDispatcher.addEventListener(G_EVENT.ON_SHOW, this.updateTask, this);
GDispatcher.addEventListener(G_EVENT.UPDATE_TASK, this.updateTask, this); GDispatcher.addEventListener(G_EVENT.UPDATE_TASK, this.updateTask, this);
} }
removeEvents() { removeEvents() {
super.removeEvents(); super.removeEvents();
GDispatcher.removeEventListener(G_EVENT.ON_SHOW, this.updateTask, this);
GDispatcher.removeEventListener(G_EVENT.UPDATE_TASK, this.updateTask, this); GDispatcher.removeEventListener(G_EVENT.UPDATE_TASK, this.updateTask, this);
} }
} }
...@@ -167,6 +169,7 @@ class TaskItem extends Item { ...@@ -167,6 +169,7 @@ class TaskItem extends Item {
)); ));
this.desc.bold = true; this.desc.bold = true;
this.desc.position.set(145, 92); this.desc.position.set(145, 92);
} }
public initData(id: number, data: any) { public initData(id: number, data: any) {
......
This diff is collapsed.
...@@ -58,8 +58,6 @@ export class MapScene extends Scene { ...@@ -58,8 +58,6 @@ export class MapScene extends Scene {
Tools.baseInfo.loginAddPower = false; Tools.baseInfo.loginAddPower = false;
} }
// showPanel(FesRedPrizePanel);
} }
private updateMapCheck() { private updateMapCheck() {
......
...@@ -40,6 +40,7 @@ export class FesRedShootAni extends FYGE.Container { ...@@ -40,6 +40,7 @@ export class FesRedShootAni extends FYGE.Container {
} }
play(startP: number[], ele: Element, callback: Function) { play(startP: number[], ele: Element, callback: Function) {
this.reset() this.reset()
this.light.visible = true; this.light.visible = true;
......
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