Commit d46f4eca authored by zjz1994's avatar zjz1994

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

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