浏览代码

건강정보기록 수정

huiwon.seo 4 年之前
父节点
当前提交
508f33582a

+ 10 - 7
src/main/webapp/WEB-INF/jsp/mobile/health/health1.jsp

@@ -6,25 +6,28 @@
 <script>
 $( function(){
     $( "#healthForm" ).validate({
-    	rules : {
-    		temperature : {
-    			floatNum : true
-    		}
-    	},
+        rules : {
+            temperature : {
+                floatNum : true
+            }
+        },
         onkeyup: function( element, event ) {
             $( "div.error-msg" ).text( "" );
         },
         onfocusout: function (element) {
             $( "div.error-msg" ).text( "" );
         },
+        errorPlacement: function(error, element) {
+            $( "div.error-msg" ).append( error );
+        },
         submitHandler: function(form) {
             var temperature = $.trim( $( "input[name='temperature']" ).val() );
             
             if( temperature.length == 0 ) {
-                $( "div.error-msg" ).text( "체온을 입력해주세요 (Please enter your body temperature)" );
+                $( "div.error-msg" ).empty().text( "체온을 입력해주세요 (Please enter your body temperature)" );
             } else {
                 $( "#phrValue" ).val( temperature );
-//                 form.submit();
+                form.submit();
             }
         }
     });

+ 14 - 0
src/main/webapp/WEB-INF/jsp/mobile/health/health2.jsp

@@ -6,12 +6,26 @@
 <script>
 $( function(){
     $( "#healthForm" ).validate({
+        rules : {
+            pulseRate : {
+                floatNum : true
+            },
+            bloodPressure : {
+                floatNum : true
+            },
+            bloodPressure2 : {
+                floatNum : true
+            }
+        },
         onkeyup: function( element, event ) {
             $( "div.error-msg" ).text( "" );
         },
         onfocusout: function (element) {
             $( "div.error-msg" ).text( "" );
         },
+        errorPlacement: function(error, element) {
+            $( "div.error-msg" ).empty().append( error );
+        },
         submitHandler: function(form) {
             //맥박수
             var pulseRate = $.trim( $( "input[name='pulseRate']" ).val() );

+ 8 - 0
src/main/webapp/WEB-INF/jsp/mobile/health/health3.jsp

@@ -6,12 +6,20 @@
 <script>
 $( function(){
     $( "#healthForm" ).validate({
+        rules : {
+            oxygenSaturation : {
+                floatNum : true
+            }
+        },
         onkeyup: function( element, event ) {
             $( "div.error-msg" ).text( "" );
         },
         onfocusout: function (element) {
             $( "div.error-msg" ).text( "" );
         },
+        errorPlacement: function(error, element) {
+            $( "div.error-msg" ).empty().append( error );
+        },
         submitHandler: function(form) {
             var oxygenSaturation = $.trim( $( "input[name='oxygenSaturation']" ).val() );
             

+ 8 - 0
src/main/webapp/WEB-INF/jsp/mobile/health/health4.jsp

@@ -6,12 +6,20 @@
 <script>
 $( function(){
     $( "#healthForm" ).validate({
+        rules : {
+            bloodSugar : {
+                floatNum : true
+            }
+        },
         onkeyup: function( element, event ) {
             $( "div.error-msg" ).text( "" );
         },
         onfocusout: function (element) {
             $( "div.error-msg" ).text( "" );
         },
+        errorPlacement: function(error, element) {
+            $( "div.error-msg" ).empty().append( error );
+        },
         submitHandler: function(form) {
             var bloodSugar = $.trim( $( "input[name='bloodSugar']" ).val() );
             

+ 0 - 16
src/main/webapp/WEB-INF/jsp/mobile/nonface/nonface.jsp

@@ -5,22 +5,6 @@
 <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
 <script type="text/javascript">
 $( function() {
-//     var gsWin = window.open('about:blank','nonface');
-//     var frm =document.nonface;
-//     frm.action = 'https://lemon.medihere.com/app/vc';
-//     frm.target ="nonface";
-//     frm.method ="post";
-//     frm.submit();
-
-    //$("#nonface").submit();
-//     var param = { type : "command",
-//     		functionType : "popUpBrowsing",
-//     		value : {
-//     			url : "https://life-center.lemonhc.com/mobile/nonface/wait",
-//     			method : "POST",
-//     			parameters : $( "#nonface" ).serialize()
-//     		}
-//         }
     systemBrowsing( "https://life-center.lemonhc.com/mobile/nonface/wait?" + $( "#nonface" ).serialize() );
     
     setTimeout( function(){