From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码
---
ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs
index a51af14..faa609b 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs
@@ -11,7 +11,7 @@
/// <summary>
/// 涓儴妗屽竷鎺т欢
/// </summary>
- private FrameLayout frameMiddleBack = null;
+ private NormalFrameLayout frameMiddleBack = null;
#region 鈻� 鍒濆鍖朹____________________________
@@ -80,9 +80,9 @@
{
if (this.frameMiddleBack == null)
{
- frameMiddleBack = new FrameLayout();
+ frameMiddleBack = new NormalFrameLayout();
frameMiddleBack.Y = Application.GetRealHeight(363);
- frameMiddleBack.Height = Application.GetRealHeight(1008);
+ frameMiddleBack.Height = Application.GetRealHeight(1008) - ControlCommonResourse.ListViewRowHeight - Application.GetRealHeight(12);
frameMiddleBack.BackgroundColor = UserCenterColor.Current.White;
bodyFrameLayout.AddChidren(frameMiddleBack);
}
@@ -105,7 +105,9 @@
//鍚嶇ОView
rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uName), 350);
//鍚嶇О杈撳叆
- var txtName = new TextInputExControl(700, true);
+ var txtName = new TextInputControl(700, true);
+ txtName.MaxByte = 36;//闄愬埗36涓瓧鑺�
+ txtName.UseFocusColor = true;
txtName.X = bodyFrameLayout.Width - Application.GetRealWidth(700) - ControlCommonResourse.XXLeft;
txtName.Gravity = Gravity.CenterVertical;
txtName.TextAlignment = TextAlignment.CenterRight;
@@ -120,7 +122,7 @@
});
//杈撳叆鍊兼敼鍙樹簨浠�(2020.04.05:浠ュ墠閮藉畾姝昏鎸夊洖杞﹂敭鎵嶆洿鏂�,鐜板湪鍙堣鍚嶅瓧娌℃湁鍚屾
//鎵�浠ユ墠鍑烘涓嬬瓥,娣诲姞杩欎釜浜嬩欢)
- txtName.TextChangeEventHandler += (sender, value) =>
+ txtName.TextChangedEvent += (value) =>
{
UserCenterResourse.UserInfo.UserName = value;
};
@@ -227,7 +229,7 @@
var rowOther = new FrameRowControl(listMidFrame.rowSpace / 2);
- listMidFrame.AddChidren(rowOther);
+ //listMidFrame.AddChidren(rowOther);
//绗笁鏂硅处鍙�
rowOther.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uAuthenticatedOtherPartyAccount), 400);
//搴曠嚎
@@ -284,7 +286,7 @@
{
var specialFrame = new FrameLayout();
specialFrame.Height = ControlCommonResourse.ListViewRowHeight;
- specialFrame.Y = Application.GetRealHeight(1394);
+ specialFrame.Y = Application.GetRealHeight(1394) - ControlCommonResourse.ListViewRowHeight - Application.GetRealHeight(12);
specialFrame.BackgroundColor = UserCenterColor.Current.White;
bodyFrameLayout.AddChidren(specialFrame);
@@ -316,7 +318,7 @@
/// 鏇存柊鐢ㄦ埛鍚�
/// </summary>
/// <param name="txtName"></param>
- private async void SaveUserName(TextInputExControl txtName, bool showMsg)
+ private void SaveUserName(TextInputControl txtName, bool showMsg)
{
if (UserCenterResourse.UserInfo.UserName == string.Empty)
{
@@ -333,7 +335,7 @@
var pra = new SaveUserNamePra();
pra.UserName = UserCenterResourse.UserInfo.UserName;
- bool result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateUserName", false, pra);
+ bool result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateUserName", false, pra);
if (result == false)
{
return;
@@ -402,10 +404,10 @@
/// </summary>
/// <param name="btnUser"></param>
/// <param name="imagePath"></param>
- private async void UpLoadUserIconFile(ImageView btnUser, string imagePath)
+ private void UpLoadUserIconFile(ImageView btnUser, string imagePath)
{
var pra = new { HeadImage = Shared.IO.FileUtils.ReadFile(imagePath) };
- var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateHeadImage", false, pra);
+ var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateHeadImage", false, pra);
if (result == true)
{
UserCenterResourse.UserInfo.UserIconFileChanged = true;
--
Gitblit v1.8.0