HDL-ON_Android/Assets/Language.ini | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/Common/R.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorQRCodePage.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
HDL-ON_Android/Assets/Language.ini
@@ -534,6 +534,8 @@ 546=Visitor QR Code 547=Phone Number 548=Please enter a correct phone number 549=Please select a effective time 550=Please select a expire time 1000=Room Humidity @@ -1693,6 +1695,8 @@ 546=访客二维码 547=手机号 548=请输入正确的手机号码 549=请选择生效时间 550=请选择失效时间 @@ -2833,6 +2837,8 @@ 546=Visitor QR Code 547=Phone Number 548=Please enter a correct phone number 549=Please select a effective time 550=Please select a expire time 1000=Влажность в Помещении HDL_ON/Common/R.cs
@@ -5,6 +5,14 @@ public static class StringId { /// <summary> /// 访客二维码结束时间 /// </summary> public const int VisitorEndTime = 550; /// <summary> /// 访客二维码开始时间 /// </summary> public const int VisitorStartTime = 549; /// <summary> /// 手机号 /// </summary> public const int PhoneNumberErrorTip = 548; HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs
@@ -29,8 +29,7 @@ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; bodyView.BackgroundColor = CSS_Color.BackgroundColor; new TopViewDiv(bodyView, Language.StringByID(StringId.VisitorInvitation)) .LoadTopView_SettingText(click, ""); new TopViewDiv(bodyView, Language.StringByID(StringId.VisitorInvitation)).LoadTopView_SettingText(click, ""); #endregion bodyScrolView = new VerticalScrolViewLayout() @@ -131,79 +130,5 @@ } private List<TempPasswordInfo> infoList; private void getTestData() { infoList = new List<TempPasswordInfo>(); TempPasswordInfo info = new TempPasswordInfo(); info.homeId = 11111; info.deviceId = 11111; info.phone = "1234567890"; info.tempPwd = "134234"; info.useCount = 10; info.validBeginTime = "2022/5/10 14:21:00"; info.validEndTime = "2022/5/12 14:21:00"; infoList.Add(info); info = new TempPasswordInfo(); info.homeId = 11111; info.deviceId = 11111; info.phone = "1234567890"; info.tempPwd = "134234"; info.useCount = 10; info.validBeginTime = "2022/5/10 14:21:00"; info.validEndTime = "2022/5/12 14:21:00"; infoList.Add(info); info = new TempPasswordInfo(); info.homeId = 11111; info.deviceId = 11111; info.phone = "1234567890"; info.tempPwd = "134234"; info.useCount = 10; info.validBeginTime = "2022/5/10 14:21:00"; info.validEndTime = "2022/5/12 14:21:00"; infoList.Add(info); info = new TempPasswordInfo(); info.homeId = 11111; info.deviceId = 11111; info.phone = "1234567890"; info.tempPwd = "134234"; info.useCount = 10; info.validBeginTime = "2022/5/10 14:21:00"; info.validEndTime = "2022/5/12 14:21:00"; infoList.Add(info); info = new TempPasswordInfo(); info.homeId = 11111; info.deviceId = 11111; info.phone = "1234567890"; info.tempPwd = "134234"; info.useCount = 10; info.validBeginTime = "2022/5/10 14:21:00"; info.validEndTime = "2022/5/12 14:21:00"; infoList.Add(info); info = new TempPasswordInfo(); info.homeId = 11111; info.deviceId = 11111; info.phone = "1234567890"; info.tempPwd = "134234"; info.useCount = 10; info.validBeginTime = "2022/5/10 14:21:00"; info.validEndTime = "2022/5/12 14:21:00"; infoList.Add(info); info = new TempPasswordInfo(); info.homeId = 11111; info.deviceId = 11111; info.phone = "1234567890"; info.tempPwd = "134234"; info.useCount = 10; info.validBeginTime = "2022/5/10 14:21:00"; info.validEndTime = "2022/5/12 14:21:00"; infoList.Add(info); } } } 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() {