From b9cb076fe6127160c96c35bf9c8cebcffe1d5ccd Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 10 一月 2020 17:35:23 +0800
Subject: [PATCH] 2020.1.10

---
 ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs |   36 ++++++++++++++++++++++++++++--------
 1 files changed, 28 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs
index 2e1e226..2acb36b 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs
@@ -43,15 +43,33 @@
             //娓呯┖bodyFrame
             this.ClearBodyFrame();
 
+            string iconPath = System.IO.Path.Combine(UserCenterResourse.Option.UserPictruePath, memberResult.DistributedMark + ".png");
+            if (memberResult.HeadImage != null)
+            {
+                //鍐欏叆澶村儚鍐呭
+                Shared.IO.FileUtils.WriteFileByBytes(iconPath, memberResult.HeadImage);
+            }
+
             //澶村儚
-            var btnIcon = new PicViewControl(207, 207);
-            btnIcon.UnSelectedImagePath = "Center/Admin.png";
-            btnIcon.Y = Application.GetRealHeight(219);
-            btnIcon.Gravity = Gravity.CenterHorizontal;
-            bodyFrameLayout.AddChidren(btnIcon);
+            var btnUserIcon = new ImageView();
+            btnUserIcon.Height = Application.GetMinRealAverage(207);
+            btnUserIcon.Width = Application.GetMinRealAverage(207);
+            btnUserIcon.Radius = (uint)Application.GetMinRealAverage(207) / 2;
+            if (memberResult.HeadImage != null)
+            {
+                btnUserIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(iconPath);
+            }
+            else
+            {
+                btnUserIcon.ImagePath = "Center/Admin.png";
+            }
+            btnUserIcon.Y = Application.GetRealHeight(219);
+            btnUserIcon.Gravity = Gravity.CenterHorizontal;
+            bodyFrameLayout.AddChidren(btnUserIcon);
 
             //鎴愬憳ID
             var btnUserId = new NormalViewControl(800, 50, true);
+            btnUserId.IsBold = true;
             btnUserId.Y = Application.GetRealHeight(472);
             btnUserId.Gravity = Gravity.CenterHorizontal;
             btnUserId.Text = memberResult.Account;
@@ -61,6 +79,7 @@
 
             //鏄电О
             var btnName = new NormalViewControl(800, 55, true);
+            btnName.IsBold = true;
             btnName.Y = Application.GetRealHeight(541);
             btnName.Gravity = Gravity.CenterHorizontal;
             btnName.TextAlignment = TextAlignment.Center;
@@ -76,6 +95,7 @@
                 strMsg = string.Format(strMsg, "\r\n");
             }
             var btnmsg = new NormalViewControl(800, 100, true);
+            btnmsg.IsBold = true;
             btnmsg.Y = Application.GetRealHeight(913);
             btnmsg.TextSize = 12;
             btnmsg.Text = strMsg;
@@ -129,7 +149,7 @@
             if (resultValue == null)
             {
                 //鍑虹幇鏈煡閿欒,鏁版嵁涓㈠け
-                string msg = Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost);
+                string msg = Language.StringByID(R.MyInternationalizationString.uUnKnownError);
                 this.ShowMassage(ShowMsgType.Tip, msg);
                 return;
             }
@@ -146,7 +166,7 @@
             if (memberInfoRes == null)
             {
                 //鍑虹幇鏈煡閿欒,鏁版嵁涓㈠け
-                string msg = Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost);
+                string msg = Language.StringByID(R.MyInternationalizationString.uUnKnownError);
                 this.ShowMassage(ShowMsgType.Tip, msg);
                 return;
             }
@@ -156,7 +176,7 @@
 
             //鎴愬憳娣诲姞鎴愬姛
             var form = new AddMemberSuccessForm();
-            form.AddForm(memberInfoRes);
+            form.AddForm(memberInfoRes, memberResult.DistributedMark);
             form.FormCloseEvent += (() =>
             {
                 this.CloseForm();

--
Gitblit v1.8.0