appointment.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>预约体检</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
  7. <link href="/h5/style/style.css" rel="stylesheet" />
  8. <script src="/h5/js/jquery-2.1.1.min.js"></script>
  9. </head>
  10. <body>
  11. <div class="registerPost">
  12. <form id="form1" action="/h5/appointment/save" method="post">
  13. <input type="hidden" name="bid" th:attr="value=${bid}"/>
  14. <input type="hidden" name="itemid" th:attr="value=${itemid}"/>
  15. <input type="hidden" name="birth" value=""/>
  16. <h6>选择体检人:</h6>
  17. <table>
  18. <tr>
  19. <td>
  20. <span><input name="fid" type="radio" value="0" id="tj0" class="radio" checked="checked" /><label for="tj0">新建体检人</label></span>
  21. <span th:each="people : ${peoples}">
  22. <input name="fid" type="radio" th:attr="value=${people.id},id=${people.id}" class="radio" />
  23. <label th:attr="for=${people.id},onclick='selectPeople(' + ${people.id} + ')'" for="tj1" th:text="${people.name}"></label>
  24. </span>
  25. </td>
  26. </tr>
  27. </table>
  28. <h6>体检人证件号:</h6>
  29. <table>
  30. <tr>
  31. <td style="width: 100px;">
  32. <div class="box mr10">
  33. <select name="">
  34. <option selected="selected">身份证</option>
  35. </select>
  36. </div>
  37. </td>
  38. <td>
  39. <div class="box">
  40. <input name="idcard" type="text" id="idcard" />
  41. </div>
  42. </td>
  43. </tr>
  44. </table>
  45. <h6>姓名:</h6>
  46. <table>
  47. <tr>
  48. <td>
  49. <div class="box">
  50. <input name="name" type="text" id="name" />
  51. </div>
  52. </td>
  53. </tr>
  54. </table>
  55. <h6>性别:</h6>
  56. <table>
  57. <tr>
  58. <td>
  59. <input name="sex" type="radio" class="radio" id="sex1" value="1" checked="checked" /><label for="n">男</label>
  60. <input name="sex" type="radio" value="0" id="sex0" class="radio" /><label for="v">女</label>
  61. </td>
  62. </tr>
  63. </table>
  64. <h6>手机号码:</h6>
  65. <table>
  66. <tr>
  67. <td>
  68. <div class="box">
  69. <input name="phone" id="phone" type="tel" />
  70. </div>
  71. </td>
  72. </tr>
  73. </table>
  74. <h6>体检日期及时间:</h6>
  75. <table>
  76. <tr>
  77. <td>
  78. <div class="box">
  79. <input id="atime" name="atime" type="date" />
  80. </div>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td><div class="box mt10">
  85. <select id="extend" name="extend">
  86. <option value="08:00">08:00</option>
  87. <option value="08:30">08:30</option>
  88. <option value="09:00">09:00</option>
  89. </select>
  90. </div></td>
  91. </tr>
  92. </table>
  93. <div class="h100"></div>
  94. <div class="registerBottom">
  95. <a href="/h5/buy/mypayedorders" class="last">取消</a><a href="javascript:save()" class="next">预约</a>
  96. </div>
  97. </form>
  98. </div>
  99. <script th:inline="javascript">
  100. var peoples = JSON.parse([[${peoplesJSON}]])
  101. /* <![CDATA[ */
  102. function selectPeople(id){
  103. for (var i = 0; i < peoples.length; ++i){
  104. var obj = peoples[i]
  105. if (obj.id==id){
  106. $("#idcard").val(obj.idcard);
  107. $("#name").val(obj.name);
  108. $("#sex" + obj.sex).attr("checked","checked")
  109. $("#phone").val(obj.phone)
  110. }
  111. }
  112. }
  113. function save(){
  114. $("#form1").submit();
  115. }
  116. /* ]]> */
  117. </script>
  118. </body>
  119. </html>