From 75c1e0d9f4e00edc2c1b915237b8bcee944b1652 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 04 六月 2020 15:17:28 +0800
Subject: [PATCH] 2020-06-04 1.更新

---
 Crabtree/SmartHome/UI/SimpleControl/MainPage.cs |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs b/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs
index cd3fc15..1f245cc 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs
@@ -36,8 +36,9 @@
         }
 
         //public static Button LogoButton = new Button ();
+  
 
-        public static string RequestVersion = "20200422";
+        public static string RequestVersion = "20200426";
         public static UserInfo LoginUser;
         /// <summary>
         /// 鏄惁鏄鐞嗗憳鏉冮檺(鍙樻洿浜�,鎴愬憳鐨勬椂鍊�,杩欎釜涔熶负ture銆備负浠�涔堜細澹版槑杩欐牱鍙橀噺,鍥犱负鏈変簺鎺ュ彛蹇呴』浣跨敤鍘熸潵鐨凾oken)
@@ -219,9 +220,9 @@
             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);
@@ -326,6 +327,13 @@
             });
         }
 
+        public static void LoadingSetText (string showString = "")
+        {
+            Application.RunOnMainThread (() => {
+                MainPage.Loading.Text = showString;
+            });
+        }
+
         public static void LoadingHide ()
         {
             Application.RunOnMainThread (() => {

--
Gitblit v1.8.0