【ID1011130】

【活动优化】超值返利
dev_chengFeng
jiaoyangna 2022-02-11 15:18:20 +08:00
parent a17a8604d9
commit caa434c726
1 changed files with 5 additions and 2 deletions

View File

@ -105,7 +105,8 @@ function PremiumRebatePanel:Refresh(isTop,isAni)
this.actConfigData = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityRewardConfig,"ActivityId",this.actData.activityId)
local missionConfig = ConfigManager.GetConfigDataByDoubleKey(ConfigName.ActivityRewardConfig,"ActivityId",this.actData.activityId,"Sort",this.actData.value + 1)
local missionData = ActivityGiftManager.GetActivityInfo(this.actData.activityId,missionConfig.Id)
if missionData.state == 1 then
if missionData.state == 1 or
(missionData.state == 0 and missionData.progress >= activityRewardConfig[missionConfig.Id].Values[1][1]) then
this.leftTime.text = string.format("累计天数:%s/15",this.actData.value + 1)
else
this.leftTime.text = string.format("累计天数:%s/15",this.actData.value)
@ -163,12 +164,14 @@ function PremiumRebatePanel:ShowSingleHero(go,_data,index)
end
btnText.gameObject:SetActive(true)
red.gameObject:SetActive(false)
btnImg.sprite = this.spLoader:LoadSprite("s_slbz_1anniuhuangse")
btnText.text = "前往"--_data.data.price
if _data.state == 0 and index <= this.actData.value + 1 then
Util.SetGray(btnGet,false)
if _data.progress >= missionConfigData.Values[1][1] then
btnText.text = "领取"--_data.data.price
red.gameObject:SetActive(true)
btnImg.sprite = this.spLoader:LoadSprite("s_slbz_1anniuongse")
Util.AddOnceClick(btnGet,function ()
-- PayManager.Pay(_data.data.shopData.goodsId, function(id)
-- FirstRechargeManager.RefreshAccumRechargeValue(_data.data.shopData.goodsId)
@ -192,7 +195,7 @@ function PremiumRebatePanel:ShowSingleHero(go,_data,index)
end)
end
elseif _data.state == 1 then
Util.SetGray(btnGet,false)
Util.SetGray(btnGet,true)
btnText.text = "已领取"
btnProgressText.gameObject:SetActive(false)
Util.AddOnceClick(btnGet,function ()