wxr
2020-11-04 e6a26ee148587327478d9a82624a820c907b6e16
HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -1,4 +1,5 @@
using System;
using System.Text.RegularExpressions;
using System.Threading;
using HDL_ON.DAL.Server;
using HDL_ON.UI.CSS;
@@ -144,18 +145,19 @@
        string verAccount = "";
        public void VerfifyLogin(string account )
        {
            verAccount = account;
            LoadView(account);
        }
        /// <summary>
        ///
        /// </summary>
        string registerPhone;
        string registerEmail;
        /// <summary>
        /// 加载视图
        /// </summary>
        public void LoadView(string account = "")
        public void LoadView(UserInfo userInfo = null)
        {
            Language.CurrentLanguage = "Chinese";
            var btnIcon = new Button()
            {
                X = Application.GetRealWidth(28),
@@ -179,7 +181,7 @@
            btnIcon.MouseUpEventHandler += (sender, e) =>
            {
#if DEBUG
                etAccount.Text = "464027401@qq.com";
                etAccount.Text = "464027401@qq.com"; //"2791308028@qq.com";//
                etPassword.Text = "qqqqqq";
                btnLogin.IsSelected = true;
#endif
@@ -230,6 +232,7 @@
                TextColor = CSS_Color.FirstLevelTitleColor,
                Text = "+86",
                TextSize = CSS_FontSize.TextFontSize,
                Enable = false,
            };
            if (loginType == 0)
                accountView.AddChidren(btnGlobalRoaming);
@@ -256,9 +259,10 @@
            };
            accountView.AddChidren(etAccount);
            if (account != "")
            if (userInfo != null)
            {
                etAccount.Text = account;
                registerEmail = userInfo.userEmailInfo;
                etAccount.Text = registerPhone = userInfo.userMobileInfo;
            }
            btnAccountViewBottomLine = new Button()
@@ -437,7 +441,7 @@
            LoadEventList();
            account = etAccount.Text.Trim();
            #if DEBUG
            #if DEBUG1211
            //本地模式
            Button btnLocalMode = new Button()
            {