From 6c8a978c08c17230bffcce69a76d5043253e808d Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期日, 29 九月 2024 11:37:52 +0800
Subject: [PATCH] 萤石门铃
---
HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs | 31 ++++++++++++++++++++-----------
1 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFaceManagementPage.cs
index fc17912..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,7 +111,7 @@
TextAlignment = TextAlignment.CenterLeft,
TextColor = CSS_Color.TextualColor,
TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
- Text = " 涓轰繚鎶ゆ偍鐨勪釜浜洪殣绉佹潈鐩婏紝鐗瑰悜鎮ㄩ�氱煡骞剁敵璇锋槑纭悓鎰忔巿鏉冦�傝浣犱粩缁嗛槄璇�",
+ TextID = StringId.FaceProTipText1,
IsMoreLines = true,
};
contentView.AddChidren(btnMsg);
@@ -123,9 +125,10 @@
TextAlignment = TextAlignment.CenterLeft,
TextColor = CSS_Color.MainColor,
TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
- Text = " 銆奜n Pro浜鸿劯淇℃伅閲囬泦鍗忚銆�",
+ TextID = StringId.FaceProTipText2,
IsMoreLines = true,
};
+
contentView.AddChidren(btnMsg1);
Button btnMsg2 = new Button()
@@ -137,7 +140,7 @@
TextAlignment = TextAlignment.CenterLeft,
TextColor = CSS_Color.TextualColor,
TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
- Text = " 鑻ュ悓鎰忚鍗忚锛岃鐐瑰嚮銆愬悓鎰忋�戞寜閿紝琛ㄧず鎮ㄥ凡缁忕悊瑙e苟鍚屾剰浜鸿劯淇℃伅閲囬泦鍗忚銆�",
+ TextID = StringId.FaceProTipText3,
IsMoreLines = true,
};
contentView.AddChidren(btnMsg2);
@@ -184,22 +187,22 @@
btnConfirm.SetCornerWithSameRadius((uint)Application.GetMinRealAverage(10), mRectCornerID);
dialog.Show();
- btnCancel.MouseUpEventHandler += (sender, e) =>
+ btnCancel.MouseUpEventHandler += (sender2, e2) =>
{
dialog.Close();
};
- btnMsg1.MouseUpEventHandler += (sender, e) =>
+ 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();
};
- btnConfirm.MouseUpEventHandler = (sender, e) =>
+ btnConfirm.MouseUpEventHandler = (sender2, e2) =>
{
dialog.Close();
OnAppConfig.Instance.FaceManagementTip = true;
@@ -220,7 +223,7 @@
Radius = (uint)Application.GetRealWidth(22),
BorderWidth = 0,
BorderColor = 0x00000000,
- BackgroundColor = CSS_Color.WarningColor,
+ BackgroundColor = 0xFFFF7272,
TextColor = CSS_Color.MainBackgroundColor,
TextSize = CSS_FontSize.SubheadingFontSize,
IsBold = true,
@@ -243,6 +246,7 @@
{
Application.RunOnMainThread(() =>
{
+ memberInfo.userFaceUrl = "";
btnAddFace.ImageBytes = null;
btnAddFace.UnSelectedImagePath = "PersonalCenter/FacePassage/FaceIcon.png";
btnDeleteFaceDate.Enable = btnDeleteFaceDate.Visible = false;
@@ -572,6 +576,11 @@
var pack = new HttpServerRequest().UpdataMemberFace(memberInfo.id, base64string);
if (pack != null)
{
+ var data = Newtonsoft.Json.JsonConvert.DeserializeObject<System.Collections.Generic.Dictionary<string,string>>(pack.Data.ToString());
+ if(data!= null)
+ {
+ data.TryGetValue("userFace",out memberInfo.userFaceUrl);
+ }
Utlis.WriteLine("涓婁紶缁撴灉锛�" + pack.message);
if(pack.Code == StateCode.SUCCESS)
{
--
Gitblit v1.8.0