Commit d46f4eca authored by zjz1994's avatar zjz1994

调整显示转盘抽奖券底黄图

parent 2cb9c481
...@@ -37,22 +37,22 @@ export default class TurnPrizePanel extends Panel { ...@@ -37,22 +37,22 @@ export default class TurnPrizePanel extends Panel {
updateOption(option: any) { updateOption(option: any) {
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["prop"].visible = this['numsgroup'].visible = this['img'].visible = false; this["bg0"].visible = this["prop"].visible = this['numsgroup'].visible = this['img'].visible = false;
this['propnums'].text = 'x1'; this['propnums'].text = 'x1';
if(num) if(num)
this['propnums'].text = 'x' + num; this['propnums'].text = 'x' + num;
switch (categoryType) { switch (categoryType) {
case 2: case 2:
this["prop"].source = 'common_blood_png'; this["prop"].source = 'common_blood_png';
this['numsgroup'].visible = this["prop"].visible = true; this["bg0"].visible = this['numsgroup'].visible = this["prop"].visible = true;
break; break;
case 3: case 3:
this["prop"].source = `hbPrize_icon${propType}_png`; this["prop"].source = `hbPrize_icon${propType}_png`;
this['numsgroup'].visible= this["prop"].visible = true; this["bg0"].visible = this['numsgroup'].visible= this["prop"].visible = true;
break; break;
case 4: case 4:
this["prop"].source = 'common_yuanbao_png'; this["prop"].source = 'common_yuanbao_png';
this['numsgroup'].visible = this["prop"].visible = true; this["bg0"].visible = this['numsgroup'].visible = this["prop"].visible = true;
this['propnums'].text = '×' + realValue; this['propnums'].text = '×' + realValue;
break; break;
default: default:
......
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