修复第四周活动二级弹窗显示错误

dev_chengFeng
JieLing 2020-09-28 11:33:49 +08:00
parent 170b706504
commit e5b42a0840
1 changed files with 26 additions and 16 deletions

View File

@ -48,26 +48,36 @@ function this:OnShow(_parent,...)
var=PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.Ten
local d=RecruitManager.GetExpendData(RecruitType.Single)
this.rootText.text = string.format(Language[12373],d[2])
elseif _args[1] == RecruitType.QianKunBoxSingle then
var=PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.QianKunBoxTen
local d=RecruitManager.GetExpendData(RecruitType.QianKunBoxSingle)
this.rootText.text = string.format(Language[12374],d[2])
elseif _args[1] == RecruitType.TimeLimitSingle then
var=PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.TimeLimitTen
local d=RecruitManager.GetExpendData(RecruitType.TimeLimitSingle)
this.rootText.text = string.format(Language[12375],d[2])
elseif _args[1] == RecruitType.Ten then
var=PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.Ten
local d=RecruitManager.GetExpendData(RecruitType.Ten)
this.rootText.text = string.format(Language[12376],d[2])
elseif _args[1] == RecruitType.QianKunBoxTen then
var=PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.QianKunBoxTen
local d=RecruitManager.GetExpendData(RecruitType.QianKunBoxTen)
this.rootText.text = string.format(Language[12377],d[2])
elseif _args[1] == RecruitType.TimeLimitTen then
var=PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.TimeLimitTen
local d=RecruitManager.GetExpendData(RecruitType.TimeLimitTen)
this.rootText.text = string.format(Language[12378],d[2])
else
LogBlue("_args[1]:".._args[1])
local data = ConfigManager.GetConfigData(ConfigName.LotterySetting,_args[1])
LogBlue("data.PerCount:"..data.PerCount)
LogBlue("data.ActivityId:"..data.ActivityId)
local activityData
if data.LotteryType == 3 then
activityData = ConfigManager.GetConfigData(ConfigName.GlobalActivity,data.ActivityId)
if activityData.Type == ActivityTypeDef.FindFairy then
var = PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.TimeLimitTen
local d = RecruitManager.GetExpendData(data.Id)
if data.PerCount == 1 then
this.rootText.text = string.format(Language[12375],d[2])
else
this.rootText.text = string.format(Language[12378],d[2])
end
elseif activityData.Type == ActivityTypeDef.QianKunBox then
var = PlayerManager.uid.."GeneralPopup_RecruitConfirm"..RecruitType.QianKunBoxTen
local d=RecruitManager.GetExpendData(data.Id)
if data.PerCount == 1 then
this.rootText.text = string.format(Language[12374],d[2])
else
this.rootText.text = string.format(Language[12377],d[2])
end
end
end
end
Util.AddOnceClick(this.btn,function()