From 0c216014c649090d765902301cbfc9157f8f1ee4 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 15 八月 2023 16:19:40 +0800
Subject: [PATCH] 2023年08月15日16:19:37
---
HDL_ON/UI/UI2/UserPage.cs | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/HDL_ON/UI/UI2/UserPage.cs b/HDL_ON/UI/UI2/UserPage.cs
index b2fd6b5..d3599c4 100644
--- a/HDL_ON/UI/UI2/UserPage.cs
+++ b/HDL_ON/UI/UI2/UserPage.cs
@@ -91,7 +91,7 @@
{
try
{
- bodyView = this;
+ bodyView = this;//1
bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
ContextView = new FrameLayout()
{
@@ -104,12 +104,10 @@
{
Y = Application.GetRealHeight(607),
Height = Application.GetMinRealAverage(60),
- //BackgroundColor = CSS_Color.BackgroundColor
};
bodyView.AddChidren(navigationView);
if (MainPage.Increase)
{
- //ContextView.Height = Application.GetRealHeight(618 + 20);
navigationView.Y = Application.GetRealHeight(597 + 5);
navigationView.Height = Application.GetRealHeight(70 - 5);
}
@@ -117,9 +115,9 @@
LoadEventList();
- var homePage = new HomePage();
- ContextView.AddChidren(homePage);
- homePage.LoadPage();
+ //var homePage = new HomePage();
+ //ContextView.AddChidren(homePage);
+ //homePage.LoadPage();
if (!MainPage.NoLoginMode)
{
@@ -132,8 +130,15 @@
//寮�鍚畾浣嶆湇鍔�
try
{
- Shared.Application.StartGPSLocationService();
- }catch(Exception ex)
+ if (DB_ResidenceData.Instance.CheckGPS_IsFirst)
+ {
+ DB_ResidenceData.Instance.CheckGPS_IsFirst = false;
+ (Shared.Application.Activity as BaseActivity).CheckLocationPermission();
+ }
+ Shared.Application.StartGPSLocationService();
+
+ }
+ catch (Exception ex)
{
MainPage.Log("寮�鍚畾浣嶆湇鍔″紓甯�:" + ex.Message);
}
--
Gitblit v1.8.0