소스 검색

文案调整

yuhaitao14 6 년 전
부모
커밋
d6bf9add2f
2개의 변경된 파일18개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 1
      shop/src/main/resource/templates/fragments.html
  2. 11 2
      shop/src/main/resource/templates/h5/edit_people.html

+ 7 - 1
shop/src/main/resource/templates/fragments.html

@@ -63,7 +63,13 @@
 	<div class="wp" th:fragment="footer">
 		<div class="links">
 			<p>
-				<strong>友情链接:</strong><a href="####">黑龙江省卫计委</a><a href="####">哈尔滨市卫计委</a>
+				<strong>友情链接:</strong>
+				<a href="http://www.hljhfpc.gov.cn/">黑龙江省卫生健康委员会</a>
+				<a href="http://www.hrbwsj.gov.cn/">哈尔滨市卫生健康委员会</a>
+				<a href="http://www.hrbwsj.gov.cn/">哈尔滨医科大学</a>
+				<a href="http://www.54dr.org.cn/">医大一院</a>
+				<a href="http://www.ydsy.cn/">医大四院</a>
+				<a href="http://hmucancerhospital.org.cn/">黑龙江省肿瘤医院</a>
 			</p>
 		</div>
 		<table class="footer" id="infoDiv">

+ 11 - 2
shop/src/main/resource/templates/h5/edit_people.html

@@ -3,7 +3,7 @@
 
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>预约体检</title>
+    <title>家人维护</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
     <link href="/h5/style/style.css" rel="stylesheet" />
     <script src="/h5/js/jquery-2.1.1.min.js"></script>
@@ -30,7 +30,7 @@
                     </td>
                     <td>
                         <div class="box">
-                            <input name="idcard" type="text" id="idcard" placeholder="请输入证件ID"  th:attr="value=${people.idcard}" />
+                            <input name="idcard" type="text" id="idcard" placeholder="请输入证件ID"  th:attr="value=${people.idcard}" onchange="autoSetBirth()"/>
                         </div>
                     </td>
                 </tr>
@@ -155,6 +155,15 @@
         	}
             $("#form1").submit();
         }
+        
+        function autoSetBirth(){
+        	var idcard = $("#idcard").val();
+        	console.log(idcard.length);
+			if (idcard.length == 18){
+				var birth = idcard.substring(6, 14);
+				$("#birth").val(idcard.substring(6,10) + "-" + idcard.substring(10,12) + "-" + idcard.substring(12,14));
+			}
+        }
 
         /* ]]> */
     </script>