Commit 510c01d1 authored by wildfirecode's avatar wildfirecode

2

parent 5e4b48bf
......@@ -251,7 +251,7 @@
"bindingDataTestObj": [
{
"key": "data.url",
"value": "turnprize_icon1_png"
"value": "turnprize_icon2_png"
}
]
},
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="BackSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16e0235c541"/>
<e:Image source="backbg_png" scale9Grid="93,550,564,42" y="-105" horizontalCenter="0"/>
<e:Image y="-20.27" horizontalCenter="0" x="10" source=""/>
<e:Image id="img" width="508" height="225" source="{data.url}" horizontalCenter="0" y="377.76" visible="false"/>
<e:Image source="backbg_png" scale9Grid="93,550,564,42" y="-107" horizontalCenter="0"/>
<e:Image source="commom_prop_bg_png" y="456.76" horizontalCenter="0"/>
<e:Image id="img" source="{data.url}" y="503.76" x="321" visible="false"/>
<e:Image id="money" source="signprize元宝_png" y="368.2" horizontalCenter="0" scaleX="0.8" scaleY="0.8" visible="false"/>
<e:Image id="blood" source="singprize体力_png" y="330.8" horizontalCenter="0"/>
<e:Group id="numsgroup" x="396.38" y="376.4">
<e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0"/>
<e:Label id="propnums" text="X8" size="22" horizontalCenter="0" verticalCenter="0" verticalAlign="middle" textAlign="center"/>
</e:Group>
<e:Button id="closeBtn" label="" x="617" y="271">
<e:Image id="blood" source="singprize体力_png" y="330.8" horizontalCenter="0" visible="false"/>
<e:Image id="propImg" source="{data.url}" y="507.76" x="283"/>
<e:Label id="propnums" text="X8" size="50" horizontalCenter="58" verticalCenter="-41" verticalAlign="middle" textAlign="center" textColor="0xc17343" fontFamily="FZY3JW" x="510.38" y="534.4" bold="true"/>
<e:Button id="closeBtn" label="" x="605" y="305">
<e:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing">
<e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png" source.disabled="closeCommonBtn_png"/>
......@@ -18,7 +16,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="inviteBtn" label="" y="720.45" horizontalCenter="12">
<e:Button id="inviteBtn" label="" y="786.45" horizontalCenter="12">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="back按钮 副本 91_png" source.down="back按钮 副本 91_png" source.disabled="back按钮 副本 91_png"/>
......@@ -26,5 +24,5 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Component y="929.94" skinName="ADSmallSkin" x="68"/>
<e:Component y="929.94" skinName="ADSmallSkin" x="68" visible="false"/>
</e:Skin>
\ No newline at end of file
......@@ -32,21 +32,22 @@ export default class BackPanel extends Panel {
updateOption(option: any) {
const { categoryType, img, num, propType,realValue } = option;// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this['propnums'].visible = false;
this['propnums'].text = 'x1';
if(num)
this['propnums'].text = 'x' + num;
switch (categoryType) {
case 2:
this['blood'].visible = true;
this['numsgroup'].visible = true;
this['propnums'].visible = true;
break;
case 3:
this['numsgroup'].visible = true;
this['propnums'].visible = true;
this['img'].visible = true;
this.data.url = `turnprize_icon${propType}_png`;
break;
case 4:
this['numsgroup'].visible = true;
this['propnums'].visible = true;
this['money'].visible = true;
this['propnums'].text = 'x' + realValue;
break;
......
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