From f500e14c0a994487070380c50c85e0929cbc8e63 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 05 一月 2021 10:48:04 +0800 Subject: [PATCH] 2021-01-05 1.更新 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs index 2fcff71..71054df 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs @@ -69,7 +69,7 @@ if (bodyPageView.ChildrenCount - 2 == e) { bodyPageView.RemoveAt (bodyPageView.ChildrenCount - 1); } - Console.WriteLine ("D" + e.ToString ()); + Utlis.WriteLine ("D" + e.ToString ()); }; FrameLayout bodyView = new FrameLayout (); @@ -139,10 +139,11 @@ void EmailForgot (FrameLayout FrameLayoutView) { FrameLayoutView.RemoveAll (); + var viewX = (Application.GetRealWidth (640) - Application.GetMinRealAverage (500)) / 2; EditText Register_Email_Address = new EditText () { - Width = Application.GetRealWidth (500), - Height = Application.GetRealHeight (85), - X = Application.GetRealWidth (70), + Width = Application.GetMinRealAverage (500), + Height = Application.GetMinRealAverage (85), + X = viewX, Y = Application.GetRealHeight (100), UnSelectedImagePath = "Register/Register_Email_Address.png", PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor, @@ -193,10 +194,10 @@ try { Register_Send.IsSelected = false; - var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$"); - var ss = reg.Match (emailAccount); + //var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$"); + //var ss = reg.Match (emailAccount); - if (!ss.Success) { + if (!CommonUtlis.Current.CheckEmail (emailAccount)) { Application.RunOnMainThread (() => { new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseCheckEmailAddressCorrectly), Language.StringByID (R.MyInternationalizationString.Close)).Show (); -- Gitblit v1.8.0