@@ -387,19 +387,20 @@ function ribaoCommit() {
alert("请填写年龄");
return;
}
- if (age.length > 3) {
- alert("请填写正确的年龄");
- return;
- }
if (grender == 0) {
alert("请填写性别");
+ if (age > 150 || age < 0) {
+ alert("请填写正确的年龄");
+ return;
+ }
+
if (temperature <= 0) {
alert("请填写体温");
- if (temperature.length > 4) {
+ if (temperature > 50 || temperature < 30) {
alert("请填写正确的体温");