陈嘉乐
2020-10-13 611786df5108dca0bdcff03834cc285cba4b8e61
HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -142,11 +142,26 @@
        HttpServerRequest pm;
        #endregion
        string verAccount = "";
        /// <summary>
        ///
        /// </summary>
        string registerPhone;
        string registerEmail;
        public void VerfifyLogin(string account )
        {
            verAccount = account;
            LoadView(account);
        }
        /// <summary>
        /// 加载视图
        /// </summary>
        public void LoadView(string account = "")
        {
            Language.CurrentLanguage = "Chinese";
            var btnIcon = new Button()
            {
                X = Application.GetRealWidth(28),
@@ -192,7 +207,7 @@
            btnEmailLogin = new Button()
            {
                X = btnPhoneLogin.Right,
                X = btnPhoneLogin.Right + Application.GetRealWidth(20),
                Y = Application.GetRealHeight(177),
                Width = Application.GetRealWidth(100),
                Height = Application.GetRealHeight(40),
@@ -259,7 +274,6 @@
                Height = Application.GetRealHeight(1),
            };
            accountView.AddChidren(btnAccountViewBottomLine);
            btnAccountIcon = new Button()
            {
@@ -363,8 +377,11 @@
                SelectedTextColor = CSS_Color.MainColor,
                TextAlignment = TextAlignment.CenterRight,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextColor = CSS_Color.PromptingColor1,
                Visible = false,
                IsSelected = false,
            };
            passwordView.AddChidren(btnGetVerificationCode);
            #endregion
            btnPasswordViewBottomLine = new Button()
@@ -377,7 +394,6 @@
            passwordView.AddChidren(btnPasswordViewBottomLine);
            #endregion
            #region 注册与快捷登录
            btnRegister = new Button()
@@ -424,9 +440,33 @@
            };
            bodyView.AddChidren(btnLogin);
            LoadEventList();
            account = etAccount.Text.Trim();
            #if DEBUG1211
            //本地模式
            Button btnLocalMode = new Button()
            {
                Y = Application.GetRealHeight(600),
                Height = Application.GetRealHeight(67),
                Text = "Local Mode",
                TextAlignment = TextAlignment.Center,
                BackgroundColor  = CSS_Color.MainColor,
                TextColor = CSS_Color.TextualColor,
            };
            bodyView.AddChidren(btnLocalMode);
            btnLocalMode.MouseUpEventHandler = (sender, e) =>
            {
                MainPage.LocalMode = true;
                MainPage.LoginUser = new UserInfo();
                MainPage.GoUserPage();
            };
            MainPage.Log("etAccount.TextAlignment : " + etAccount.TextAlignment.ToString());
            #endif
        }
    }
}