【奖励界面】修复部分奖励界面显示异常的问题

dev_chengFeng
gaoxin 2021-09-15 10:17:02 +08:00
parent 7df51e8929
commit 3622d49888
1 changed files with 5 additions and 10 deletions

View File

@ -176,16 +176,6 @@ function RewardItemPopup:OnOpen(...)
local isHideBG = args[6]
this.btnBack:GetComponent("Image").color = Color.New(0, 0, 0, isHideBG and 0 or 0.8)
this.btnGoOn:SetActive(not isHideBG)
if compShowType == CompShowType.fourElement then
this.ScrollView.gameObject:SetActive(false)
this.dropPrefab.gameObject:SetActive(false)
this.shenying.gameObject:SetActive(true)
this.ShengYingShow(args[8])
return
end
if not drop then
return
end
if compShowType == 3 then
this.GuildCarDelayShow()
@ -198,6 +188,8 @@ function RewardItemPopup:OnOpen(...)
this.TaSuiLingXiaoShow()
elseif compShowType == 8 then--山河社稷图
this.FightLevelShow()
elseif compShowType == CompShowType.fourElement then
this.ShengYingShow(args[8])
end
--如果没有掉落就return
if not drop or (#drop.itemlist < 1 and #drop.equipId < 1 and #drop.Hero < 1 and #drop.soulEquip < 1 and #drop.pokemon < 1) then
@ -284,6 +276,9 @@ function this.SetComPShowState(type)
end
function this.ShengYingShow(propertyId)
this.ScrollView.gameObject:SetActive(false)
this.dropPrefab.gameObject:SetActive(false)
this.shenying.gameObject:SetActive(true)
LogGreen("propertyId:"..propertyId)
this.shenyingTxt.text = ConfigManager.GetConfigData(ConfigName.PropertyConfig,propertyId).Info
end