From c47c3ec2488961b3a006aaebcb03dba582f8b19b Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 12 三月 2020 17:08:42 +0800 Subject: [PATCH] 2020-03-12-1 --- ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs index 702fbec..8a14e1a 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs @@ -44,6 +44,15 @@ { Contacts.ContactAction = (phoneName, phoneNum) => { + if (string.IsNullOrEmpty(phoneName) == true) + { + return; + } + //鎵嬫満鍙锋娴� + if (this.CheckPhoneNumber("86", phoneNum, phoneName) == false) + { + return; + } //淇濆瓨鑱旂郴浜� this.SaveCoercePhoneNumber("86", phoneNum, phoneName); }; @@ -107,12 +116,14 @@ btnLine.Y = Application.GetRealHeight(150); btnLine.Gravity = Gravity.CenterHorizontal; frameBack.AddChidren(btnLine); + //鑱斿姩绾跨殑鐘舵�� + txtPhone.btnLine = btnLine; //澶囨敞 var txtNote = new TextInputControl(Application.GetRealWidth(740), txtPhone.Height, false); txtNote.X = ControlCommonResourse.XXLeft; txtNote.Y = btnLine.Bottom + Application.GetRealHeight(60); - txtNote.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInpuBackup); + txtNote.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPlesaeInputNoteInformation); frameBack.AddChidren(txtNote); //鍙栨秷鍥炬爣 var btnCancel2 = new MostRightIconControl(69, 69); @@ -197,8 +208,8 @@ } if (strNote == string.Empty) { - //璇疯緭鍏ュ娉ㄥ悕绉� - btnErrorMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInpuBackup); + //璇疯緭鍏ュ娉ㄥ唴瀹� + btnErrorMsg.Text = Language.StringByID(R.MyInternationalizationString.uPlesaeInputNoteInformation); return false; } @@ -225,13 +236,5 @@ } #endregion - - - - - - - - } } -- Gitblit v1.8.0