增加优惠入口红点逻辑
This commit is contained in:
parent
2d139dd23f
commit
591aee945b
@ -53,11 +53,12 @@ function SideBarDiscountCell:getSpineName()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SideBarDiscountCell:onClick()
|
function SideBarDiscountCell:onClick()
|
||||||
|
DataManager.ShopData:markEntranceDiscountRedPoint()
|
||||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_SHOP, {page = GConst.ShopConst.PAGE_TYPE.DISCOUNT})
|
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_SHOP, {page = GConst.ShopConst.PAGE_TYPE.DISCOUNT})
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarDiscountCell:getIsShowRedPoint()
|
function SideBarDiscountCell:getIsShowRedPoint()
|
||||||
return false
|
return DataManager.ShopData:getEntranceDiscountRedPoint()
|
||||||
end
|
end
|
||||||
|
|
||||||
return SideBarDiscountCell
|
return SideBarDiscountCell
|
||||||
@ -980,6 +980,14 @@ function ShopData:markShopDiscountRedPoint()
|
|||||||
LocalData:setShopDiscountRedPointTime(today)
|
LocalData:setShopDiscountRedPointTime(today)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ShopData:getEntranceDiscountRedPoint()
|
||||||
|
return not self.isClickedDiscount
|
||||||
|
end
|
||||||
|
|
||||||
|
function ShopData:markEntranceDiscountRedPoint()
|
||||||
|
self.isClickedDiscount = true
|
||||||
|
end
|
||||||
|
|
||||||
function ShopData:checkLoginPopInfo()
|
function ShopData:checkLoginPopInfo()
|
||||||
-- 初始化礼包弹出逻辑
|
-- 初始化礼包弹出逻辑
|
||||||
local actPopUpGifts = self:getPopUpGiftByType(PayManager.PURCHARSE_TYPE.ACT_GIFT)
|
local actPopUpGifts = self:getPopUpGiftByType(PayManager.PURCHARSE_TYPE.ACT_GIFT)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user