From f788a1e320b8505435ed66e2456ddb2d0a838f76 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 19 十一月 2020 19:58:14 +0800 Subject: [PATCH] 2020-11-19 1.优化绑定和解绑页面。2.修改密码功能实现,UI界面实现,接口实现。 --- HDL-ON_iOS/AppDelegate.cs | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index 821c341..fd63c60 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -143,7 +143,8 @@ public override void OnResignActivation(UIApplication application) { Console.WriteLine("OnResignActivation"); - BusSocket.Stop(); + OnAppConfig.Instance.unlockTime = DateTime.Now; + //BusSocket.Stop(); } public override void DidEnterBackground(UIApplication application) @@ -156,7 +157,7 @@ public override void WillEnterForeground(UIApplication application) { SharedMethod.SharedMethod.IsBackground = false; - //BusSocket.Start(6000); + //BusSocket.Start(); new AppUnlockPage().LoadPage(); Console.WriteLine("WillEnterForeground"); UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; @@ -194,9 +195,12 @@ application.StatusBarStyle = UIStatusBarStyle.DarkContent; string nsCount = NSLocale.CurrentLocale.CountryCode; - if (nsCount != OnAppConfig.Instance.CountryCode) + + if (MainPage.LoginUser != null && nsCount != MainPage.LoginUser.areaCode.ToString()) { - OnAppConfig.Instance.CountryCode = nsCount; + //int.TryParse(nsCount,out MainPage.LoginUser.areaCode); + //2020-11-18 + MainPage.LoginUser.areaCode = nsCount; OnAppConfig.Instance.SaveUserConfig(); } application.IdleTimerDisabled = true; -- Gitblit v1.8.0