diff --git a/lua/app/ui/activity/seven_day/cell/task_cell.lua b/lua/app/ui/activity/seven_day/cell/task_cell.lua index 137b8e28..59011440 100644 --- a/lua/app/ui/activity/seven_day/cell/task_cell.lua +++ b/lua/app/ui/activity/seven_day/cell/task_cell.lua @@ -16,7 +16,7 @@ function TaskCell:init() end) self.btnGreyImg = uiMap["task_cell.bg.cliam_btn.grey"] self.mask = uiMap["task_cell.bg.mask"] - uiMap["task_cell.bg.cliam_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM)) + self.cliamBtnTx = uiMap["task_cell.bg.cliam_btn.text"] uiMap["task_cell.bg.mask.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.STR_COMPLETED)) end @@ -41,8 +41,12 @@ function TaskCell:refresh(id) self.sliderTx:setText(count .. "/" .. totalCount) self.btnGreyImg:setVisible(not canClaimTask) - self.mask:setVisible(collected) + if collected then + self.cliamBtnTx:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_DONE)) + else + self.cliamBtnTx:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_CLAIM)) + end end return TaskCell \ No newline at end of file