From 4a61a132ce09b1fd42fd80fcbff1855bad4c0f48 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 15 一月 2020 11:15:24 +0800
Subject: [PATCH] 2020-01-15  1.优化。

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs
index 3ace602..bdc396d 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs
@@ -76,8 +76,8 @@
                 TextColor = SkinStyle.Current.TextColor1,
                 //Text = account,
 #if DEBUG
-                Text = "18926269190@189.cn"
-                //Text = "721343314@qq.com"
+                //Text = "18926269190@189.cn"
+                Text = "721343314@qq.com"
 #endif
             };
             accountView.AddChidren (etAccount);
@@ -92,6 +92,8 @@
                 accountListDB = new AccountListDB ();
             }
             var accountList = accountListDB.account;
+
+            
 
             var accountListView = new VerticalScrolViewLayout () {
                 Width = Application.GetRealWidth (500),
@@ -156,6 +158,10 @@
                 NigelLoginPass++;
             };
 #endif
+            //if (accountList.Count > 0) {
+            //    etAccount.Text = accountList [accountList.Count-1];
+            //}
+
             etAccount.EditorEnterAction += (obj) => {
                 Application.HideSoftInput ();
                 etPasswrod.Foucs = true;
@@ -455,6 +461,7 @@
                     //    //褰撲綇瀹呬负绌烘椂鍏堟彁绀虹敤鎴锋柊寤轰綇瀹�
                     //} else {
                     var revertRoomData = mResidenceRes.PageData;
+  
                     if (UserConfig.Instance.CurrentRegion == null) {
                         if (revertRoomData != null && revertRoomData.Count > 0) {
                             var bFind = false;
@@ -494,16 +501,10 @@
                         } else {
                             //鍒锋柊浣忓畢 瑙e喅瀛愯处鍙烽棶棰�
                             UserConfig.Instance.CurrentRegion = findRoom;
-
                             Room.InitAllRoom ();
                         }
 
-
                     }
-
-
-                
-
                     ////鍘熸柟妗�
                     //GetAllBindGatewarysPagger (revertRoomData);
                     ////鑾峰彇褰撳墠浣忓畢缃戝叧鏂规
@@ -580,6 +581,7 @@
         {
             UserConfig.Instance.SaveUserConfig ();
             MainPage.LoginUser.LastTime = DateTime.Now;
+            //MainPage.IsOtherDevicesLogin = false;
 
             if (UserConfig.Instance.CheckHomeGatewaysNotEmpty ()) {
                 UserConfig.Instance.HomeLists = revertRoomData;

--
Gitblit v1.8.0