Major Update - 2.0.0.143
EN: 2.0.0.143 CN: 2.0.0.142 JP: 2.0.0.145 KR: 2.0.0.150
This commit is contained in:
@@ -54,18 +54,25 @@ function MallShopCtrl:RefreshData(tbList)
|
||||
end
|
||||
end
|
||||
self.nPageCount = #self.tbPages
|
||||
local nTab
|
||||
if self._panel.nDefaultId then
|
||||
for k, v in ipairs(self.tbPages) do
|
||||
if v.Id == self._panel.nDefaultId then
|
||||
self.nCurTab = k
|
||||
nTab = k
|
||||
self._panel.nDefaultId = nil
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if not self.tbPages[self.nCurTab] or self.nSelectPage and self.tbPages[self.nCurTab].Id ~= self.nSelectPage then
|
||||
self.nCurTab = 1
|
||||
if nTab == nil and self.nSelectPage then
|
||||
for k, v in ipairs(self.tbPages) do
|
||||
if v.Id == self.nSelectPage then
|
||||
nTab = k
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
self.nCurTab = nTab or 1
|
||||
self.nSelectPage = self.tbPages[self.nCurTab].Id
|
||||
end
|
||||
function MallShopCtrl:RefreshTab()
|
||||
@@ -203,6 +210,7 @@ function MallShopCtrl:ResetTab()
|
||||
end
|
||||
self.nCurTab = 1
|
||||
self.ctrlTab[self.nCurTab]:SetSelect(true, 1)
|
||||
self.nSelectPage = self.tbPages[self.nCurTab] and self.tbPages[self.nCurTab].Id or nil
|
||||
end
|
||||
function MallShopCtrl:Awake()
|
||||
self.tbGridCtrl = {}
|
||||
|
||||
Reference in New Issue
Block a user