Commit 4cee9345 authored by haiyoucuv's avatar haiyoucuv

asjghdfkaksjhsaft asxjcv bnot6qwuk

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