显示bug修复
This commit is contained in:
parent
f62e7bc79b
commit
bcf90d8834
@ -32,8 +32,10 @@ function ChapterSellCell:refresh()
|
|||||||
cfgInfo.id = actIdList[i]
|
cfgInfo.id = actIdList[i]
|
||||||
table.insert(self.actChapterCfg, cfgInfo)
|
table.insert(self.actChapterCfg, cfgInfo)
|
||||||
end
|
end
|
||||||
self.scrollRect:refillCells(#self.actChapterCfg)
|
local count = #self.actChapterCfg
|
||||||
|
self.scrollRect:refillCells(count)
|
||||||
self.contentObj:setAnchoredPositionX(0)
|
self.contentObj:setAnchoredPositionX(0)
|
||||||
|
self.scrollRect:moveToIndex(count)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ChapterSellCell:getCellHeight()
|
function ChapterSellCell:getCellHeight()
|
||||||
|
|||||||
@ -164,9 +164,15 @@ function ShopComp:refresh()
|
|||||||
self.discountNode:setAnchoredPositionX(0)
|
self.discountNode:setAnchoredPositionX(0)
|
||||||
DataManager.ShopData:markShopDiscountRedPoint()
|
DataManager.ShopData:markShopDiscountRedPoint()
|
||||||
self.subTitleBtn1:removeRedPoint()
|
self.subTitleBtn1:removeRedPoint()
|
||||||
|
if DataManager.ShopData:getRp() then
|
||||||
|
self.subTitleBtn2:addRedPoint(84, 24)
|
||||||
|
else
|
||||||
|
self.subTitleBtn2:removeRedPoint()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self.mainNode:setAnchoredPositionX(0)
|
self.mainNode:setAnchoredPositionX(0)
|
||||||
self.discountNode:setAnchoredPositionX(GConst.NOT_VISIBLE_POS)
|
self.discountNode:setAnchoredPositionX(GConst.NOT_VISIBLE_POS)
|
||||||
|
self.subTitleBtn2:removeRedPoint()
|
||||||
if DataManager.ShopData:getShopDiscountRedPoint() then
|
if DataManager.ShopData:getShopDiscountRedPoint() then
|
||||||
self.subTitleBtn1:addRedPoint(-84, 24)
|
self.subTitleBtn1:addRedPoint(-84, 24)
|
||||||
else
|
else
|
||||||
@ -174,6 +180,7 @@ function ShopComp:refresh()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
self:refreshTitle()
|
self:refreshTitle()
|
||||||
self:refreshDiscountPage()
|
self:refreshDiscountPage()
|
||||||
self:refreshMainPage()
|
self:refreshMainPage()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user