Commit be52bb75 authored by 邱旭's avatar 邱旭

1

parent 6c314a4a
...@@ -53,8 +53,9 @@ export class MyExmlPlugin extends ExmlPlugin2 implements plugins.Command { ...@@ -53,8 +53,9 @@ export class MyExmlPlugin extends ExmlPlugin2 implements plugins.Command {
'cutTimeFont.png', 'cutTimeFont.png',
'sharenums.png', 'sharenums.png',
'nums.png', 'nums.png',
'nums3.png',
'nums2.png', 'nums2.png',
'nums3.png',
'nums4.png',
'hbCutTimeFont.png', 'hbCutTimeFont.png',
'hbGameScoreFont.png', 'hbGameScoreFont.png',
'hbGameCutTimeFont.png', 'hbGameCutTimeFont.png',
......
...@@ -91,13 +91,12 @@ class TaskCenterItem extends eui.ItemRenderer { ...@@ -91,13 +91,12 @@ class TaskCenterItem extends eui.ItemRenderer {
let taskConfig = config.taskConfs || []; let taskConfig = config.taskConfs || [];
let has = false; this.moneyGroup.visible = false;
for(let task of taskConfig) { for(let task of taskConfig) {
if(this.data.subActivityId == task.taskMark) { if(this.data.subActivityId == task.taskMark) {
for(let prize of task.prizeList) { for(let prize of task.prizeList) {
if(prize.categoryType == 4 if(prize.categoryType == 4
&& prize.minValue == prize.maxValue) { && prize.minValue == prize.maxValue) {
has = true;
this.moneyGroup.visible = true; this.moneyGroup.visible = true;
this.moneyCount.text = ${prize.maxValue}`; this.moneyCount.text = ${prize.maxValue}`;
this.moneyGroup.x = this.remark.x + this.remark.width + 20; this.moneyGroup.x = this.remark.x + this.remark.width + 20;
...@@ -106,10 +105,6 @@ class TaskCenterItem extends eui.ItemRenderer { ...@@ -106,10 +105,6 @@ class TaskCenterItem extends eui.ItemRenderer {
} }
} }
if(!has) {
this.moneyGroup.visible = false;
}
this.setBtn(); // 设置按钮 this.setBtn(); // 设置按钮
} }
......
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