Commit 88a11de5 authored by wildfirecode's avatar wildfirecode

1

parent 16e4ab76
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<e:Image source="boxbg_png" y="46.1" horizontalCenter="0" scale9Grid="93,413,564,43" height="783"/> <e:Image source="boxbg_png" y="46.1" horizontalCenter="0" scale9Grid="93,413,564,43" height="783"/>
<e:Image id="img" width="508" height="225" source="{data.url}" horizontalCenter="0" y="429.63" visible="false"/> <e:Image id="img" width="508" height="225" source="{data.url}" horizontalCenter="0" y="429.63" visible="false"/>
<e:Image id="img2" horizontalCenter="10.5" y="429.63" source="{data.url2}" scaleX="0.7" scaleY="0.7" visible="false"/> <e:Image id="img2" horizontalCenter="10.5" y="429.63" source="{data.url2}" scaleX="0.7" scaleY="0.7" visible="false"/>
<e:Image id="money" y="430.07" scaleX="0.6" scaleY="0.6" source="common_money_png" x="150" visible="false"/> <e:Image id="money" y="430.07" scaleX="0.6" scaleY="0.6" x="150" source="signprize元宝_png" visible="false"/>
<e:Image id="blood" y="432.67" horizontalCenter="1.5" source="common_blood_png" scaleX="0.7" scaleY="0.7" visible="false"/> <e:Image id="blood" y="432.67" horizontalCenter="1.5" source="common_blood_png" scaleX="0.7" scaleY="0.7" visible="false"/>
<e:Group id="numsgroup" x="396.38" y="432.27" visible="false"> <e:Group id="numsgroup" x="396.38" y="432.27" visible="false">
<e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0"/> <e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0"/>
......
...@@ -37,10 +37,8 @@ export default class BoxPanel extends Panel { ...@@ -37,10 +37,8 @@ export default class BoxPanel extends Panel {
const { categoryType, img, num, propType, realValue } = option;// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品 const { categoryType, img, num, propType, realValue } = option;// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this['propnums'].text = 'x1'; this['propnums'].text = 'x1';
this['propnums2'].text = 'x1';
if (num) { if (num) {
this['propnums'].text = 'x' + num; this['propnums'].text = 'x' + num;
this['propnums2'].text = 'x' + num;
} }
switch (categoryType) { switch (categoryType) {
case 2: case 2:
...@@ -53,10 +51,9 @@ export default class BoxPanel extends Panel { ...@@ -53,10 +51,9 @@ export default class BoxPanel extends Panel {
this.data.url2 = `common_prop${propType}_png`; this.data.url2 = `common_prop${propType}_png`;
break; break;
case 4: case 4:
this['numsgroup'].visible = false; this['numsgroup'].visible = true;
this['propnums2'].visible = true;
this['money'].visible = true; this['money'].visible = true;
this['propnums2'].text = realValue; this['propnums2'].text = `x${realValue}`;
break; break;
default: default:
this['img'].visible = true; this['img'].visible = true;
......
{ {
"success": 0, "success": 1,
"code": "0000000000", "code": "0000000000",
"desc": "OK", "desc": "OK",
"timestamp": 1572332426229, "timestamp": 1572332426229,
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"id": "41", "id": "41",
"day": null, "day": null,
"realValue":87, "realValue":87,
"categoryType": 2, "categoryType": 5,
"title": "游戏次数2", "title": "游戏次数2",
"rate": "10", "rate": "10",
"minValue": null, "minValue": null,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"success":true, "success":true,
"errorMsg":null, "errorMsg":null,
"code":"", "code":"",
"prizeType":"prop", "prizeType":"coin",
"prizeName":"奖品名称", "prizeName":"奖品名称",
"logo":"http://yun.duiba.com.cn/db_games/activity/game/guideImage/guide2.png", "logo":"http://yun.duiba.com.cn/db_games/activity/game/guideImage/guide2.png",
"prizeCount":11, "prizeCount":11,
......
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