parent
7bc3a3d460
commit
24363d5c03
|
@ -754,9 +754,10 @@ end
|
|||
|
||||
--检测15日登陆活动预告是否显示
|
||||
function this.FifteenNoticeShow()
|
||||
if not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGiftNotice) then
|
||||
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGiftNotice)
|
||||
if id and id > 0 then
|
||||
this.fifteenTip.gameObject:SetActive(true)
|
||||
local activityData=ActivityGiftManager.GetActivityInfoByType(6402)
|
||||
local activityData=ActivityGiftManager.GetActivityInfoByType(id)
|
||||
if activityData then
|
||||
--local day=()/86400
|
||||
local day=floor((activityData.endTime - GetTimeStamp())/86400)
|
||||
|
@ -766,8 +767,6 @@ function this.FifteenNoticeShow()
|
|||
else
|
||||
this.fifteenTip.gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
@ -1013,7 +1012,6 @@ function this:OnShow()
|
|||
this:OnChangeTitleOrRideOrSkin()
|
||||
--检测主城六星入口是否显示
|
||||
this.CheckSixStarGoShow()
|
||||
this.FifteenNoticeShow()
|
||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowRight, panelType = PanelType.Main })
|
||||
this.BtView:OnOpen(self, { sortOrder = self.sortingOrder, panelType = PanelTypeView.MainCity })
|
||||
|
||||
|
|
Loading…
Reference in New Issue