wxr
2021-12-27 da5999ee08de8f6267a4ed491b79b36649c52186
HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -168,6 +168,9 @@
        /// </summary>
        public void LoadView(UserInfo userInfo = null)
        {
#if __Android__
            OnAppConfig.Instance.isAgreePrivacyPolicy = false;
#endif
            var btnIcon = new Button()
            {
                X = Application.GetRealWidth(28),
@@ -252,7 +255,7 @@
            };
#endif
            #region 登录方式选择
#region 登录方式选择
            btnPhoneLogin = new Button()
            {
                X = Application.GetRealWidth(28),
@@ -278,9 +281,9 @@
                TextSize = CSS_FontSize.TextFontSize,
            };
            bodyView.AddChidren(btnEmailLogin);
            #endregion
#endregion
            #region 账号填写
#region 账号填写
            accountView = new FrameLayout()
            {
                X = Application.GetRealWidth(28),
@@ -368,9 +371,9 @@
                accountView.AddChidren(btnAccountIcon);
            }
            #endregion
#endregion
            #region 密码填写
#region 密码填写
            passwordView = new FrameLayout()
            {
                X = Application.GetRealWidth(28),
@@ -414,7 +417,7 @@
            };
            passwordView.AddChidren(etPassword);
            #region 密码登录-控件加载
#region 密码登录-控件加载
            btnVisiblePassword = new Button()
            {
                X = Application.GetRealWidth(223),
@@ -446,9 +449,9 @@
                TextSize = 12,
            };
            passwordView.AddChidren(btnForgetPassword);
            #endregion
#endregion
            #region 验证码登录-控件加载
#region 验证码登录-控件加载
            btnGetVerificationCode = new Button()
            {
                X = Application.GetRealWidth(219),
@@ -462,7 +465,7 @@
                IsSelected = false,
            };
            passwordView.AddChidren(btnGetVerificationCode);
            #endregion
#endregion
            btnPasswordViewBottomLine = new Button()
            {
@@ -473,9 +476,9 @@
            };
            passwordView.AddChidren(btnPasswordViewBottomLine);
            #endregion
#endregion
            #region 注册与快捷登录
#region 注册与快捷登录
            btnRegister = new Button()
            {
                X = Application.GetRealWidth(28),
@@ -502,7 +505,7 @@
            };
            bodyView.AddChidren(btnSwitchLoginMode);
            #endregion
#endregion
            btnLogin = new Button()
            {
@@ -547,7 +550,7 @@
                //楼层房间列表
                var floor1 = new SpatialInfo("FLOOR") { roomName = "F1", parentId = DB_ResidenceData.Instance.CurrentRegion.id };
                floor1.SaveRoomFile();
                #region 房间一 -- 客厅
#region 房间一 -- 客厅
                //处理房间列表
                var room1 = new Room()
@@ -627,8 +630,8 @@
                SpatialInfo.CurrentSpatial.RoomList.Add(room4);
                #region 客厅
                #region 功能
#region 客厅
#region 功能
                var lightRgb1 = new Function()
                {
                    sid = "light1",
@@ -754,8 +757,8 @@
                    },
                };
                fh.SaveFunctionFile();
                #endregion
                #region 场景
#endregion
#region 场景
                var scene1 = new Scene()
                {
                    sid = "scene1",
@@ -907,9 +910,9 @@
                };
                scene2.SaveSceneFile();
                #endregion
                #endregion
                #region 餐厅
#endregion
#endregion
#region 餐厅
                var lightSwitch3 = new Function()
                {
                    sid = "light6",
@@ -1013,8 +1016,8 @@
                    }
                };
                scene4.SaveSceneFile();
                #endregion
                #region 卧室
#endregion
#region 卧室
                var ac = new Function()
                {
                    sid = "ac1",
@@ -1053,7 +1056,7 @@
                //    collect = false,
                //};
                //scene6.SaveSceneFile();
                #endregion
#endregion
                var lightSwitch6 = new Function()
@@ -1071,7 +1074,7 @@
                };
                lightSwitch6.SaveFunctionFile();
                #endregion
#endregion
                var fileList = Common.FileUtlis.Files.ReadFiles();
                foreach(var file in fileList)
@@ -1090,7 +1093,7 @@
            LoadEventList();
            account = etAccount.Text.Trim();
            #if DEBUG1211
#if DEBUG1211
            //本地模式
            Button btnLocalMode = new Button()
            {
@@ -1112,15 +1115,15 @@
            MainPage.Log("etAccount.TextAlignment : " + etAccount.TextAlignment.ToString());
            #endif
#endif
            #region 隐私政策
#region 隐私政策
            AddServiceAgreementControl(bodyView);
            #endregion
#endregion
        }
        #region ■ 服务协议___________________________
#region ■ 服务协议___________________________
        bool isAgreePrivacyPolicy = false;
        /// <summary>
        /// 添加服务协议控件
@@ -1263,6 +1266,6 @@
            return true;
        }
        #endregion
#endregion
    }
}