黄学彪
2020-08-21 9cc8fd11b13813adbdd3c6c31554e5c0bebf4026
ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs
@@ -55,7 +55,7 @@
            //Evoyo Home的图标
            var btnLogoIcon = new PicViewControl(184, 184);
            btnLogoIcon.Y = Application.GetRealHeight(230);
            btnLogoIcon.UnSelectedImagePath = "Account/Logo_White.png";
            btnLogoIcon.UnSelectedImagePath = "Account/Logo_WhiteHome.png";
            btnLogoIcon.Gravity = Gravity.CenterHorizontal;
            this.AddChidren(btnLogoIcon);
            //Evoyo Home
@@ -127,6 +127,9 @@
            frameMidBack.AddChidren(btnLoginByCode);
            btnLoginByCode.ButtonClickEvent += (sender, e) =>
            {
                //检测是否同意服务协议
                if (this.CheckPrivacyPolicy() == false) { return; }
                if (codeDiv == 1)
                {
                    //验证码登陆
@@ -166,6 +169,9 @@
            frameMidBack.AddChidren(btnRegister);
            btnRegister.ButtonClickEvent += (sender, e) =>
            {
                //检测是否同意服务协议
                if (this.CheckPrivacyPolicy() == false) { return; }
                var registerPage = new AccountRegister();
                CommonPage.Instance.AddChidren(registerPage);
                registerPage.Show();
@@ -176,7 +182,7 @@
            btnWebChat.Y = frameMidBack.Height - Application.GetRealHeight(69) - btnWebChat.IconSize;
            btnWebChat.UnSelectedImagePath = "Account/Wechat.png";
            btnWebChat.Gravity = Gravity.CenterHorizontal;
            frameMidBack.AddChidren(btnWebChat);
            //frameMidBack.AddChidren(btnWebChat);
            btnWebChat.ButtonClickEvent += (sender, e) =>
            {
                //微信登陆
@@ -197,6 +203,9 @@
            frameMidBack.AddChidren(btnTiyan);
            btnTiyan.ButtonClickEvent += (sender, e) =>
            {
                //检测是否同意服务协议
                if (this.CheckPrivacyPolicy() == false) { return; }
                btnTiyan.CanClick = false;
                //显示启动页
                HdlThreadLogic.Current.RunThread(() =>
@@ -380,6 +389,9 @@
            frameWhiteBack.AddChidren(btnForgot);
            btnForgot.ButtonClickEvent += (sender, e) =>
            {
                //检测是否同意服务协议
                if (this.CheckPrivacyPolicy() == false) { return; }
                var forgot = new AccountForgetPWD();
                CommonPage.Instance.AddChidren(forgot);
                forgot.Show();
@@ -558,6 +570,9 @@
            rowVerCode.AddChidren(btnSendCode);
            btnSendCode.ButtonClickEvent += (sender, e) =>
            {
                //检测是否同意服务协议
                if (this.CheckPrivacyPolicy() == false) { return; }
                //检测输入的账号
                nowInputAccount = txtAccount.Text.Trim();
                if (this.CheckInputAccount("86", nowInputAccount, i_div) == false)
@@ -599,6 +614,9 @@
            frameWhiteBack.AddChidren(btnForgot);
            btnForgot.ButtonClickEvent += (sender, e) =>
            {
                //检测是否同意服务协议
                if (this.CheckPrivacyPolicy() == false) { return; }
                var forgot = new AccountForgetPWD();
                CommonPage.Instance.AddChidren(forgot);
                forgot.Show();
@@ -743,6 +761,8 @@
        /// <param name="i_div">1:手机号 2:邮箱</param>
        private void LoginByAccountAndPsw(string i_account, string i_psw, int i_div)
        {
            //检测是否同意服务协议
            if (this.CheckPrivacyPolicy() == false) { return; }
            //检测账号
            if (this.CheckInputAccount(string.Empty, i_account, i_div) == false)
            {
@@ -815,6 +835,8 @@
        /// </summary>
        private void LoginByWechat()
        {
            //检测是否同意服务协议
            if (this.CheckPrivacyPolicy() == false) { return; }
#if Android
            com.hdl.home.Application.WXLogin();
            com.hdl.home.WXEntryActivity.RespAction = (authStr) =>
@@ -936,6 +958,8 @@
        /// <param name="i_div">1:手机号 2:邮箱</param>
        private void LoginByVerCode(string i_account, string i_verCode, int i_div)
        {
            //检测是否同意服务协议
            if (this.CheckPrivacyPolicy() == false) { return; }
            //登陆中....
            CommonPage.Loading.Start(Language.StringByID(R.MyInternationalizationString.Logining));