From 716d1b3b705e7d37e6edebd7f60b7613ab5aee87 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 20 十一月 2020 18:46:22 +0800 Subject: [PATCH] 1120-3 --- HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPageBLL.cs | 35 +++++------------------------------ 1 files changed, 5 insertions(+), 30 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPageBLL.cs index e7e4e26..517fd03 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPageBLL.cs @@ -63,10 +63,10 @@ bool LoadMethod_GetResidenceMemberAccount() { var result = false; - ResponsePack responePack = new HttpServerRequest().GetResidenceMemberAccount(); - if (responePack.StateCode.ToUpper() == StateCode.SUCCESS) + var responePack = new HttpServerRequest().GetResidenceMemberAccount(); + if (responePack.Code == StateCode.SUCCESS) { - var responeObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ResidenceMemberInfo>>(responePack.ResponseData.ToString()); + var responeObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ResidenceMemberInfo>>(responePack.Data.ToString()); foreach (var mInfo in responeObj) { ResponsePack memberInfoResponePack = new HttpServerRequest().GetResidenceMemberAccountInfo(mInfo.Account); @@ -110,37 +110,12 @@ //澶辫触 else { - string tipStr = "Sever erorr"; - switch (responePack.StateCode) - { - case "ValidCodeAndPhoneNoEqual": - tipStr = Language.StringByID(StringId.VerificationCodeError); - break; - case "USERNAMEORPWDERROR": - tipStr = Language.StringByID(StringId.LoginFailed_AccountOrPasswordError); - break; - case "ACCOUNTNOEXISTS": - tipStr = Language.StringByID(StringId.ACCOUNTNOEXISTS); - break; - case "NoRecord": - tipStr = Language.StringByID(StringId.PlsGetTheVerificationCode); - break; - case "Self:Net_Error": - tipStr = Language.StringByID(StringId.NetworkAnomaly); - break; - } + //鎻愮ず + IMessageCommon.Current.ShowErrorInfoAlter(responePack.Code); //璐﹀彿鎴栬�呭瘑鐮侀敊璇� Application.RunOnMainThread(() => { waitPage.Hide(); - //鎻愮ず鍘熷洜 - var tip = new Tip() - { - Text = tipStr, - CloseTime = 1, - Direction = AMPopTipDirection.None - }; - tip.Show(bodyView); }); } Application.RunOnMainThread(() => -- Gitblit v1.8.0