Commit 40607a62 authored by 邱旭's avatar 邱旭

1

parent 0a4a39b9
......@@ -25,19 +25,19 @@ export default class PrizePanel extends Panel {
this.img.visible = false;
this.propGroup.visible = true;
this.prop.source = 'prize_blood_png';
this.nums.text = ${num}`;
this.nums.text = ${num || 1}`;
break;
case 3:
this.img.visible = false;
this.propGroup.visible = true;
this.prop.source = `prize_icon${propType}_png`;
this.nums.text = ${num}`;
this.nums.text = ${num || 1}`;
break;
case 4:
this.img.visible = false;
this.propGroup.visible = true;
this.prop.source = 'prize_money_png';
this.nums.text = ${realValue}`;
this.nums.text = ${realValue || 1}`;
break;
default:
this.img.visible = true;
......
......@@ -62,14 +62,14 @@ export default class TaskCenterPrize extends Panel {
case 2:
this.numsgroup.visible = true;
this.prop.visible = true;
this.nums.text = '×' + num;
this.nums.text = '×' + (num || 1);
this.prop.source = 'taskPrize_blood_png';
this.tipsLabel.text = '继续完成任务可以获得更多体力哦~';
break;
case 3:
this.numsgroup.visible = true;
this.prop.visible = true;
this.nums.text = '×' + num;
this.nums.text = '×' + (num || 1);
this.prop.source = `taskPrize_icon${propType}_png`;
this.tipsLabel.text = '继续完成任务可以获得更多道具哦~';
break;
......@@ -77,7 +77,7 @@ export default class TaskCenterPrize extends Panel {
case 4:
this.numsgroup.visible = true;
this.prop.visible = true;
this.nums.text = '×' + realValue;
this.nums.text = '×' + (realValue || 1);
this.prop.source = 'taskPrize_money_png';
this.tipsLabel.text = '继续完成任务可以获得更多元宝哦~';
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