累计充值修改提交
parent
ac622ed41d
commit
7a1894e75e
|
@ -85,10 +85,16 @@ local TypeUpdateFunc = {
|
||||||
this.GetExpertData(2,ActivityTypeDef.SecretBoxExper)
|
this.GetExpertData(2,ActivityTypeDef.SecretBoxExper)
|
||||||
end,
|
end,
|
||||||
[ActivityTypeDef.AccumulativeRechargeExper] = function ()---日累计充值
|
[ActivityTypeDef.AccumulativeRechargeExper] = function ()---日累计充值
|
||||||
this.GetExpertData(2,ActivityTypeDef.AccumulativeRechargeExper)
|
local curData = dataList[ActivityTypeDef.AccumulativeRechargeExper]
|
||||||
|
local configData = ConfigManager.GetConfigData(ConfigName.GlobalActivity,curData.activityId)
|
||||||
|
if configData.ShowArt == FUNCTION_OPEN_TYPE.EXPERT then
|
||||||
|
this.GetExpertData(2,ActivityTypeDef.AccumulativeRechargeExper)
|
||||||
|
else
|
||||||
|
this.GetMissionData(2,ActivityTypeDef.AccumulativeRechargeExper)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
[ActivityTypeDef.UpLvAct] = function ()---日累计充值
|
[ActivityTypeDef.UpLvAct] = function ()---日累计充值
|
||||||
this.GetMissionData(2,ActivityTypeDef.UpLvAct)
|
this.GetExpertData(2,ActivityTypeDef.UpLvAct)
|
||||||
end,
|
end,
|
||||||
[ActivityTypeDef.DynamicAct_recharge] = function ()---周累计充值
|
[ActivityTypeDef.DynamicAct_recharge] = function ()---周累计充值
|
||||||
this.GetMissionData(1,ActivityTypeDef.DynamicAct_recharge)
|
this.GetMissionData(1,ActivityTypeDef.DynamicAct_recharge)
|
||||||
|
@ -184,7 +190,7 @@ function this.GetMissionData(indexType,actType)
|
||||||
else
|
else
|
||||||
curData.rewards[i].progress = curData.value
|
curData.rewards[i].progress = curData.value
|
||||||
end
|
end
|
||||||
if actType == ActivityTypeDef.DynamicAct_recharge then
|
if actType == ActivityTypeDef.DynamicAct_recharge or actType == ActivityTypeDef.AccumulativeRechargeExper then
|
||||||
curData.rewards[i].value = actRewardConfigs[j].Values[1][1]
|
curData.rewards[i].value = actRewardConfigs[j].Values[1][1]
|
||||||
else
|
else
|
||||||
curData.rewards[i].value = actRewardConfigs[j].Values[2][1]
|
curData.rewards[i].value = actRewardConfigs[j].Values[2][1]
|
||||||
|
@ -198,6 +204,7 @@ function this.GetMissionData(indexType,actType)
|
||||||
curData.rewards[i].state = 1
|
curData.rewards[i].state = 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
LogGreen("actRewardConfigs[j].Reward :"..#actRewardConfigs[j].Reward )
|
||||||
curData.rewards[i].shows = actRewardConfigs[j].Reward
|
curData.rewards[i].shows = actRewardConfigs[j].Reward
|
||||||
curData.rewards[i].jump = actRewardConfigs[j].Jump[1]
|
curData.rewards[i].jump = actRewardConfigs[j].Jump[1]
|
||||||
end
|
end
|
||||||
|
|
|
@ -134,7 +134,6 @@ function MissionPre:SetData(data,_parent,sortingOrder,actData,actConfig,func)
|
||||||
for i = 1, #self.itemList do
|
for i = 1, #self.itemList do
|
||||||
self.itemList[i].gameObject:SetActive(false)
|
self.itemList[i].gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
if self.data.shows then
|
|
||||||
for i = 1, #self.data.shows do
|
for i = 1, #self.data.shows do
|
||||||
if not self.itemList[i] then
|
if not self.itemList[i] then
|
||||||
self.itemList[i] = SubUIManager.Open(SubUIConfig.ItemView,self.grid.transform)
|
self.itemList[i] = SubUIManager.Open(SubUIConfig.ItemView,self.grid.transform)
|
||||||
|
@ -143,7 +142,6 @@ function MissionPre:SetData(data,_parent,sortingOrder,actData,actConfig,func)
|
||||||
self.itemList[i]:OnOpen(false, {self.data.shows[i][1],self.data.shows[i][2]}, 0.9,false,false,false,sortingOrder)
|
self.itemList[i]:OnOpen(false, {self.data.shows[i][1],self.data.shows[i][2]}, 0.9,false,false,false,sortingOrder)
|
||||||
self.itemList[i].gameObject:SetActive(true)
|
self.itemList[i].gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
if self.func then
|
if self.func then
|
||||||
self:SetIcon(self.data)
|
self:SetIcon(self.data)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue