Ver Fonte

xielianghe

lange há 5 anos atrás
pai
commit
eb4136f035
1 ficheiros alterados com 4 adições e 9 exclusões
  1. 4 9
      whepi-ui/templates/home/ribao.js

+ 4 - 9
whepi-ui/templates/home/ribao.js

@@ -52,9 +52,6 @@ function ribao_init() {
       {
         title: "妊娠期",
         value: "7",
-      }, {
-        title: "其他",
-        value: "8",
       }]
   });
 
@@ -383,14 +380,14 @@ function ribaoCommit() {
     alert("请填写姓名");
     return;
   }
-  if (age == undefined || age == '') {
-    alert("请填写年龄");
-    return;
-  }
   if (grender == 0) {
     alert("请填写性别");
     return;
   }
+  if (age == undefined || age == '') {
+    alert("请填写年龄");
+    return;
+  }
   if (age > 150 || age < 0) {
     alert("请填写正确的年龄");
     return;
@@ -634,8 +631,6 @@ function getFamilyStatus(familyStatus) {
     return "服用过激素药物";
   else if (familyStatus == 7)
     return "妊娠期";
-  else if (familyStatus == 8)
-    return "其他";
   return "";
 }