Selaa lähdekoodia

'建档选择其他证件类型'

yaodeguang 3 päivää sitten
vanhempi
commit
1fc336b4f4
1 muutettua tiedostoa jossa 14 lisäystä ja 0 poistoa
  1. 14 0
      src/main/resources/static/js/mz/registration.js

+ 14 - 0
src/main/resources/static/js/mz/registration.js

@@ -287,6 +287,20 @@ $(function () {
     //
     // });
 
+    $("#certificateType").change(function (e) {
+        if ($("#certificateType").val() === '99') {
+            let monthStr = (new Date().getMonth() + 1).length === 1 ? ('0'+(new Date().getMonth() + 1)) : (new Date().getMonth() + 1)
+            let currentDate = new Date().getFullYear() + '-' + monthStr + '-' + new Date().getDate()
+            $("#birthDay").val(currentDate)
+            $("#age").val(0);
+            $("#ageDetail").val(0);
+            $("#ageDetail").blur();
+            $("#gender").selectpicker('val', "0");
+            $("#gender").selectpicker('refresh');
+            $("#gender").blur();
+        }
+    });
+
     $("#birthDay").change(function (e) {
         setAge();
         $("#age").blur();