From a018bbf7486788b2ae12d37566f44be105ba7a5a Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Sat, 11 Oct 2025 16:45:49 +0800 Subject: [PATCH] . --- .../activity/act_sprint/act_sprint_const.lua | 27 +++++++------------ .../common/comp/act_page_btns_comp.lua | 1 + 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/lua/app/module/activity/act_sprint/act_sprint_const.lua b/lua/app/module/activity/act_sprint/act_sprint_const.lua index 4a1cc725..102f2b0b 100644 --- a/lua/app/module/activity/act_sprint/act_sprint_const.lua +++ b/lua/app/module/activity/act_sprint/act_sprint_const.lua @@ -36,13 +36,6 @@ ActSprintConst.REFRESH_TYPE = { ONCE = 3, } -ActSprintConst.MAIN_PAGE_TYPE = { - STANDARD = 1, - GIFT = 2, - TASK = 3, - LOGIN = 4, -} - ActSprintConst.MAIN_PAGE_BTN_ICON_1 = { [ActSprintConst.ACT_ID.SUMMON_ALL] = { [1] = "act_common_btn_27_1", @@ -61,18 +54,18 @@ ActSprintConst.MAIN_PAGE_BTN_ICON_2 = { }, } -ActSprintConst.MAIN_PAGE_BTN_DESC = { - [ActSprintConst.MAIN_PAGE_TYPE.STANDARD] = "ACT_GOGOGO_DESC_1", - [ActSprintConst.MAIN_PAGE_TYPE.GIFT] = "ACT_GOGOGO_DESC_10", - [ActSprintConst.MAIN_PAGE_TYPE.TASK] = "ACT_GOGOGO_DESC_11", - [ActSprintConst.MAIN_PAGE_TYPE.LOGIN] = "ACT_GOGOGO_DESC_20", +ActSprintConst.BOTTOM_PAGE = { + SCORE_TASK = 1, + BOUNTY = 2, + GIFT = 3, + TASK = 4, } -ActSprintConst.BOTTOM_PAGE = { - SCORE_TASK = 4, - BOUNTY = 3, - GIFT = 2, - TASK = 1, +ActSprintConst.MAIN_PAGE_BTN_DESC = { + [ActSprintConst.BOTTOM_PAGE.SCORE_TASK] = "ACT_GOGOGO_DESC_1", + [ActSprintConst.BOTTOM_PAGE.GIFT] = "ACT_GOGOGO_DESC_10", + [ActSprintConst.BOTTOM_PAGE.TASK] = "ACT_GOGOGO_DESC_11", + [ActSprintConst.BOTTOM_PAGE.BOUNTY] = "ACT_GOGOGO_DESC_20", } ActSprintConst.COMP = { diff --git a/lua/app/ui/activity/common/comp/act_page_btns_comp.lua b/lua/app/ui/activity/common/comp/act_page_btns_comp.lua index d4d45ecb..a633aa82 100755 --- a/lua/app/ui/activity/common/comp/act_page_btns_comp.lua +++ b/lua/app/ui/activity/common/comp/act_page_btns_comp.lua @@ -36,6 +36,7 @@ function PageBtnsComp:refresh(list, index) if index then self.scrollRect:moveToIndex(index) end + self.baseObject:setSizeDeltaX(#self.list * 116) end return PageBtnsComp \ No newline at end of file