黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
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.AccountOption.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);