Commit 39fefee6 authored by zhangjinzhou's avatar zhangjinzhou

修改奖励图大小

parent 35a8f01c
...@@ -12,8 +12,18 @@ export default class PrizePanel extends Panel { ...@@ -12,8 +12,18 @@ export default class PrizePanel extends Panel {
const lottery = DataManager.ins.getCustomOrderStatusData.lottery; const lottery = DataManager.ins.getCustomOrderStatusData.lottery;
this.data = lottery; this.data = lottery;
this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`; this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
this.img.width = this.picBigWidth; // let maxheight = 220;
this.img.height = this.picBigWidth / this.bigPicRatio; // let imgwid = this.img.width;
// let imghei = this.img.height;
// console.error('图片信息==》',imghei,imgwid,this.img,this.img['$bitmapHeight'],this.img['$bitmapWidth']);
// if(imghei>maxheight){
// imgwid *= 220/imghei;
// imghei = maxheight;
// this.img.width = imgwid;
// this.img.height = imghei;
// }
// this.img.width = this.picBigWidth;
// this.img.height = this.picBigWidth / this.bigPicRatio;
showCustomLog(lottery); showCustomLog(lottery);
} }
......
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Image id="img" y="529" touchEnabled="true" source="{data.img}" width="512" height="240" x="119"/> <e:Group width="511" height="239" x="121" y="530" anchorOffsetX="0" anchorOffsetY="0">
<e:Image id="img" touchEnabled="true" source="{data.img}" scaleX="1" scaleY="1" horizontalCenter="0" verticalCenter="0" fillMode="scale" width="370" height="230"/>
</e:Group>
<e:Label text="{data.name}" y="789" horizontalCenter="0" width="508" textAlign="center" size="28" textColor="0x9f3804"/> <e:Label text="{data.name}" y="789" horizontalCenter="0" width="508" textAlign="center" size="28" textColor="0x9f3804"/>
<e:Label y="360" horizontalCenter="0" width="508" textAlign="center" size="40" text="{data.score}" textColor="0xff3e02" verticalAlign="middle"/> <e:Label y="360" horizontalCenter="0" width="508" textAlign="center" size="40" text="{data.score}" textColor="0xff3e02" verticalAlign="middle"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -18,7 +18,6 @@ export default (cb) => { ...@@ -18,7 +18,6 @@ export default (cb) => {
}, DataManager.ins.doJoinPlugDrawData.orderId, }, DataManager.ins.doJoinPlugDrawData.orderId,
() => DataManager.ins.getPlugOrderStatusData.result == 0 () => DataManager.ins.getPlugOrderStatusData.result == 0
) )
} }
}, window['revivePlugId'], true); }, window['revivePlugId'], 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