From f9181a9c8125136f597add7c30cb2ff508d54ba7 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 25 七月 2024 17:34:32 +0800 Subject: [PATCH] 2024年07月25日17:33:40 --- HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs | 29 ++++++++++------------------- 1 files changed, 10 insertions(+), 19 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs index c5a8ad0..d1c133a 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs @@ -29,12 +29,14 @@ public void LoadPage() { bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; - new TopViewDiv(bodyView, memberInfo.nickName).LoadTopView(); + var topView = new TopViewDiv(bodyView, memberInfo.nickName); + topView.maginY = 10; + topView.LoadTopView(); #region 浜鸿劯绠$悊 var btnMemberFaceTitle = new Button() { - Y = Application.GetRealHeight(80), + Y = Application.GetRealHeight(80+10), X = Application.GetRealWidth(16), Height = Application.GetRealHeight(32), TextColor = CSS_Color.FirstLevelTitleColor, @@ -109,13 +111,9 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.TextualColor, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, - Text = " 涓轰繚鎶ゆ偍鐨勪釜浜洪殣绉佹潈鐩婏紝鐗瑰悜鎮ㄩ�氱煡骞剁敵璇锋槑纭悓鎰忔巿鏉冦�傝浣犱粩缁嗛槄璇�", + TextID = StringId.FaceProTipText1, IsMoreLines = true, }; - if (Language.CurrentLanguage != "Chinese") - { - btnMsg.Text = " In order to protect your personal privacy rights, we hereby notify you and apply for explicit consent authorization. Please read it carefully"; - } contentView.AddChidren(btnMsg); Button btnMsg1 = new Button() @@ -127,13 +125,9 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.MainColor, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, - Text = " 銆奜n Pro浜鸿劯淇℃伅閲囬泦鍗忚銆�", + TextID = StringId.FaceProTipText2, IsMoreLines = true, }; - if (Language.CurrentLanguage != "Chinese") - { - btnMsg1.Text = " 'On Pro Face Information Collection Protocol'"; - } contentView.AddChidren(btnMsg1); @@ -146,13 +140,9 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.TextualColor, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, - Text = " 鑻ュ悓鎰忚鍗忚锛岃鐐瑰嚮銆愬悓鎰忋�戞寜閿紝琛ㄧず鎮ㄥ凡缁忕悊瑙e苟鍚屾剰浜鸿劯淇℃伅閲囬泦鍗忚銆�", + TextID = StringId.FaceProTipText3, IsMoreLines = true, }; - if (Language.CurrentLanguage != "Chinese") - { - btnMsg2.Text = " If you agree to this agreement, please click the [Agree] button to indicate that you have understood and agreed to the face information collection agreement."; - } contentView.AddChidren(btnMsg2); Button btnLine = new Button() @@ -203,12 +193,12 @@ }; btnMsg1.MouseUpEventHandler += (sender2, e2) => { - string url = "https://developer.hdlcontrol.com/浜鸿劯淇℃伅閲囬泦鍗忚.html"; + string url = "https://developer.hdlcontrol.com/HDLFaceProtocol.html"; if (Language.CurrentLanguage != "Chinese") { url = "https://developer.hdlcontrol.com/Face information collection protocol.html"; } - new WebViewDialog().LoadPage("浜鸿劯淇℃伅閲囬泦鍗忚", url); + new WebViewDialog().LoadPage(Language.StringByID(StringId.GetFaceProtocol), url); dialog.Close(); }; @@ -256,6 +246,7 @@ { Application.RunOnMainThread(() => { + memberInfo.userFaceUrl = ""; btnAddFace.ImageBytes = null; btnAddFace.UnSelectedImagePath = "PersonalCenter/FacePassage/FaceIcon.png"; btnDeleteFaceDate.Enable = btnDeleteFaceDate.Visible = false; -- Gitblit v1.8.0