From 4e6dfedede622d018b0aec0fb85c130d47cf45ba Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 25 十一月 2020 16:14:39 +0800
Subject: [PATCH] 2020-11-25 1.增加服务器信息、关于ON、功能介绍、投诉、检测更新。

---
 HDL_ON/UI/UI1-Login/LoginPageBLL.cs |  131 +++++++++----------------------------------
 1 files changed, 29 insertions(+), 102 deletions(-)

diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs
index a2ad46f..270b93d 100644
--- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs
+++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs
@@ -100,31 +100,7 @@
                         {
                             //妫�娴嬪綋鍓嶉厤缃煙鍚嶆槸鍚︿竴鑷达紝涓嶄竴鑷村垯鏇挎崲
                             CheckAndSetUserRequestHost(result);
-                            //
-                            Application.RunOnMainThread(() =>
-                            {
-                                btnGetVerificationCode.IsSelected = false;
-                                btnGetVerificationCode.TextColor = CSS_Color.PromptingColor1;
-                            });
-                            new Thread(() =>
-                            {
-                                while (time > 0)
-                                {
-                                    time--;
-                                    Application.RunOnMainThread(() =>
-                                    {
-                                        btnGetVerificationCode.Text = time.ToString() + "s";
-                                    });
-                                    Thread.Sleep(1000);
-                                }
-                                Application.RunOnMainThread(() =>
-                                {
-                                    btnGetVerificationCode.IsSelected = true;
-                                    btnGetVerificationCode.TextID = StringId.GetVerificationCode;
-                                });
-                            })
-                            { IsBackground = true }.Start();
-
+                           
                             //2.1璇锋眰鑾峰彇楠岃瘉鐮�
                             var resultObj = pm.VerificationCodeSend(VerifyType.VERIFY_LOGIN, account, true, phoneZoneCode);
                             if (resultObj.Code != StateCode.SUCCESS)
@@ -138,87 +114,38 @@
                                 // 鎻愮ず閿欒
                                 IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code);
                             }
+                            else
+                            {
+                                Application.RunOnMainThread(() =>
+                                {
+                                    btnGetVerificationCode.IsSelected = false;
+                                    btnGetVerificationCode.TextColor = CSS_Color.PromptingColor1;
+                                });
+
+                                new Thread(() =>
+                                {
+                                    while (time > 0)
+                                    {
+                                        time--;
+                                        Application.RunOnMainThread(() =>
+                                        {
+                                            btnGetVerificationCode.Text = time.ToString() + "s";
+                                        });
+                                        Thread.Sleep(1000);
+                                    }
+                                    Application.RunOnMainThread(() =>
+                                    {
+                                        btnGetVerificationCode.IsSelected = true;
+                                        btnGetVerificationCode.TextID = StringId.GetVerificationCode;
+                                    });
+                                })
+                                { IsBackground = true }.Start();
+                            }
                         }
 
                     })
                     { IsBackground = true }.Start();
-
-                    //    btnGetVerificationCode.IsSelected = false ;
-                    //    btnGetVerificationCode.TextColor = CSS_Color.PromptingColor1;
-                    //    int time = 60;
-                    //    new Thread(() =>
-                    //    {
-                    //        while (time > 0)
-                    //        {
-                    //            time--;
-                    //            Application.RunOnMainThread(() =>
-                    //            {
-                    //                btnGetVerificationCode.Text = time.ToString() + "s";
-                    //            });
-                    //            Thread.Sleep(1000);
-                    //        }
-                    //        Application.RunOnMainThread(() =>
-                    //        {
-                    //            btnGetVerificationCode.IsSelected = true;
-                    //            btnGetVerificationCode.TextID = StringId.GetVerificationCode;
-                    //        });
-                    //    })
-                    //    { IsBackground = true }.Start();
-                    //    new Thread(() =>
-                    //    {
-                    //        //鑾峰彇楠岃瘉鐮�
-                    //        var result = pm.GetLoginVerCode(phoneNumber);
-                    //        if (result.StateCode.ToUpper() == StateCode.SUCCESS_CODE)
-                    //        {
-                    //        }
-                    //        //鐧诲綍澶辫触
-                    //        else
-                    //        {
-                    //            string tipStr = "Sever erorr";
-                    //            switch (result.StateCode.ToUpper())
-                    //            {
-                    //                case "USERNAMEORPWDERROR":
-                    //                    tipStr = Language.StringByID(StringId.LoginFailed_AccountOrPasswordError);
-                    //                    Application.RunOnMainThread(() =>
-                    //                    {
-                    //                        btnPasswordViewBottomLine.BackgroundColor = CSS_Color.AuxiliaryColor2;
-                    //                        btnPasswordViewBottomLine.Height = Application.GetRealHeight(2);
-                    //                    });
-                    //                    break;
-                    //                case "ACCOUNTNOEXISTS":
-                    //                    tipStr = Language.StringByID(StringId.ACCOUNTNOEXISTS);
-                    //                    Application.RunOnMainThread(() =>
-                    //                    {
-                    //                        btnAccountViewBottomLine.BackgroundColor = CSS_Color.AuxiliaryColor2;
-                    //                        btnAccountViewBottomLine.Height = Application.GetRealHeight(2);
-                    //                    });
-                    //                    break;
-                    //                case "SENDFAIL":
-                    //                    tipStr = Language.StringByID(StringId.FailedToSendVerificationCode);
-                    //                    Application.RunOnMainThread(() =>
-                    //                    {
-                    //                        btnAccountViewBottomLine.BackgroundColor = CSS_Color.AuxiliaryColor2;
-                    //                        btnAccountViewBottomLine.Height = Application.GetRealHeight(2);
-                    //                    });
-                    //                    break;
-                    //                case "Self:Net_Error":
-                    //                    tipStr = Language.StringByID(StringId.NetworkAnomaly);
-                    //                    break;
-                    //            }
-                    //            Application.RunOnMainThread(() =>
-                    //            {
-                    //                //鎻愮ず鍘熷洜
-                    //                var tip = new Tip()
-                    //                {
-                    //                    Text = tipStr,
-                    //                    CloseTime = 1,
-                    //                    Direction = AMPopTipDirection.None
-                    //                };
-                    //                tip.Show(bodyView);
-                    //            });
-                    //        }
-                    //    })
-                    //    { IsBackground = true }.Start();
+                  
                 }
             };
         }

--
Gitblit v1.8.0