七天乐打开界面的时候自动去最新的天数
This commit is contained in:
parent
43733762a0
commit
40fef6069a
@ -21,7 +21,12 @@ function SevenDayUI:getCurrencyParams()
|
||||
end
|
||||
|
||||
function SevenDayUI:ctor()
|
||||
self.day = 1
|
||||
self.day = DataManager.SevenDayData:getActDay()
|
||||
if self.day < 0 then
|
||||
self.day = 1
|
||||
elseif self.day > 7 then
|
||||
self.day = 7
|
||||
end
|
||||
end
|
||||
|
||||
function SevenDayUI:onLoadRootComplete()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user