From 1293fea19c6a2b558986856e301d5218c1979692 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 27 十一月 2020 14:08:43 +0800
Subject: [PATCH] Revert "20201127 接受bus数据修改完成,搜索网关、一端口修改完成"

---
 HDL_ON/UI/UI1-Login/RegisterPage.cs |  137 +++++++++------------------------------------
 1 files changed, 27 insertions(+), 110 deletions(-)

diff --git a/HDL_ON/UI/UI1-Login/RegisterPage.cs b/HDL_ON/UI/UI1-Login/RegisterPage.cs
index 09ccbec..720f2ab 100644
--- a/HDL_ON/UI/UI1-Login/RegisterPage.cs
+++ b/HDL_ON/UI/UI1-Login/RegisterPage.cs
@@ -27,36 +27,6 @@
         /// 閫夋嫨閭鐧诲綍鎸夐挳
         /// </summary>
         Button btnEmailLogin;
-        #region 鏈嶅姟鍣ㄩ�夋嫨
-        /// <summary>
-        /// 鏈嶅姟鍣ㄥ尯鍩�
-        /// </summary>
-        FrameLayout serverView;
-        /// <summary>
-        /// 鏈嶅姟鍣↖con鎸夐挳
-        /// </summary>
-        Button btnServerIcon;
-        /// <summary>
-        /// 鏈嶅姟鍣ㄦ枃鏈
-        /// </summary>
-        Button btnServerText;
-        ///// <summary>
-        ///// 鏈嶅姟鍣ㄦ枃鏈
-        ///// </summary>
-        //EditText etServer;
-        ///// <summary>
-        ///// 鏈嶅姟鍣ㄥ瓙鍖哄煙閲岄潰鐨勫垎鍓茬嚎1
-        ///// </summary>
-        //Button btnLineVertical_server;
-        /// <summary>
-        ///鏈嶅姟鍣╣o鎸夐挳
-        /// </summary>
-        Button btnServerGo;
-        /// <summary>
-        /// 鏈嶅姟鍣ㄥ瓙鍖哄煙搴曢儴妯嚎
-        /// </summary>
-        Button btnServerBottomLine;
-        #endregion
         /// <summary>
         /// 璐﹀彿瀛愬尯鍩�
         /// </summary>
@@ -198,10 +168,6 @@
         /// 鎵嬫満鍖哄彿
         /// </summary>
         string phoneZoneCode = "86";
-        /// <summary>
-        /// 鏄惁閫夋嫨杩囨湇鍔″櫒
-        /// </summary>
-        bool isSelectServer;
 
         string registerPhone;
         string registerEmail;
@@ -261,71 +227,11 @@
             bodyView.AddChidren(btnEmailLogin);
             #endregion
 
-            #region 鏈嶅姟鍣ㄩ�夋嫨
-            serverView = new FrameLayout()
-            {
-                X = Application.GetRealWidth(28),
-                Y = Application.GetRealHeight(167),
-                Width = Application.GetRealWidth(319),
-                Height = Application.GetRealHeight(44),
-            };
-            bodyView.AddChidren(serverView);
-
-            btnServerIcon = new Button()
-            {
-                X = Application.GetRealWidth(9),
-                Gravity = Gravity.CenterVertical,
-                Width = Application.GetMinRealAverage(20),
-                Height = Application.GetMinRealAverage(20),
-                UnSelectedImagePath = "LoginIcon/Server.png",
-
-            };
-            serverView.AddChidren(btnServerIcon);
-
-            btnServerText = new Button()
-            {
-                X = Application.GetRealWidth(49),
-                Width = Application.GetRealWidth(319 - 78),
-                TextAlignment = TextAlignment.CenterLeft,
-                //TextColor = CSS_Color.FirstLevelTitleColor,
-                TextColor = CSS_Color.PromptingColor1,
-                TextSize = CSS_FontSize.TextFontSize,
-                //Text = "璇烽�夋嫨鍥藉/鍖哄煙",
-                TextID = StringId.PleaseSelectCountryOrRegion,
-                //PlaceholderTextColor = CSS_Color.PromptingColor1,
-                //PlaceholderText = Language.StringByID(StringId.PlsRegisterPassword),
-                //SecureTextEntry = true,
-            };
-            serverView.AddChidren(btnServerText);
-
-            #region 瀵嗙爜鐧诲綍-鎺т欢鍔犺浇
-            btnServerGo = new Button()
-            {
-                X = Application.GetRealWidth(303),
-                Gravity = Gravity.CenterVertical,
-                Width = Application.GetMinRealAverage(16),
-                Height = Application.GetMinRealAverage(16),
-                UnSelectedImagePath = "Public/Right.png",
-            };
-            serverView.AddChidren(btnServerGo);
-
-            #endregion
-            btnServerBottomLine = new Button()
-            {
-                Y = Application.GetRealHeight(42),
-                BackgroundColor = CSS_Color.DividingLineColor,
-                SelectedBackgroundColor = CSS_Color.MainColor,
-                Height = Application.GetRealHeight(1),
-            };
-            serverView.AddChidren(btnServerBottomLine);
-            #endregion
-
-            int topPadding = Application.GetRealHeight(12);
             #region 璐﹀彿濉啓
             accountView = new FrameLayout()
             {
                 X = Application.GetRealWidth(28),
-                Y = serverView.Bottom + topPadding,
+                Y = Application.GetRealHeight(167),
                 Width = Application.GetRealWidth(319),
                 Height = Application.GetRealHeight(44),
             };
