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/Member/SubAccountLevelUpSuccessForm.cs | 54 +++++++++++++++++++++++++++--------------------------- 1 files changed, 27 insertions(+), 27 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs index f50cf44..06f7bcc 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(UserCenterResourse.AccountOption.UserPictruePath, memberInfo.DistributedMark + ".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,17 +61,17 @@ 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; + 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; @@ -80,8 +80,8 @@ //鏉冮檺 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 +128,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