陈嘉乐
2020-10-13 611786df5108dca0bdcff03834cc285cba4b8e61
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
@@ -21,7 +21,6 @@
        /// </summary>
        ImageView userHeadImageView;
        #region 图标选择部分图标
        /// <summary>
        /// 背景图选项区域
@@ -44,8 +43,6 @@
        /// </summary>
        Button btnCancel;
        #endregion
        #region 个人信息选项区域
        /// <summary>
@@ -168,19 +165,22 @@
        /// 更新头像的回调函数
        /// </summary>
        Action updataHeadImage;
        /// <summary>
        /// 更新用户名称的回调函数
        /// </summary>
        Action updataUserName;
        public PersonalDataPage(Action upHeadImage)
        public PersonalDataPage(Action upHeadImage,Action upUserName)
        {
            updataHeadImage = upHeadImage;
            updataUserName = upUserName;
            bodyView = this;
        }
        public void LoadView()
        {
            bodyView.BackgroundColor = CSS_Color.BackgroundColor;
            new TopViewDiv(bodyView, Language.StringByID(StringId.PersonalCenter)).LoadTopView();
            //new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.PersonalCenter));
            headPortraitView = new FrameLayout()
            {
@@ -504,7 +504,7 @@
                TextAlignment = TextAlignment.TopLeft,
                TextColor = CSS_Color.PromptingColor1,
                TextSize = CSS_FontSize.TextFontSize,
                TextID = StringId.InterpretationSettingsTip
                TextID = StringId.AppUnlockSettingsTip
            };
            interpretationSettingsView.AddChidren(btnInterpretationSettingsTip);
@@ -531,10 +531,15 @@
            };
            bodyView.AddChidren(btnLogout);
            if(MainPage.Increase)
            {
                btnLogout.Y = Application.GetRealHeight(613);
                btnLogout.Height = Application.GetRealHeight(50);
                bodyView.AddChidren(new Button() { Y = Application.GetRealHeight(663), Height = Application.GetRealHeight(20), BackgroundColor = CSS_Color.MainBackgroundColor });
            }
            LoadEventList();
        }
        /// <summary>
        /// 加载图标选择选项
@@ -555,7 +560,9 @@
                Height = Application.GetRealHeight(100),
                BackgroundColor = CSS_Color.MainBackgroundColor,
                Radius = (uint)Application.GetRealWidth(12),
                AnimateSpeed = 0.3f,
                Animate = Animate.DownToUp,
                ScrollEnabled = false,
            };
            pictureOptionView.AddChidren(optionView);
@@ -607,13 +614,12 @@
                Radius = (uint)Application.GetRealWidth(6),
                TextID = StringId.Cancel,
                TextColor = CSS_Color.WarningColor,
                Animate = Animate.DownToUp
                AnimateSpeed = 0.3f,
                Animate = Animate.DownToUp,
            };
            pictureOptionView.AddChidren(btnCancel);
            LoadEvent_PictureOptionViewEventList();
        }
    }
}