【优化】修复周月礼包不显示在最上面
parent
f3c1a2297a
commit
fca9bfccfc
|
|
@ -52,12 +52,12 @@ end
|
|||
|
||||
function WeekMonthGiftPackPage:RefreshData()
|
||||
-- 刷新商品数据
|
||||
self:RefreshGiftData()
|
||||
self:RefreshGiftData(true)
|
||||
-- 刷新剩余时间
|
||||
self:GetRemainTime()
|
||||
end
|
||||
|
||||
function WeekMonthGiftPackPage:RefreshGiftData()
|
||||
function WeekMonthGiftPackPage:RefreshGiftData(isTop)
|
||||
local shopData = {}
|
||||
self.titleBg.sprite = Util.LoadSprite(data[extra].picture)
|
||||
if extra <= 2 then
|
||||
|
|
@ -89,6 +89,9 @@ function WeekMonthGiftPackPage:RefreshGiftData()
|
|||
self:RefreshShowData(item, shopData[index].data)
|
||||
end
|
||||
self.scrollView:SetData(shopData, callBack)
|
||||
if isTop then
|
||||
self.scrollView:SetIndex(1)
|
||||
end
|
||||
if isPlayAnim then
|
||||
SecTorPlayAnimByScroll(self.scrollView)
|
||||
isPlayAnim = false
|
||||
|
|
@ -182,7 +185,7 @@ function WeekMonthGiftPackPage:RefreshShowData(item, data)
|
|||
--直购商品
|
||||
PayManager.Pay(data.goodsId, function(id)
|
||||
FirstRechargeManager.RefreshAccumRechargeValue(data.goodsId)
|
||||
self:RefreshGiftData()
|
||||
self:RefreshGiftData(false)
|
||||
CheckRedPointStatus(RedPointType.DailyGift)
|
||||
CheckRedPointStatus(RedPointType.WeekGiftPage)
|
||||
CheckRedPointStatus(RedPointType.MonthGiftPage)
|
||||
|
|
|
|||
Loading…
Reference in New Issue