guidance-detail.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  5. <meta charset="utf-8">
  6. <title>医生指导详情</title>
  7. <link rel="stylesheet" type="text/css" href="../../../common/iconfont/iconfont.css">
  8. <link rel="stylesheet" type="text/css" href="../../../common/cross/css/cross.css">
  9. <link rel="stylesheet" href="../../../common/cross/css/cross.ui.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="../../../common/css/jy-style.css">
  11. <link rel="stylesheet" type="text/css" href="../../../common/css/iscroll.css">
  12. <link rel="stylesheet" type="text/css" href="../css/huanzhexinxi.css">
  13. <style>
  14. .div-date {
  15. width: 120px;
  16. height: 17px;
  17. background: #DCDCDC;
  18. line-height: 17px;
  19. border-radius: 10px;
  20. font-size: 12px;
  21. color: #A9A9A9;
  22. text-align: center;
  23. vertical-align: middle;
  24. margin: 10px auto;
  25. }
  26. .list-tool {
  27. background: none;
  28. }
  29. .list-tool li {
  30. margin-left: 10px;
  31. }
  32. .list-tool .c-list-key {
  33. margin-top: 2px;
  34. margin-right: 10px;
  35. }
  36. .list-tool .talk {
  37. position: relative;
  38. width: 90%;
  39. padding: 10px;
  40. box-sizing: border-box;
  41. -moz-box-sizing: border-box;
  42. -webkit-box-sizing: border-box;
  43. background-color: #17B3EC;
  44. border-radius: 12px;
  45. }
  46. .list-tool .talk:after {
  47. position: absolute;
  48. top: 15px;
  49. left: -8px;
  50. font-size: 0;
  51. line-height: 0;
  52. width: 0;
  53. height: 0;
  54. content: '';
  55. border-color: transparent;
  56. border-style: dashed;
  57. border-right: 5px solid #17B3EC;
  58. }
  59. .list-tool .talk p {
  60. line-height: 22px;
  61. font-size: 14px;
  62. color: #fff;
  63. }
  64. #footer {
  65. position: absolute;
  66. bottom: 0;
  67. left: 0;
  68. z-index: 5;
  69. width: 100%;
  70. }
  71. .btn-blue {
  72. height: 40px;
  73. line-height: 40px !important;
  74. padding: 0;
  75. font-size: 16px;
  76. background-color: #17B3EC;
  77. }
  78. </style>
  79. </head>
  80. <body>
  81. <div class="main">
  82. <div class="h45">
  83. <div class="demo-comtop">
  84. <a class="mui-action-back"></a>
  85. <h1>指导详情</h1>
  86. </div>
  87. </div>
  88. <div id="wrapper" style="bottom:80px;top:45px;">
  89. <div class="iScroller">
  90. <ul id="detailBox">
  91. <li>
  92. <div class="div-date"></div>
  93. <ul class="c-list list-tool">
  94. <li>
  95. <div class="c-list-key">
  96. <img class="doctor-img" src="" width="50" height="50" style="border-radius: 50px;">
  97. <p class="doctor-name" style="width: 50px;font-size: 14px;padding-top: 10px;"></p>
  98. </div>
  99. <div class="c-list-info">
  100. <div class="talk">
  101. <p class="guide-content"></p>
  102. </div>
  103. </div>
  104. </li>
  105. </ul>
  106. </li>
  107. </ul>
  108. </div>
  109. </div>
  110. </div>
  111. <div id="footer">
  112. <div class="mlr15 mtb20">
  113. <a href="javascript:;" class="c-btn c-btn-full c-btn-radius btn-blue" id="add-guide">新增指导</a>
  114. </div>
  115. </div>
  116. </body>
  117. <script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
  118. <script type="text/javascript" src="../../../js/mui.js"></script>
  119. <script type="text/javascript" src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
  120. <script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
  121. <script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
  122. <script src="../../../js/app.js" type="text/javascript" charset="utf-8"></script>
  123. <script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
  124. <script src="../../js/templateHelp.js" type="text/javascript" charset="utf-8"></script>
  125. <script src="../../../js/iscroll-probe.js" type="text/javascript" charset="utf-8"></script>
  126. <script src="../../../js/iscroll-pull-up-down.js" type="text/javascript" charset="utf-8"></script>
  127. <script src="../../../widget/iscroll/5.1.3/js/iscroll.js"></script>
  128. <script>
  129. var patientCode = "";
  130. var self = null;
  131. mui.plusReady(function() {
  132. plus.nativeUI.showWaiting();
  133. scroller1 = new IScrollPullUpDown('wrapper',{
  134. probeType:2,
  135. bounceTime: 250,
  136. bounceEasing: 'quadratic',
  137. mouseWheel:false,
  138. click:true,
  139. scrollbars:true,
  140. fadeScrollbars:true,
  141. interactiveScrollbars:false
  142. },null,null);
  143. self = plus.webview.currentWebview();
  144. guideId = self.guideId;
  145. queryInit(guideId);
  146. });
  147. mui.back = function(){
  148. self.opener().reload(true);
  149. self.close();
  150. }
  151. function queryInit(guideId){
  152. sendPost("doctor/health/guidance/id", {
  153. id: guideId
  154. }, null, function(res) {
  155. console.log("指导记录:"+JSON.stringify(res));
  156. if(res.status == 200) {
  157. var data = res.data;
  158. $(".div-date").html(data.czrq);
  159. $(".doctor-name").html(data.doctorName);
  160. $(".guide-content").html(data.content);
  161. $(".doctor-img").attr("src",getImgUrl(data.photo));
  162. patientCode = data.patient;
  163. plus.nativeUI.closeWaiting();
  164. }
  165. });
  166. }
  167. $("#add-guide").on("click",function(){
  168. mui.openWindow('../../hzzd/html/xinzengzhidao.html', 'jkzd', {
  169. extras: {
  170. code: patientCode
  171. }
  172. });
  173. })
  174. </script>
  175. </html>