| | |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "1.2.0420"; |
| | | public static string VersionString = "1.2.0422"; |
| | | ///// <summary> |
| | | ///// 客户端类型 |
| | | ///// </summary> |
| | |
| | | int result = 0; |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (BaseView.ChildrenCount>1) |
| | | if (BasePageView == null || BasePageView.ChildrenCount<=1 ) |
| | | { |
| | | var view = BaseView.GetChildren(BaseView.ChildrenCount - 1); |
| | | if(view.GetType() == typeof(Loading)) |
| | | result = 2;//无法再后退,可以执行退到桌面 |
| | | } |
| | | if (BasePageView.ChildrenCount > 1) |
| | | { |
| | | int index = BasePageView.ChildrenCount - 1; |
| | | var view = BasePageView.GetChildren(index); |
| | | if (view.GetType() == typeof(Loading)) |
| | | { |
| | | var loading = view as Loading; |
| | | var loading = view as Loading; |
| | | if (loading.CurStatus == false)//有一些等待界面隐藏了,但是没有移除到,需要先移除 |
| | | { |
| | | loading.RemoveFromParent(); |
| | |
| | | result = 1;//正在等待某些操作 |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (BasePageView.ChildrenCount > 1) |
| | | else |
| | | { |
| | | int index = BasePageView.ChildrenCount - 1; |
| | | var view = BasePageView.GetChildren(index); |
| | | if (view != null) |
| | | { |
| | | view.RemoveFromParent(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | result = 2;//无法再后退,可以执行退到桌面 |
| | | } |
| | | } |
| | | else |
| | | { |
| | | result = 2;//无法再后退,可以执行退到桌面 |
| | | } |
| | | }); |
| | | return result; |