From d74ca60510ca40b39ff49029ac7c059fd92b08b9 Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期一, 13 六月 2022 10:45:10 +0800 Subject: [PATCH] 2022-06-13 --- HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorQRCodePage.cs | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorQRCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorQRCodePage.cs index 97bc8c8..26a6115 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorQRCodePage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorQRCodePage.cs @@ -389,13 +389,31 @@ }; visitorVoucherBtn.MouseUpEventHandler += (sender, e) => { - if (phoneNumberEditText.Text.Trim() == "" || pwdEditText.Text.Trim() == "" - || startTimeText.Text.Trim() == "" || endTimeText.Text.Trim() == "") + if (startTimeText.Text.Trim() == "") { + var tip_dialog = new Tip() + { + Text = Language.StringByID(StringId.VisitorStartTime), + CloseTime = 2, + Direction = AMPopTipDirection.None + }; + tip_dialog.Show(MainPage.BaseView); return; } - if (phoneNumberEditText.Text.Trim().Length != 11) + if (endTimeText.Text.Trim() == "") + { + var tip_dialog = new Tip() + { + Text = Language.StringByID(StringId.VisitorEndTime), + CloseTime = 2, + Direction = AMPopTipDirection.None + }; + tip_dialog.Show(MainPage.BaseView); + return; + } + + if (phoneNumberEditText.Text.Trim() == "" || phoneNumberEditText.Text.Trim().Length != 11) { var tip_dialog = new Tip() { @@ -408,7 +426,7 @@ return; } - if (pwdEditText.Text.Trim().Length != 6) + if (pwdEditText.Text.Trim() == "" || pwdEditText.Text.Trim().Length != 6) { var tip_dialog = new Tip() { -- Gitblit v1.8.0