From 691dbe24f5724f153e07947c7b75bdfea5f0b6d5 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 24 九月 2024 16:15:15 +0800
Subject: [PATCH] 离线控制模式

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

diff --git a/HDL_ON/UI/UI1-Login/RegisterPage.cs b/HDL_ON/UI/UI1-Login/RegisterPage.cs
index e6225f9..73b0979 100644
--- a/HDL_ON/UI/UI1-Login/RegisterPage.cs
+++ b/HDL_ON/UI/UI1-Login/RegisterPage.cs
@@ -233,11 +233,24 @@
             AddChidren(bodyView);
 
             //2020-12-22 澧炲姞鐐瑰嚮闅愯棌閿洏浜嬩欢
-            bodyView.MouseDownEventHandler += (sender, e) => {
+            bodyView.MouseDownEventHandler += (sender, e) =>
+            {
                 Application.HideSoftInput();
             };
 
             pm = new HttpServerRequest();
+            try
+            {
+                if (OnAppConfig.Instance.GlobalRegion != null)
+                {
+                    OnAppConfig.Instance.GlobalRegion.regionUrl = "";
+                }
+                getServerList();
+
+            }catch(Exception ex)
+            {
+                MainPage.Log("Error", "杩涘叆娉ㄥ唽鐣岄潰AppConfig寮傚父锛�" + ex.Message);
+            }
         }
 
         //public RegisterPage(Action action)
@@ -260,7 +273,7 @@
                 Application.HideSoftInput();
             };
 
-            new TopViewDiv(this, bodyView, Language.StringByID(StringId.Register)).LoadTopView(backAction);
+            new TopViewDiv(this, bodyView, Language.StringByID(StringId.Register)) { maginY = 10 }.LoadTopView(backAction);
             //new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(StringId.Register));
 
             #region 娉ㄥ唽鏂瑰紡閫夋嫨
@@ -289,7 +302,7 @@
                 TextSize = CSS_FontSize.TextFontSize,
             };
             bodyView.AddChidren(btnEmailLogin);
-            if(Language.CurrentLanguage!= "Chinese")
+            if (Language.CurrentLanguage != "Chinese")
             {
                 btnPhoneLogin.Width = Application.GetRealWidth(180);
                 btnEmailLogin.Width = Application.GetRealWidth(180);
@@ -324,7 +337,7 @@
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = CSS_Color.PromptingColor1,
                 TextSize = CSS_FontSize.TextFontSize,
-                TextID = StringId.PleaseSelectCountryOrRegion,
+                TextID = StringId.PlsSelectServer,
             };
             serverView.AddChidren(btnServerText);
 
@@ -372,8 +385,10 @@
             };
 
             //璺宠浆鍥藉鍖哄彿閫夋嫨鐣岄潰
-            EventHandler<MouseEventArgs> eHandler = (sender, e) => {
-                JLCountrycode.CountryCodeView.Current.Show((countryName, code) => {
+            EventHandler<MouseEventArgs> eHandler = (sender, e) =>
+            {
+                JLCountrycode.CountryCodeView.Current.Show((countryName, code) =>
+                {
                     if (!string.IsNullOrEmpty(code))
                     {
                         phoneZoneCode = code;

--
Gitblit v1.8.0