Commit b987f632 authored by wildfirecode's avatar wildfirecode

1

parent 1d037462
......@@ -5,9 +5,9 @@
<e:Image id="combglight1" source="combglight_png" y="385.32" anchorOffsetX="375" anchorOffsetY="418" horizontalCenter="0"/>
<e:Image y="-145.5" source="hbPrize_bg_png" horizontalCenter="1"/>
<e:Image id="img" width="518" height="230" source="{data.url}" y="516.3" horizontalCenter="0"/>
<e:Image id="prop" scaleX="1" scaleY="1" horizontalCenter="-63.5" source="taskPrize_money_png" verticalCenter="15.5"/>
<e:Image source="hbp_bg_png" y="517.96" horizontalCenter="0"/>
<e:Group id="numsgroup" x="384.4" anchorOffsetX="0" width="188" anchorOffsetY="0" height="62" verticalCenter="16" visible="false">
<e:Image id="bg" source="hbp_bg_png" y="517.96" horizontalCenter="0"/>
<e:Image id="prop" scaleX="1" scaleY="1" horizontalCenter="-63.5" verticalCenter="15.5" source=""/>
<e:Group id="numsgroup" x="384.4" anchorOffsetX="0" width="188" anchorOffsetY="0" height="62" verticalCenter="16">
<e:Label id="nums" text="×8" size="48" verticalCenter="0" verticalAlign="middle" textAlign="center" fontFamily="FZY3JW" textColor="0xC17343" left="0" bold="true"/>
</e:Group>
<e:Image id="money" source="signprize元宝_png" y="491.4" scaleX="0.8" scaleY="0.8" horizontalCenter="-3" visible="false"/>
......
......@@ -42,9 +42,9 @@ export default class HbPrize extends Panel {
updateOption(option: any) {
const { categoryType, img, num, propType, realValue } = option;// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this['propnums'].text = '×1';
this['nums'].text = '×1';
if (num)
this['propnums'].text = '×' + num;
this['nums'].text = '×' + num;
switch (categoryType) {
case 2:
......@@ -61,10 +61,12 @@ export default class HbPrize extends Panel {
this.prop.source = 'hbPrize_money_png';
this['numsgroup'].visible = true;
// this['money'].visible = true;
this['propnums'].text = '×' + realValue;
this['nums'].text = '×' + realValue;
break;
default:
this['bg'].visible=false;
this['img'].visible = true;
this['nums'].visible=false;
this.data.url = img;
break;
}
......
......@@ -7,16 +7,16 @@
"option": {
"id": "224",
"day": null,
"categoryType": 3,
"categoryType": 2,
"title": "炸弹",
"rate": "50",
"minValue": null,
"maxValue": null,
"coinType": null,
"realValue": null,
"realValue": 111,
"propType": 3,
"num": null,
"img": "",
"num": 3,
"img": "//yun.dui88.com/images/201910/dx04j91xfk.gif",
"appItemId": null,
"name": "",
"value": ""
......
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