From f5268d43584a1f72cb7b19c17232645c24e2348b Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 17 十二月 2020 15:29:31 +0800 Subject: [PATCH] 20201217-3 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index 804209e..2886f90 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -94,6 +94,12 @@ bodyView.BackgroundColor = CSS_Color.BackgroundColor; } + public override void RemoveFromParent() + { + UnregisterGetPushMessageAction(); + base.RemoveFromParent(); + } + public void LoadPage() { try @@ -370,6 +376,7 @@ // 鏌ヨ鏈娑堟伅骞舵樉绀� GetUnreadPushMessages(); + RegisterGetPushMessageAction(); } catch (Exception ex) { @@ -656,7 +663,13 @@ SelectedImagePath = "Collection/CollectionWhiteIcon.png", UnSelectedImagePath = "Collection/CollectionIcon.png", }; - view.AddChidren(btnCollection); + //view.AddChidren(btnCollection); + //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳� + if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) + { + view.AddChidren(btnCollection); + } + LoadEvent_FunctionCollection(btnCollection, function); if (function.functionCategory == FunctionCategory.Curtain) @@ -890,7 +903,13 @@ SelectedImagePath = "Collection/CollectionWhiteIcon.png", UnSelectedImagePath = "Collection/CollectionIcon.png", }; - view.AddChidren(btnCollection); + //view.AddChidren(btnCollection); + //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳� + if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) + { + view.AddChidren(btnCollection); + } + LoadEvent_SceneCollection(btnCollection, scene); LoadEvent_ControlScene(btnCoverd,btnName,btnZone, scene); -- Gitblit v1.8.0