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

1

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