2026.1.23 符文商店打开问题
This commit is contained in:
parent
7c17812071
commit
3969ad9913
@ -84,7 +84,7 @@ end
|
||||
|
||||
function UIMainMenuView:OnBtn_RuneShop()
|
||||
self:UIClose()
|
||||
local params = { shopType = Enum.RuneShopType.Gifts, shopSubType = Enum.RuneShopSubType.Week }
|
||||
local params = { shopType = Enum.RuneShopType.Gifts, shopSubType = Enum.RuneShopSubType.Daily }
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIRuneShop,params)
|
||||
end
|
||||
|
||||
|
||||
@ -278,6 +278,19 @@ function UIRuneShopView:InitToggle()
|
||||
-- 根据当前shopType设置底部标签页默认选中索引
|
||||
local shopType = self.controller:GetShopType()
|
||||
local shopSubType = self.controller:GetShopSubType()
|
||||
|
||||
-- 根据当前shopSubType设置礼包标签页默认选中索引
|
||||
local giftDefaultIndex = 1
|
||||
if shopSubType == Enum.RuneShopSubType.Week then
|
||||
giftDefaultIndex = 2 -- 周礼包
|
||||
elseif shopSubType == Enum.RuneShopSubType.Month then
|
||||
giftDefaultIndex = 3 -- 月礼包
|
||||
end
|
||||
|
||||
CommonUtil.CreateToggleMouduleOnlyBtns(self,
|
||||
self.giftToggleData, self.giftTabBar.toggleGroup, giftDefaultIndex,
|
||||
self.OnClickGiftTab, self)
|
||||
|
||||
local bottomDefaultIndex = 1
|
||||
if shopType == Enum.RuneShopType.Gifts then
|
||||
if shopSubType == Enum.RuneShopSubType.Gold then
|
||||
@ -294,17 +307,7 @@ function UIRuneShopView:InitToggle()
|
||||
|
||||
|
||||
|
||||
-- 根据当前shopSubType设置礼包标签页默认选中索引
|
||||
local giftDefaultIndex = 1
|
||||
if shopSubType == Enum.RuneShopSubType.Week then
|
||||
giftDefaultIndex = 2 -- 周礼包
|
||||
elseif shopSubType == Enum.RuneShopSubType.Month then
|
||||
giftDefaultIndex = 3 -- 月礼包
|
||||
end
|
||||
|
||||
CommonUtil.CreateToggleMouduleOnlyBtns(self,
|
||||
self.giftToggleData, self.giftTabBar.toggleGroup, giftDefaultIndex,
|
||||
self.OnClickGiftTab, self)
|
||||
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user