Commit c4549377 authored by wildfirecode's avatar wildfirecode

1

parent 23f16ff6
......@@ -12,18 +12,12 @@ export default class PrizePanel extends Panel {
_level;
start(data) {
super.start();
// const lottery = DataManager.ins.getCustomOrderStatusData.lottery;
// this.data = lottery;
// this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
// this.img.width = this.picBigWidth;
// this.img.height = this.picBigWidth / this.bigPicRatio;
// showCustomLog(lottery);
setGray(this['pica']);
setGray(this['picb']);
setGray(this['picc']);
this._level = parseInt(data.level + '');
const itemid = DataManager.ins.getData('getPlugOrderStatus').lottery.itemId;
this.data.img = `http://yun.duiba.com.cn/db_games/0827/${itemid}.png`;
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
this['shareBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(15));
......@@ -49,19 +43,21 @@ export default class PrizePanel extends Panel {
NetManager.ins.showLog(getlogItem(15));
}
setStar(nums: number) {
this['pic1'].visible=this['pic2'].visible=this['pic3'].visible=false
if (nums == 0) {
setGray(this['pic1']);
setGray(this['pic2']);
setGray(this['pic3']);
}
if (nums == 1) {
setGray(this['pic2']);
setGray(this['pic3']);
this['pic1'].visible=true;
}
if (nums == 2) {
setGray(this['pic3']);
this['pic1'].visible=true;
this['pic2'].visible=true;
}
if (nums == 3) {
this['pic1'].visible=true;
this['pic2'].visible=true;
this['pic3'].visible=true;
}
}
......
......@@ -27,7 +27,10 @@
</e:skinName>
</e:Button>
<e:Image id="img" y="502" touchEnabled="true" source="{data.img}" width="512" height="240" x="117"/>
<e:Image id="picb" source="点亮 副本 2_png" x="142" y="191"/>
<e:Image id="pica" source="点亮 副本 2_png" x="608" y="191" scaleX="-1"/>
<e:Image id="picc" source="点亮_png" y="142" x="280"/>
<e:Image id="pic1" source="点亮 副本 2_png" x="142" y="191"/>
<e:Image id="pic3" source="点亮 副本 2_png" x="608" y="191" scaleX="-1"/>
<e:Image id="pic2" source="点亮_png" y="142" horizontalCenter="0"/>
<e:Image id="pic2" source="点亮_png" y="142" x="280"/>
</e:Skin>
\ No newline at end of file
......@@ -25,9 +25,13 @@ export default class MapScene extends Scene {
async start(data?) {
super.start();
// setTimeout(() => {
// PanelCtrl.instance.show('failed',{level:1})
// }, 2000);
NetManager.ins.hc_submit(()=>{},1,1,null,'');
NetManager.ins.getPlugOrderStatus(()=>{},1,()=>{return false})
setTimeout(() => {
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{level:1})
}, 2000);
this._data = data;
//滚动的背景变黑
this['rectbg'].height = this.stage.stageHeight;
......
......@@ -12,6 +12,6 @@
"errorMsg":null,
"success":true
},
"stars":3
"stars":2
}
}
\ No newline at end of file
{
"result": 0,
"result": 1,
"lotteryCode": 1,
"success": true,
"lottery": {
......
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