| | |
| | | } |
| | | |
| | | //public static Button LogoButton = new Button (); |
| | | |
| | | |
| | | public static string RequestVersion = "20200422"; |
| | | public static string RequestVersion = "20200423"; |
| | | public static UserInfo LoginUser; |
| | | /// <summary> |
| | | /// 是否是管理员权限(变更了,成员的时候,这个也为ture。为什么会声明这样变量,因为有些接口必须使用原来的Token) |
| | |
| | | try { |
| | | bytes = webClient.UploadData (url, Encoding.UTF8.GetBytes (dataStringJson)); |
| | | } catch (System.Net.WebException webEx) { |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Hide (); |
| | | }); |
| | | //Application.RunOnMainThread (() => { |
| | | // MainPage.Loading.Hide (); |
| | | //}); |
| | | return new ResponsePack () { StateCode = ErrorCode.NetworkError }; |
| | | } |
| | | string responseString = Encoding.UTF8.GetString (bytes); |
| | |
| | | }); |
| | | } |
| | | |
| | | public static void LoadingSetText (string showString = "") |
| | | { |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Text = showString; |
| | | }); |
| | | } |
| | | |
| | | public static void LoadingHide () |
| | | { |
| | | Application.RunOnMainThread (() => { |