From 699a687e7bbf3f041320280a80d6359ee374cc30 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 27 一月 2021 17:15:38 +0800
Subject: [PATCH] 第三方添加设备界面

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 53 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs
index f15a581..30cb186 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/ThirdPartyBrandListPage.cs
@@ -1,13 +1,13 @@
 锘縰sing System;
+using HDL_ON.UI.CSS;
 using Shared;
 namespace HDL_ON.UI
 {
     public class ThirdPartyBrandListPage : FrameLayout
     {
 
-        bool already = false;
-
         FrameLayout bodyView;
+        FrameLayout contentView;
 
         public ThirdPartyBrandListPage()
         {
@@ -18,8 +18,59 @@
         {
             new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView();
 
+            contentView = new FrameLayout()
+            {
+                Y = Application.GetRealHeight(64),
+                Height = Application.GetRealHeight(667-64),
+                BackgroundColor = CSS_Color.MainBackgroundColor,
+            };
+            bodyView.AddChidren(contentView);
 
+            AddEmptyTipView();
 
+            Button btnTipMsg = new Button()
+            {
+                Height = Application.GetRealHeight(17 + 24),
+                Y = Application.GetRealHeight(535 - 12),
+                TextColor = CSS_Color.TextualColor,
+                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                TextAlignment = TextAlignment.Center,
+                TextID = StringId.TipAddThirdPartyDeviceMsg,
+            };
+            bodyView.AddChidren(btnTipMsg);
+
+            Button btnAdd = new Button()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Y = Application.GetRealHeight(564),
+                Width = Application.GetRealWidth(220),
+                Height = Application.GetRealWidth(44),
+                Radius = (uint)Application.GetRealWidth(22),
+                BackgroundColor = CSS_Color.MainColor,
+                TextAlignment = TextAlignment.Center,
+                TextColor = CSS_Color.MainBackgroundColor,
+                TextID = StringId.Add,
+            };
+            bodyView.AddChidren(btnAdd);
+        }
+
+        /// <summary>
+        /// 娣诲姞鍐呭涓虹┖鎻愮ず椤甸潰
+        /// </summary>
+        void AddEmptyTipView()
+        {
+           var emptyTipView = new FrameLayout()
+            {
+                Height =Application.GetRealWidth(470),
+                Width = contentView.Width,
+            };
+            contentView.AddChidren(emptyTipView);
+
+            var tipView = new EmptyTipView(Language.StringByID(StringId.TipNotThirdPartyDevice))
+            {
+                Gravity = Gravity.Center
+            };
+            emptyTipView.AddChidren(tipView);
         }
     }
 }

--
Gitblit v1.8.0