From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 17 十二月 2020 09:07:13 +0800 Subject: [PATCH] 新云端Ver1.3 --- ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs | 58 +++++++++++++++++++++++++++------------------------------- 1 files changed, 27 insertions(+), 31 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs index f50cf44..3d0f656 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs @@ -13,7 +13,7 @@ /// <summary> /// 鎴愬憳鐨勪俊鎭� - /// </summary> + /// </summary> private MemberInfoRes memberInfo = null; #endregion @@ -23,19 +23,19 @@ /// <summary> /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) /// </summary> - /// <param name="info">鎴愬憳淇℃伅</param> - public void ShowForm(MemberInfoRes info) - { - this.memberInfo = info; - - //鍒濆鍖栦腑閮ㄦ帶浠� - this.InitMiddleFrame(); + /// <param name="info">鎴愬憳淇℃伅</param> + public void ShowForm(MemberInfoRes info) + { + this.memberInfo = info; + + //鍒濆鍖栦腑閮ㄦ帶浠� + this.InitMiddleFrame(); } - /// <summary> - /// 鍒濆鍖栦腑閮ㄦ帶浠� - /// </summary> - private void InitMiddleFrame() + /// <summary> + /// 鍒濆鍖栦腑閮ㄦ帶浠� + /// </summary> + private void InitMiddleFrame() { //鑳屾櫙妗� var frame = new FrameLayout(); @@ -47,12 +47,12 @@ bodyFrameLayout.AddChidren(frame); //鐢ㄦ埛鍥炬爣 - string iconPath = System.IO.Path.Combine(UserCenterResourse.Option.UserPictruePath, memberInfo.DistributedMark + ".png"); + string iconPath = System.IO.Path.Combine(HdlFileNameResourse.UserPictrueDirectory, memberInfo.ChildAccountId + ".png"); var btnUserIcon = new ImageView(); - btnUserIcon.Height = Application.GetMinRealAverage(207); - btnUserIcon.Width = Application.GetMinRealAverage(207); - btnUserIcon.Radius = (uint)Application.GetMinRealAverage(207) / 2; - btnUserIcon.Y = Application.GetRealHeight(104); + btnUserIcon.Height = this.GetPictrueRealSize(207); + btnUserIcon.Width = this.GetPictrueRealSize(207); + btnUserIcon.Radius = (uint)this.GetPictrueRealSize(207) / 2; + btnUserIcon.Y = Application.GetRealHeight(104); btnUserIcon.Gravity = Gravity.CenterHorizontal; if (System.IO.File.Exists(iconPath) == true) { @@ -61,27 +61,23 @@ else { btnUserIcon.ImagePath = "Center/Admin.png"; - } + } frame.AddChidren(btnUserIcon); //鏄电О var btnName = new NormalViewControl(frame.Width, Application.GetRealHeight(55), false); - btnName.IsBold = true; - btnName.TextAlignment = TextAlignment.Center; - btnName.Y = Application.GetRealHeight(334); - btnName.TextColor = UserCenterColor.Current.TextColor2; - btnName.TextSize = 16; - btnName.Text = memberInfo.UserName; - if (string.IsNullOrEmpty(memberInfo.UserName) == true) - { - btnName.Text = memberInfo.Account; - } + btnName.IsBold = true; + btnName.TextAlignment = TextAlignment.Center; + btnName.Y = Application.GetRealHeight(334); + btnName.TextColor = UserCenterColor.Current.TextColor2; + btnName.TextSize = 16; + btnName.Text = memberInfo.ShowName; frame.AddChidren(btnName); //鏉冮檺 var btnAuthority = new NormalViewControl(frame.Width, Application.GetRealHeight(50), false); - btnAuthority.TextAlignment = TextAlignment.Center; - btnAuthority.Y = Application.GetRealHeight(400); + btnAuthority.TextAlignment = TextAlignment.Center; + btnAuthority.Y = Application.GetRealHeight(400); btnAuthority.TextColor = UserCenterColor.Current.TextGrayColor1; if (memberInfo.AccountType == 1) { @@ -128,7 +124,7 @@ btnView.TextColor = UserCenterColor.Current.TextGrayColor1; btnView.IsMoreLines = true; btnView.TextSize = 12; - frame.AddChidren(btnView); + frame.AddChidren(btnView); //瀹屾垚 var btnFinish = new BottomClickButton(688); -- Gitblit v1.8.0