@@ -407,7 +313,7 @@
             passwordView = new FrameLayout()
             {
                 X = Application.GetRealWidth(28),
-                Y = accountView.Bottom + topPadding,
+                Y = Application.GetRealHeight(223),
                 Width = Application.GetRealWidth(319),
                 Height = Application.GetRealHeight(44),
             };
@@ -473,7 +379,7 @@
             repeatPasswordView = new FrameLayout()
             {
                 X = Application.GetRealWidth(28),
-                Y = passwordView.Bottom + topPadding,
+                Y = Application.GetRealHeight(279),
                 Width = Application.GetRealWidth(319),
                 Height = Application.GetRealHeight(44),
             };
@@ -541,8 +447,7 @@
             verificationCodeView = new FrameLayout()
             {
                 X = Application.GetRealWidth(28),
-                Y = repeatPasswordView.Bottom + topPadding,
-                //Y = Application.GetRealHeight(335),
+                Y = Application.GetRealHeight(335),
                 Width = Application.GetRealWidth(319),
                 Height = Application.GetRealHeight(44),
             };
@@ -619,8 +524,7 @@
             btnRegister = new Button()
             {
                 Gravity = Gravity.CenterHorizontal,
-                Y = verificationCodeView.Bottom + Application.GetRealHeight(42),
-                //Y = Application.GetRealHeight(421),
+                Y = Application.GetRealHeight(421),
                 Width = Application.GetRealWidth(220),
                 Height = Application.GetRealHeight(44),
                 Radius = (uint)Application.GetRealHeight(22),
@@ -789,11 +693,11 @@
                 //    userName = revertData.name
                 //};
                 UserInfo.Current.userType = revertData.userType;
-                UserInfo.Current.accountString = account;
+                UserInfo.Current.AccountString = account;
                 //UserInfo.Current.password = password;
-                UserInfo.Current.lastTime = DateTime.Now;
+                UserInfo.Current.LastTime = DateTime.Now;
                 UserInfo.Current.ID = revertData.userId;
-                UserInfo.Current.loginTokenString = revertData.headerPrefix + revertData.accessToken;
+                UserInfo.Current.LoginTokenString = revertData.headerPrefix + revertData.accessToken;
                 UserInfo.Current.refreshToken = revertData.refreshToken;
                 UserInfo.Current.userName = revertData.name;
 
@@ -823,15 +727,28 @@
             var responsePack = pm.GetHomePager();
             if (responsePack == StateCode.SUCCESS)
             {
-                //2020-11-13 寰呯‘璁わ紝娌℃湁浣忓畢锛屼笉绠楃櫥褰曟垚鍔�
-                if (UserInfo.Current.regionList != null && UserInfo.Current.regionList.Count > 0)
-                {
-                    result = true;
-                }
             }
             else
             {
-                IMessageCommon.Current.ShowErrorInfoAlter(responsePack);
+                var tipStr = "Server erorr";
+                switch (responsePack)
+                {
+                    case "NoLogin":
+                        tipStr = Language.StringByID(StringId.InvalidLoginCertificate);
+                        break;
+                }
+                Application.RunOnMainThread(() =>
+                {
+                    //鎻愮ず鍘熷洜
+                    var tip = new Tip()
+                    {
+                        Text = tipStr,
+                        CloseTime = 1,
+                        Direction = AMPopTipDirection.None
+                    };
+                    tip.Show(bodyView);
+                });
+
             }
             return result;
         }

--
Gitblit v1.8.0