diff --git a/Assets/ManagedResources/~Lua/Modules/Recharge/View/RechargeViewNew.lua b/Assets/ManagedResources/~Lua/Modules/Recharge/View/RechargeViewNew.lua index 925b42b6dc..b971507f8e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recharge/View/RechargeViewNew.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recharge/View/RechargeViewNew.lua @@ -29,6 +29,7 @@ function RechargeViewNew:InitComponent() -- 显示特权信息 --===================成长礼包================ self.grow = Util.GetGameObject(self.gameObject,"growPack/Content") + self.infoTxt = Util.GetGameObject(self.gameObject,"Text"):GetComponent("Text") self.tip = Util.GetGameObject(self.grow,"Tip"):GetComponent("Text") self.icon = Util.GetGameObject(self.grow,"Icon"):GetComponent("Image") self.name = Util.GetGameObject(self.grow,"Name"):GetComponent("Image") @@ -71,6 +72,13 @@ function RechargeViewNew:OnShow(_sortingOrder) if self.actConfig.ShopData and #self.actConfig.ShopData>0 then showType=self.actConfig.ShopData[1][3] end + self.infoTxt.gameObject.transform.localPosition=Vector3.New(0,440,0) + if showType==63 then + self.infoTxt.gameObject:SetActive(true) + self.infoTxt.text="购买代金券仅可激活线下返利活动额度,\n使用代金券仅可激活线上返利活动额度" + else + self.infoTxt.gameObject:SetActive(false) + end self.shopView:ShowShop(SHOP_TYPE.SOUL_STONE_SHOP, self.sortingOrder,showType) self:SetGrowGift() end