From 67ed2f4a0ebe1b265a563bad3f82627ed78c3054 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 20 十一月 2020 15:48:11 +0800
Subject: [PATCH] 2020-11-20 1.修改替换正则检测方法。2.修改请求失败tip方法。3.增加隐私政策功能。

---
 HDL_ON/UI/UI1-Login/RegisterPage.cs |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/HDL_ON/UI/UI1-Login/RegisterPage.cs b/HDL_ON/UI/UI1-Login/RegisterPage.cs
index b55a804..764e964 100644
--- a/HDL_ON/UI/UI1-Login/RegisterPage.cs
+++ b/HDL_ON/UI/UI1-Login/RegisterPage.cs
@@ -246,22 +246,22 @@
                 Text = "+" + phoneZoneCode,
                 TextSize = CSS_FontSize.TextFontSize,
             };
+
+            //璺宠浆鍥藉鍖哄彿閫夋嫨鐣岄潰
+            EventHandler<MouseEventArgs> eHandler = (sender, e) => {
+                JLCountrycode.CountryCodeView.Current.Show((countryName, code) => {
+                    if (!string.IsNullOrEmpty(code))
+                    {
+                        phoneZoneCode = code;
+                        btnGlobalRoaming.Text = "+" + phoneZoneCode;
+                    }
+                });
+            };
+            btnGlobalRoaming.MouseUpEventHandler += eHandler;
+
             if (accountType == 0)
             {
                 accountView.AddChidren(btnGlobalRoaming);
-
-                EventHandler<MouseEventArgs> eHandler = (sender, e) => {
-                    JLCountrycode.CountryCodeView.Current.Show((countryName, code) => {
-                        if (!string.IsNullOrEmpty(code))
-                        {
-                            phoneZoneCode = code;
-                            btnGlobalRoaming.Text = "+" + phoneZoneCode;
-
-                        }
-                    });
-                };
-                btnGlobalRoaming.MouseUpEventHandler += eHandler;
-                
             }
 
             //btnDividingLineVertical_AccountView = new Button()
@@ -283,6 +283,7 @@
                 TextSize = CSS_FontSize.TextFontSize,
                 PlaceholderTextColor = CSS_Color.PromptingColor1,
                 PlaceholderText = Language.StringByID(StringId.PlsEntryPhoneNumber),
+                IsNumberKeyboardType = true
             };
             accountView.AddChidren(etAccount);
 
@@ -677,7 +678,7 @@
             var result = false;
             //璋冪敤鐧诲綍鎺ュ彛
             var loginResult = pm.LoginByPassword(account, password);
-            if (loginResult.Code == HttpUtil.SUCCESS_CODE)
+            if (loginResult.Code == StateCode.SUCCESS)
             {
                 var revertData = Newtonsoft.Json.JsonConvert.DeserializeObject<UserLoginRes>(loginResult.Data.ToString());
                 MainPage.LoginUser = new UserInfo
@@ -698,7 +699,7 @@
             else
             {
                 //鐧诲綍澶辫触
-                IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Login, loginResult.Code);
+                IMessageCommon.Current.ShowErrorInfoAlter(loginResult.Code);
                 Application.RunOnMainThread(() =>
                 {
                     btnPasswordViewBottomLine.BackgroundColor = CSS_Color.AuxiliaryColor2;
@@ -715,7 +716,7 @@
         {
             var result = false;
             var responsePack = pm.GetHomePager();
-            if (responsePack == HttpUtil.SUCCESS_CODE)
+            if (responsePack == StateCode.SUCCESS)
             {
             }
             else

--
Gitblit v1.8.0