| | |
| | | /// </summary> |
| | | public static PageLayout BasePageView { get; set; } |
| | | /// <summary> |
| | | /// DisplayCompleted |
| | | /// </summary> |
| | | public static bool DisplayCompleted = false; |
| | | |
| | | //public static UserInfo LoginUser; |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "1.1.0225"; |
| | | public static string VersionString = "1.2.0401"; |
| | | ///// <summary> |
| | | ///// 客户端类型 |
| | | ///// </summary> |
| | |
| | | /// </summary> |
| | | public static Action RefreshAir; |
| | | /// <summary> |
| | | /// 回退页面action 没有需要可以不用 |
| | | /// </summary> |
| | | public static Action ReturnRefreshAction; |
| | | /// <summary> |
| | | /// 无登录模式 |
| | | /// </summary> |
| | | public static bool NoLoginMode = false; |
| | |
| | | /// 是否进入后台 |
| | | /// </summary> |
| | | public static bool IsEnterBackground = false; |
| | | /// <summary> |
| | | /// 当前分页索引 |
| | | /// 0:收藏 |
| | | /// 1:分类 |
| | | /// 2:智能 |
| | | /// 3:个人 |
| | | /// </summary> |
| | | public static int CurPageIndex = 9999; |
| | | |
| | | ///// <summary> |
| | | ///// 公司代码 |
| | |
| | | waitPage.RemoveFromParent(); |
| | | BaseView.RemoveAll(); |
| | | BasePageView = new PageLayout(); |
| | | BasePageView.ScrollEnabled = false; |
| | | BasePageView.ScrollEnabled = true; |
| | | BasePageView.IsShowPoint = false; |
| | | BasePageView.PageChange = (sender, e) => |
| | | { |
| | | if (e < BasePageView.ChildrenCount - 1) |
| | | { |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | } |
| | | |
| | | while (e < BasePageView.ChildrenCount - 1) |
| | | { |
| | | BasePageView.GetChildren(BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | } |
| | | try |
| | | { |
| | | ReturnRefreshAction?.Invoke(); |
| | | ReturnRefreshAction = null; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Log($"后退事件异常:{ex.Message}"); |
| | | } |
| | | //while (e < BasePageView.ChildrenCount - 1) |
| | | //{ |
| | | // BasePageView.GetChildren(BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | //} |
| | | }; |
| | | BasePageView.MouseDownEventHandler += (sender, e) => |
| | | { |