dev_chengFeng
ZhangBiao 2020-07-24 18:49:17 +08:00
parent a6744aaa90
commit ae1d8b4e97
1 changed files with 19 additions and 20 deletions

View File

@ -117,8 +117,9 @@ function GiftView:RefreshGiftData()
self.scrollView.gameObject:SetActive(true)
elseif self.buyType == DirectBuyType.FINDTREASURE_GIFT then--特权礼包界面
--两部分组成 寻宝特权在商品里 极速探索礼包在直购里
--24暂时关闭
local topspeedData = self:ResetShopData(ShopManager.GetShopDataByType(SHOP_TYPE.FINDTREASURE_GIFT).storeItem, self.buyType, DataType.Shop)
shopData = self:ResetShopData(OperatingManager.GetGiftGoodsInfoList(GoodsTypeDef.DirectPurchaseGift), self.buyType, DataType.Direct)
-- shopData = self:ResetShopData(OperatingManager.GetGiftGoodsInfoList(GoodsTypeDef.DirectPurchaseGift), self.buyType, DataType.Direct)
for i = 1, #topspeedData do
table.insert(shopData,topspeedData[i])
end
@ -688,26 +689,24 @@ function GiftView:TimeCountDown()
self.localTimerV2:Stop()
self.localTimerV2 = nil
end
--24暂时关闭恢复释放就可以了
-- self.localTimerV2 = Timer.New(function()
-- local t1,t2=timerList[1].freshTime,timerList[2].freshTime
-- t1=t1-1
-- t2=t2-1
-- if t1 < 0 then
-- -- body刷新
-- self:RefreshGiftData()
-- end
-- if t2 < 0 then
-- -- body刷新
-- self:RefreshGiftData()
-- end
-- timerList[1].pre.text=Language[10561]..self:SpecialTime(t1-GetTimeStamp())--self:SpecialTime
-- timerList[2].pre.text=Language[10561]..self:SpecialTime(t2-GetTimeStamp())
self.localTimerV2 = Timer.New(function()
local t1,t2=timerList[1].freshTime,timerList[2].freshTime
t1=t1-1
t2=t2-1
if t1 < 0 then
-- body刷新
self:RefreshGiftData()
end
if t2 < 0 then
-- body刷新
self:RefreshGiftData()
end
timerList[1].pre.text=Language[10561]..self:SpecialTime(t1-GetTimeStamp())--self:SpecialTime
timerList[2].pre.text=Language[10561]..self:SpecialTime(t2-GetTimeStamp())
end,1,-1,true)
self.localTimerV2:Start()
-- end,1,-1,true)
-- self.localTimerV2:Start()
end
------------------------------
return GiftView