From 6a860510eb765d6bd90fc324e70698410e1a1d70 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 09 十二月 2020 09:45:56 +0800 Subject: [PATCH] 2020-12-09 1.更新 --- Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs index 7dea5d0..7a5d96f 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/User/UserSettingView.cs @@ -431,6 +431,8 @@ subView.ShowSubaccountListView (); UserMiddle.SettingPageView.PageIndex += 1; }); + } else { + ShowGetSubAccountByDistributedMarkErrorInfo (revertObj.StateCode); } } catch (Exception ex) { MainPage.FailureToServer (); @@ -590,5 +592,29 @@ dialog.Show (); } + + + /// <summary> + /// + /// </summary> + /// <param name="stateCodeStr"></param> + static void ShowGetSubAccountByDistributedMarkErrorInfo (string stateCodeStr) + { + string mes = ""; + + if (stateCodeStr == ErrorCode.NetworkError) { + mes = ErrorCode.NetworkError; + } else { + mes = ErrorCode.OperationFailed + ErrorCode.Reason + stateCodeStr; + } + if (!string.IsNullOrEmpty (mes)) { + Application.RunOnMainThread (() => { + new Alert ("", mes, Language.StringByID (R.MyInternationalizationString.Close)).Show (); + }); + } + + + } + } } \ No newline at end of file -- Gitblit v1.8.0