From 56605c0ab7c0e586d8fd30548d1341247a0b6afd Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 31 Mar 2021 19:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E7=89=B9=E6=9D=83=20?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E7=A4=BC=E5=8C=85=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Recharge/View/GiftPre.lua | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua b/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua index ba91833ca9..4822e2cc87 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua @@ -82,16 +82,6 @@ function GiftPre:InitComponent() self.tip4_en = Util.GetGameObject(self.tipRoot,"tip4_en") self.tip5 = Util.GetGameObject(self.tipRoot,"tip5") self.tip5Text = Util.GetGameObject(self.tip5,"Text"):GetComponent("Text") - self.tipRoot:SetActive(false) - self.tip1:SetActive(false) - self.tip1_en:SetActive(false) - self.tip2:SetActive(false) - self.tip2_en:SetActive(false) - self.tip3:SetActive(false) - self.tip3_en:SetActive(false) - self.tip4:SetActive(false) - self.tip4_en:SetActive(false) - self.tip5:SetActive(false) end --绑定事件(用于子类重写) @@ -230,6 +220,16 @@ function GiftPre:SetContent1() self.grid:GetComponent("RectTransform").anchoredPosition = offSetX[0].scroll self.type1.gameObject:SetActive(false) self.type2.gameObject:SetActive(false) + self.tipRoot:SetActive(false) + self.tip1:SetActive(false) + self.tip1_en:SetActive(false) + self.tip2:SetActive(false) + self.tip2_en:SetActive(false) + self.tip3:SetActive(false) + self.tip3_en:SetActive(false) + self.tip4:SetActive(false) + self.tip4_en:SetActive(false) + self.tip5:SetActive(false) self.btnBuy:GetComponent("Image").sprite = Util.LoadSprite("s_slbz_1anniuhuangse") if self.data.DataType == DataType.Direct and self.data.buyType == DirectBuyType.DAILY_GIFT then self.type2.gameObject:SetActive(true)