diff --git a/lua/app/ui/shop/gift_pop_ui.lua b/lua/app/ui/shop/gift_pop_ui.lua index ffe14e45..cb579f21 100644 --- a/lua/app/ui/shop/gift_pop_ui.lua +++ b/lua/app/ui/shop/gift_pop_ui.lua @@ -122,11 +122,17 @@ function GiftPopUI:refresh(needCheck) if self.actType == PayManager.PURCHARSE_TYPE.ACT_GIFT then local type = PayManager:getGiftConfigInfo(self.actType, self.actId).type self.titleTx:setText(I18N:getGlobalText(GIFT_TITLE_TEXT[self.actType][type])) - self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType][type]) + self.banner:setVisible(false) + self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType][type], function() + self.banner:setVisible(true) + end) self.bg:setTexture(GIFT_BG_NAME[self.actType][type]) else self.titleTx:setText(I18N:getGlobalText(GIFT_TITLE_TEXT[self.actType])) - self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType]) + self.banner:setVisible(false) + self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType], function() + self.banner:setVisible(true) + end) self.bg:setTexture(GIFT_BG_NAME[self.actType]) end