From fcd79434d1c40a6115a8daafaed31a66e5119f0b Mon Sep 17 00:00:00 2001 From: chenxi Date: Fri, 26 May 2023 15:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=83=E5=A4=A9=E4=B9=90=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/activity/seven_day/cell/task_cell.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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