diff --git a/lua/app/ui/hero/hero_info_comp.lua b/lua/app/ui/hero/hero_info_comp.lua index e48911d8..caef16f4 100644 --- a/lua/app/ui/hero/hero_info_comp.lua +++ b/lua/app/ui/hero/hero_info_comp.lua @@ -120,8 +120,8 @@ function HeroInfoComp:refreshUpInfo() if canLvUp then self.btnUp:setTouchEnable(true) self.btnUp5:setTouchEnable(true) - self.btnUp:addRedPoint(70, 30, 1) - self.btnUp5:addRedPoint(70, 30, 1) + self.btnUp:addRedPoint(100, 36, 1) + self.btnUp5:addRedPoint(100, 36, 1) self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[1]) self.btnUp5:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2]) else diff --git a/lua/app/ui/hero/star_info_comp.lua b/lua/app/ui/hero/star_info_comp.lua index 9eddecfd..5a5863dc 100644 --- a/lua/app/ui/hero/star_info_comp.lua +++ b/lua/app/ui/hero/star_info_comp.lua @@ -87,8 +87,10 @@ function StarInfoComp:refreshStarBtn() self.costCell:refreshByConfig(cost) if hadNum >= cost.num then self.costCell:showRewardNum(hadNum .. "/" .. cost.num) + self.upBtn:addRedPoint(100, 36, 1) else self.costCell:showRewardNum("" .. hadNum .. "" .. "/" .. cost.num) + self.upBtn:removeRedPoint() end end end