From 46e5ac5aade044cd57dbd517d0044a9203989dee Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Fri, 28 Apr 2023 11:52:54 +0800 Subject: [PATCH] =?UTF-8?q?VISA=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/mobile_first/ch-visa-free-tester.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/application/views/mobile_first/ch-visa-free-tester.php b/application/views/mobile_first/ch-visa-free-tester.php index 2bff472e..4734b45c 100644 --- a/application/views/mobile_first/ch-visa-free-tester.php +++ b/application/views/mobile_first/ch-visa-free-tester.php @@ -1157,15 +1157,11 @@ ready(el => { if (diffInDays < 1 || diffInDays > 2 || indexOf72 == -1) { visa72hours = false; error_72hours.show(); - } else { - qualify_72hours.show(); } if (diffInDays < 1 || diffInDays > 7 || indexOf144 == -1) { visa144hours = false; error_72hours.show(); - } else { - qualify_144hours.show(); } validateSuccess = (visa144hours || visa72hours) && qualify2China && thirdCountry; @@ -1173,6 +1169,14 @@ ready(el => { if (validateSuccess) { tip_box.show(); reason_box.hide(); + + if (visa72hours) { + qualify_72hours.show(); + } + + if (visa144hours) { + qualify_144hours.show(); + } } else { tip_box.hide(); qualify_no.show();