From 8905afcbd6dbb859e79199be86a7c706a03307b0 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 26 十一月 2020 15:34:59 +0800
Subject: [PATCH] 2020-11-26 1.获取支持、过户新功能页面实现。2UI优化调整。

---
 HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/FunctionIntroductionPage.cs |  140 +++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 130 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/FunctionIntroductionPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/FunctionIntroductionPage.cs
index 70cafae..e5edff3 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/FunctionIntroductionPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/FunctionIntroductionPage.cs
@@ -1,6 +1,7 @@
 锘縰sing System;
 using Shared;
 using HDL_ON.UI.CSS;
+using System.Collections.Generic;
 
 namespace HDL_ON.UI
 {
@@ -18,6 +19,10 @@
         /// 褰撳墠
         /// </summary>
         VerticalScrolViewLayout bodyScrolView;
+        /// <summary>
+        /// 鍐呭涓虹┖鎻愮ずView
+        /// </summary>
+        EmptyTipView emptyTipView;
 
         public FunctionIntroductionPage()
         {
@@ -38,6 +43,8 @@
             bodyView.AddChidren(bodyScrolView);
 
             AddEmptyTipView();
+
+            //TestLoad();
         }
 
         /// <summary>
@@ -45,20 +52,133 @@
         /// </summary>
         void AddEmptyTipView()
         {
-            //int bodyY = Application.GetRealHeight(64);
-            //emptyTipFrameLayout = new FrameLayout()
-            //{
-            //    Y = bodyY,
-            //    Height = bodyView.Height - bodyY,
-            //    BackgroundColor = CSS_Color.MainBackgroundColor,
-            //};
-            //bodyView.AddChidren(emptyTipFrameLayout);
-
-            var emptyTipView = new EmptyTipView()
+            emptyTipView = new EmptyTipView()
             {
                 Gravity = Gravity.Center
             };
             bodyView.AddChidren(emptyTipView);
         }
+
+        /// <summary>
+        /// 鍔犺浇鍖哄煙閫夋嫨RowView
+        /// </summary>
+        /// <param name="VerticalScrolViewMiddle"></param>
+        void AddRowView(VerticalScrolViewLayout VerticalScrolViewMiddle, HelpURLInfo functionInfo)
+        {
+            var rowView = new FrameLayout()
+            {
+                Height = Application.GetRealHeight(54),
+            };
+            VerticalScrolViewMiddle.AddChidren(rowView);
+
+            //鏍囬
+            var btnTilte = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = Application.GetRealHeight(8),
+                Width = Application.GetRealWidth(320),
+                Height = Application.GetRealHeight(20),
+                TextAlignment = TextAlignment.CenterLeft,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextSize = CSS_FontSize.TextFontSize,
+                Text = functionInfo.Title
+            };
+            rowView.AddChidren(btnTilte);
+
+            //鍓爣棰�
+            var btnSubtitle = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = btnTilte.Bottom + Application.GetRealHeight(4),
+                Width = Application.GetRealWidth(320),
+                Height = Application.GetRealHeight(14),
+                TextAlignment = TextAlignment.CenterLeft,
+                TextColor = CSS_Color.PromptingColor1,
+                TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel,
+                Text = functionInfo.CreateTime
+            };
+
+            rowView.AddChidren(btnSubtitle);
+
+            var btnGo = new Button()
+            {
+                X = Application.GetRealWidth(343),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetMinRealAverage(16),
+                Height = Application.GetMinRealAverage(16),
+                UnSelectedImagePath = "Public/Right.png",
+            };
+
+            rowView.AddChidren(btnGo);
+
+            var lineView = new LineView();
+            rowView.AddChidren(lineView);
+            lineView.Y = rowView.Height - lineView.Height;
+
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
+            {
+                new WebViewDialog().LoadPage(functionInfo.Title, functionInfo.Url);
+            };
+
+            btnTilte.MouseUpEventHandler = eventHandler;
+            btnSubtitle.MouseUpEventHandler = eventHandler;
+            btnGo.MouseUpEventHandler = eventHandler;
+        }
+
+        #region 娴嬭瘯
+        List<HelpURLInfo> list = new List<HelpURLInfo>();
+        /// <summary>
+        /// 
+        /// </summary>
+        void TestLoad()
+        {
+            list.Add(new HelpURLInfo()
+            {
+                Title = "HDL ON PRO 1.0.10 涓昏鏇存柊",
+                CreateTime = "11鏈�26",
+                Url = Constant.URL_PRIVACYPOLICY,
+            });
+
+            list.Add(new HelpURLInfo()
+            {
+                Title = "HDL ON PRO 1.0.09 涓昏鏇存柊",
+                CreateTime = "10鏈�26",
+                Url = Constant.URL_PRIVACYPOLICY,
+            });
+
+            list.Add(new HelpURLInfo()
+            {
+                Title = "HDL ON PRO 1.0.08 涓昏鏇存柊",
+                CreateTime = "09鏈�26",
+                Url = Constant.URL_PRIVACYPOLICY,
+            });
+
+            foreach (var info in list)
+            {
+                AddRowView(bodyScrolView, info);
+            }
+        }
+        #endregion
+    }
+
+
+    /// <summary>
+    /// 甯姪缃戦〉鍦板潃
+    /// </summary>
+    [System.Serializable]
+    public class HelpURLInfo
+    {
+        /// <summary>
+        /// 
+        /// </summary>
+        public string Title;
+        /// <summary>
+        /// 
+        /// </summary>
+        public string CreateTime;
+        /// <summary>
+        /// 
+        /// </summary>
+        public string Url;
     }
 }

--
Gitblit v1.8.0