细节完善
This commit is contained in:
parent
78c18dac68
commit
ba449382a9
@ -52,7 +52,9 @@ function ActivityManager:reqSummerData()
|
||||
end
|
||||
|
||||
function ActivityManager:rspSummerData(result)
|
||||
DataManager.ActivityData:onGetActData(result.summer)
|
||||
if result.summer then
|
||||
DataManager.ActivityData:onGetActData(result.summer)
|
||||
end
|
||||
end
|
||||
|
||||
-- 请求夏日活动任务奖励
|
||||
@ -96,7 +98,7 @@ function ActivityManager:reqBuyBountyLevel()
|
||||
costNum = costNum,
|
||||
okFunc = function()
|
||||
local id = DataManager.ActivityData:getBountyCfg()[DataManager.ActivityData:getBountyLevel() + 1].id
|
||||
Logger.logHighlight("购买战令等级:"..id)
|
||||
-- Logger.logHighlight("购买战令等级:"..id)
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.SummerBountyClaimByDiamondReq, {id = id}, {}, self.rspBuyBountyLevel, BIReport.ITEM_GET_TYPE.ACTIVITY_BOUNTY_LEVEL)
|
||||
end,
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function ActivityBountyComp:refresh()
|
||||
self.imgProg.value = cur / total
|
||||
self.txScore:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_DESC_1))
|
||||
self.txProg:setText(cur .. "/" .. total)
|
||||
self.txLv:setText("LV")
|
||||
self.txLv:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_DESC_12))
|
||||
self.txLvNum:setText(DataManager.ActivityData:getBountyLevel())
|
||||
|
||||
-- 档位展示
|
||||
|
||||
@ -17,7 +17,7 @@ function ActivityTaskComp:refresh()
|
||||
self.imgProg.value = cur / total
|
||||
self.txScore:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_DESC_1))
|
||||
self.txProg:setText(cur .. "/" .. total)
|
||||
self.txLv:setText("LV")
|
||||
self.txLv:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_DESC_12))
|
||||
self.txLvNum:setText(DataManager.ActivityData:getBountyLevel())
|
||||
|
||||
-- 任务列表
|
||||
|
||||
@ -17,16 +17,16 @@ function ActivityUI:onPressBackspace()
|
||||
end
|
||||
|
||||
function ActivityUI:ctor()
|
||||
self.panelType = GConst.ActivityConst.PANEL_TYPE.TASK -- 默认进入任务页签
|
||||
|
||||
if self.panelType == nil and DataManager.ActivityData:hasTaskRedPoint() then
|
||||
if DataManager.ActivityData:hasTaskRedPoint() then
|
||||
self.panelType = GConst.ActivityConst.PANEL_TYPE.TASK
|
||||
elseif self.panelType == nil and DataManager.ActivityData:hasBountyRedPoint() then
|
||||
elseif DataManager.ActivityData:hasBountyRedPoint() then
|
||||
self.panelType = GConst.ActivityConst.PANEL_TYPE.BOUNTY
|
||||
elseif self.panelType == nil and DataManager.ActivityData:hasSkinRedPoint() then
|
||||
elseif DataManager.ActivityData:hasSkinRedPoint() then
|
||||
self.panelType = GConst.ActivityConst.PANEL_TYPE.SKIN
|
||||
elseif self.panelType == nil and DataManager.ActivityData:hasHeroRedPoint() then
|
||||
elseif DataManager.ActivityData:hasHeroRedPoint() then
|
||||
self.panelType = GConst.ActivityConst.PANEL_TYPE.HERO
|
||||
else
|
||||
self.panelType = GConst.ActivityConst.PANEL_TYPE.TASK -- 默认进入任务页签
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -305,7 +305,7 @@ end
|
||||
-- 获取战令等级
|
||||
function ActivityData:getBountyLevel()
|
||||
if self.actData == nil or self.actData.level == nil then
|
||||
return 0
|
||||
return 1
|
||||
end
|
||||
return self.actData.level
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user