xm
2021-12-01 6d73bf6e816570291865674bef8bce8972e4de3f
HDL_ON/UI/MainPage.cs
@@ -26,7 +26,7 @@
    /// <summary>
    /// 版本号
    /// </summary>
    public static string VersionString = "1.3.1103";
    public static string VersionString = "1.3.1123";
    ///// <summary>
    ///// 客户端类型
    ///// </summary>
@@ -146,8 +146,6 @@
        BaseView = Application.MainPage;
        Application.MainPage.BackgroundColor = CSS_Color.MainBackgroundColor;
        //#region 测试
        //var ddd = new UI.test.TestDialog();
        //ddd.InitView();
@@ -344,30 +342,30 @@
        {
          Entity.FunctionList.List.Clear();
          Entity.SpatialInfo.CurrentSpatial.Clear();
                ///等待获取住宅信息
                Application.RunOnMainThread(() =>
               {
                if (waitPage != null)
                {
                  waitPage.RemoveFromParent();
                  waitPage = null;
                }
          ///等待获取住宅信息
          Application.RunOnMainThread(() =>
          {
            if (waitPage != null)
            {
              waitPage.RemoveFromParent();
              waitPage = null;
            }
                      //跳转页面----
                      UserBasePage = new UserPage();
                BasePageView.AddChidren(UserBasePage);
                UserBasePage.LoadPage();
                BasePageView.PageIndex = 0;
            //跳转页面----
            UserBasePage = new UserPage();
            BasePageView.AddChidren(UserBasePage);
            UserBasePage.LoadPage();
            BasePageView.PageIndex = 0;
                if (isFirstOpen)
                {
                        //启动密码验证
                        new AppUnlockPage().LoadPage(isFirstOpen);
                }
                      //主页加载完成,回调事件
                      pageShowEvent?.Invoke();
                pageShowEvent = null;
              });
            if (isFirstOpen)
            {
              //启动密码验证
              new AppUnlockPage().LoadPage(isFirstOpen);
            }
            //主页加载完成,回调事件
            pageShowEvent?.Invoke();
            pageShowEvent = null;
          });
        }
        catch (Exception ex)
        {
@@ -376,14 +374,14 @@
        finally
        {
          Application.RunOnMainThread(() =>
                {
                if (downloadData)
                {
                  DB_ResidenceData.Instance.EixtAccount();
                        ///初始化app数据
                        Common.ApiUtlis.Ins.DownloadData();
                };
              });
          {
            if (downloadData)
            {
              DB_ResidenceData.Instance.EixtAccount();
              ///初始化app数据
              Common.ApiUtlis.Ins.DownloadData();
            };
          });
        }
      }).Start();
@@ -403,7 +401,7 @@
        if (BasePageView == null || BasePageView.ChildrenCount <= 1)
        {
          result = 2;//无法再后退,可以执行退到桌面
              }
        }
        if (BasePageView.ChildrenCount > 1)
        {
          int index = BasePageView.ChildrenCount - 1;
@@ -412,14 +410,14 @@
          {
            var loading = view as Loading;
            if (loading.CurStatus == false)//有一些等待界面隐藏了,但是没有移除到,需要先移除
                  {
            {
              loading.RemoveFromParent();
              result = LoadEvent_BackAction();
            }
            else
            {
              result = 1;//正在等待某些操作
                  }
            }
          }
          else
          {
@@ -446,7 +444,7 @@
        else
        {
          result = 2;//无法再后退,可以执行退到桌面
              }
        }
      });
      return result;
    }
@@ -458,11 +456,11 @@
    public static void Log(string msg)
    {
#if DEBUG
      Console.WriteLine(msg);
            Console.WriteLine(msg);
#endif
    }
  }
}
}