From fba3a6c55c4de790eaeee55f9897d668bb36dbb8 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 13 十月 2022 13:55:21 +0800
Subject: [PATCH] 2022年10月13日13:55:00

---
 HDL_ON/UI/UI1-Login/LoginPage.cs |  103 +++++++++++++++++++++++++++++++++------------------
 1 files changed, 66 insertions(+), 37 deletions(-)

diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs
index d1720bf..7f8e495 100644
--- a/HDL_ON/UI/UI1-Login/LoginPage.cs
+++ b/HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -168,6 +168,9 @@
         /// </summary>
         public void LoadView(UserInfo userInfo = null)
         {
+#if __Android__
+            OnAppConfig.Instance.isAgreePrivacyPolicy = true;
+#endif
             var btnIcon = new Button()
             {
                 X = Application.GetRealWidth(28),
@@ -199,21 +202,23 @@
             btnIcon.MouseUpEventHandler += (sender, e) =>
             {
 
+
                 //ESOnVideo.Current.Test(false);
 
                 //return;
                 if (b)
                 {
-                    //etAccount.Text = "tf@smarttech.com.ua";//鍥藉璐﹀彿锛屾湁浣忓畢锛岀櫥褰曟棤娉曟樉绀�
                     //etAccount.Text = "13375012446";//娴嬭瘯鏈嶅姟鍣�
                     //etAccount.Text = "1033326940@qq.com";
                     //etAccount.Text = "18022428438";//wjc
                     //etAccount.Text = "13602944661";//kx
-                    etAccount.Text = "13226233133";//璞嗚眴
+                    //etAccount.Text = "13226233133";//璞嗚眴
                     etAccount.Text = "18316672920";
                     //etAccount.Text = "18316120654";//tujie
-                    etAccount.Text = "15626203746";
                     //etAccount.Text = "13450425807";//榛勭婧� knx椤圭洰
+                    etAccount.Text = "18244942707";
+                    etAccount.Text = "tf@smarttech.com.ua";
+                    etAccount.Text = "13418062953";
                 }
                 else
                 {
@@ -223,7 +228,7 @@
                     //etAccount.Text = "13682244600";//娉㈠摜
                     etAccount.Text = "13168123446";//鏄嗘槑閲戣寕椤圭洰锛屾柊椋庨棶棰�
                     //etAccount.Text = "2949126848@qq.com";//闄堢惓
-                    //etAccount.Text = "13415629083";
+                    etAccount.Text = "15014291819 ";
                     //etAccount.Text = "13676202754";//宸存灄鏈嶅姟鍣�
                     //etAccount.Text = "13602944661";//kx
                     //etAccount.Text = "18666455392";//13375012446//13602944661//tzy 18778381374
@@ -232,7 +237,7 @@
                     //etAccount.Text = "18598273624";
                     //etAccount.Text = "tf@smarttech.com.ua";
                     //etAccount.Text = "18814122445";//钁f辰鏂� 澶╂渤鍔炲叕瀹�
-                    etAccount.Text = "18824864143";//"464027401@qq.com"; //"2791308028@qq.com";//13697499568
+                    //etAccount.Text = "18824864143";//"464027401@qq.com"; //"2791308028@qq.com";//13697499568
                     //etAccount.Text = "18402017839";//wjc
                     //etAccount.Text = "13430286286";//cwc
                     //etAccount.Text = "13709260805";
@@ -240,10 +245,14 @@
                     //etAccount.Text = "13375012441";
                     //etAccount.Text = "info@smartlife-ks.com";
                     //etAccount.Text = "551775569@qq.com";//wcf
+                    etAccount.Text = "15626203746";
+                    //etAccount.Text = "18244942707";
+                    //etAccount.Text = "zhangquansongjava@163.com";
+                    //etAccount.Text = "s.savinov@hdlautomation.ru";
                 }
                 b = !b;
                 etPassword.Text = "123456";
-                if(etAccount.Text == "fslcjm5@163.com")
+                if(etAccount.Text == "13418062953")
                 {
                     etPassword.Text = "a123456";
                 }
@@ -278,9 +287,9 @@
                 TextSize = CSS_FontSize.TextFontSize,
             };
             bodyView.AddChidren(btnEmailLogin);
-            #endregion
+#endregion
 
-            #region 璐﹀彿濉啓
+#region 璐﹀彿濉啓
             accountView = new FrameLayout()
             {
                 X = Application.GetRealWidth(28),
@@ -368,9 +377,9 @@
                 accountView.AddChidren(btnAccountIcon);
             }
 
-            #endregion
+#endregion
 
-            #region 瀵嗙爜濉啓
+#region 瀵嗙爜濉啓
             passwordView = new FrameLayout()
             {
                 X = Application.GetRealWidth(28),
@@ -414,7 +423,7 @@
             };
             passwordView.AddChidren(etPassword);
 
-            #region 瀵嗙爜鐧诲綍-鎺т欢鍔犺浇
+#region 瀵嗙爜鐧诲綍-鎺т欢鍔犺浇
             btnVisiblePassword = new Button()
             {
                 X = Application.GetRealWidth(223),
@@ -446,9 +455,9 @@
                 TextSize = 12,
             };
             passwordView.AddChidren(btnForgetPassword);
-            #endregion
+#endregion
 
-            #region 楠岃瘉鐮佺櫥褰�-鎺т欢鍔犺浇
+#region 楠岃瘉鐮佺櫥褰�-鎺т欢鍔犺浇
             btnGetVerificationCode = new Button()
             {
                 X = Application.GetRealWidth(219),
@@ -462,7 +471,7 @@
                 IsSelected = false,
             };
             passwordView.AddChidren(btnGetVerificationCode);
-            #endregion
+#endregion
 
             btnPasswordViewBottomLine = new Button()
             {
@@ -473,9 +482,9 @@
             };
             passwordView.AddChidren(btnPasswordViewBottomLine);
 
-            #endregion
+#endregion
 
-            #region 娉ㄥ唽涓庡揩鎹风櫥褰�
+#region 娉ㄥ唽涓庡揩鎹风櫥褰�
             btnRegister = new Button()
             {
                 X = Application.GetRealWidth(28),
@@ -502,7 +511,7 @@
             };
             bodyView.AddChidren(btnSwitchLoginMode);
 
-            #endregion
+#endregion
 
             btnLogin = new Button()
             {
@@ -532,9 +541,16 @@
             };
             bodyView.AddChidren(btnDomeLogin);
 
-            if(Language.CurrentLanguage!= "Chinese")
+            if (Language.CurrentLanguage != "Chinese")
             {
-                btnDomeLogin.Text = "Tourist experience";
+                if (Language.CurrentLanguage == "russian")
+                {
+                    btnDomeLogin.Text = "袚芯褋褌械胁芯泄 褉械卸懈屑";
+                }
+                else
+                {
+                    btnDomeLogin.Text = "Tourist experience";
+                }
             }
 
             btnDomeLogin.MouseUpEventHandler = (sender, e) => {
@@ -547,7 +563,7 @@
                 //妤煎眰鎴块棿鍒楄〃
                 var floor1 = new SpatialInfo("FLOOR") { roomName = "F1", parentId = DB_ResidenceData.Instance.CurrentRegion.id };
                 floor1.SaveRoomFile();
-                #region 鎴块棿涓� -- 瀹㈠巺
+#region 鎴块棿涓� -- 瀹㈠巺
                 //澶勭悊鎴块棿鍒楄〃
 
                 var room1 = new Room()
@@ -627,8 +643,8 @@
                 SpatialInfo.CurrentSpatial.RoomList.Add(room4);
 
 
-                #region 瀹㈠巺
-                #region 鍔熻兘
+#region 瀹㈠巺
+#region 鍔熻兘
                 var lightRgb1 = new Function()
                 {
                     sid = "light1",
@@ -754,8 +770,8 @@
                     },
                 };
                 fh.SaveFunctionFile();
-                #endregion
-                #region 鍦烘櫙
+#endregion
+#region 鍦烘櫙
                 var scene1 = new Scene()
                 {
                     sid = "scene1",
@@ -907,9 +923,9 @@
 
                 };
                 scene2.SaveSceneFile();
-                #endregion
-                #endregion
-                #region 椁愬巺
+#endregion
+#endregion
+#region 椁愬巺
                 var lightSwitch3 = new Function()
                 {
                     sid = "light6",
@@ -1013,8 +1029,8 @@
                     }
                 };
                 scene4.SaveSceneFile();
-                #endregion
-                #region 鍗у
+#endregion
+#region 鍗у
                 var ac = new Function()
                 {
                     sid = "ac1",
@@ -1053,7 +1069,7 @@
                 //    collect = false,
                 //};
                 //scene6.SaveSceneFile();
-                #endregion
+#endregion
 
 
                 var lightSwitch6 = new Function()
@@ -1071,7 +1087,7 @@
                 };
                 lightSwitch6.SaveFunctionFile();
 
-                #endregion
+#endregion
 
                 var fileList = Common.FileUtlis.Files.ReadFiles();
                 foreach(var file in fileList)
@@ -1090,7 +1106,7 @@
             LoadEventList();
             account = etAccount.Text.Trim();
 
-            #if DEBUG1211
+#if DEBUG1211
             //鏈湴妯″紡
             Button btnLocalMode = new Button()
             {
@@ -1112,9 +1128,9 @@
 
             MainPage.Log("etAccount.TextAlignment : " + etAccount.TextAlignment.ToString());
 
-            #endif
+#endif
 
-            #region 闅愮鏀跨瓥
+#region 闅愮鏀跨瓥
             AddServiceAgreementControl(bodyView);
             #endregion
 
@@ -1128,7 +1144,13 @@
         /// <param name="frameBack"></param>
         private void AddServiceAgreementControl(FrameLayout frameLayout)
         {
-            isAgreePrivacyPolicy = OnAppConfig.Instance.isAgreePrivacyPolicy;
+            isAgreePrivacyPolicy = false;
+            OnAppConfig.Instance.isAgreePrivacyPolicy = false;
+
+
+
+
+
             var frameRow = new FrameLayout()
             {
                 Height = Application.GetRealHeight(28),
@@ -1155,7 +1177,7 @@
                 Height = Application.GetMinRealAverage(28),
                 UnSelectedImagePath = "Public/ChooseIcon.png",
                 SelectedImagePath = "Public/ChooseOnIcon.png",
-                IsSelected = isAgreePrivacyPolicy,
+                IsSelected = OnAppConfig.Instance.isAgreePrivacyPolicy,
                 Gravity = Gravity.Center
             };
             agreeView.AddChidren(agreeBtn);
@@ -1235,6 +1257,13 @@
             {
                 OpenWebViewPage(true);
             };
+
+            #if __ANDROID__
+            //if(OnAppConfig.Instance.FirstRunApp || !OnAppConfig.Instance.isAgreePrivacyPolicy)
+            //{
+            //    HDL_ON_Android.HDLONUtils.StartSplashActivity();    
+            //}
+            #endif
         }
 
         /// <summary>
@@ -1263,6 +1292,6 @@
             return true;
         }
 
-        #endregion
+#endregion
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0