userInfo.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="Cache-Control" content="no-siteapp">
  8. <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  9. <meta name="referrer" content="no-referrer" />
  10. <title>服务记录</title>
  11. <link rel="shortcut icon" href="../../../favicon.ico">
  12. <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
  13. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  14. <link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css" />
  15. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  16. <link rel="stylesheet" href="../css/userInfo.css" />
  17. </head>
  18. <body>
  19. <div id="app" v-cloak>
  20. <div class="c-container flex-box">
  21. <div class="w-250">
  22. <div class="user-images">
  23. <img class="img-circle" :src="getImgurl(userInfo.photo)" />
  24. </div>
  25. <p class="user-name text-center">{{userInfo.name}}</p>
  26. <p class="c-999 f14 text-center">{{userInfo.sex==1?'男':'女'}} {{!userInfo.age?'<1':userInfo.age}}岁 {{userInfo.expensesStatus==1?"已缴费":(userInfo.expensesStatus==2?"已退费":(userInfo.expensesStatus==0?"未缴费":""))}}</p>
  27. <p class="text-center">
  28. <span class="mb-icon-round green" v-if="userInfo.disease==1 && userInfo.diseaseCondition==0">
  29. </span>
  30. <span class="mb-icon-round green" v-if="userInfo.disease==2 && userInfo.diseaseCondition==0">
  31. </span>
  32. <span class="mb-icon-round green" v-if="(userInfo.disease=='1,2' || userInfo.disease=='2,1') && userInfo.diseaseCondition==0">
  33. 高糖
  34. </span>
  35. <span class="mb-icon-round orange" v-if="userInfo.disease==1 && userInfo.diseaseCondition==1">
  36. </span>
  37. <span class="mb-icon-round orange" v-if="userInfo.disease==2 && userInfo.diseaseCondition==1">
  38. </span>
  39. <span class="mb-icon-round orange" v-if="(userInfo.disease=='1,2' || userInfo.disease=='2,1') && userInfo.diseaseCondition==1">
  40. 高糖
  41. </span>
  42. <span class="mb-icon-round red" v-if="userInfo.disease==1 && userInfo.diseaseCondition==2">
  43. </span>
  44. <span class="mb-icon-round red" v-if="userInfo.disease==1 && userInfo.disease==2 && userInfo.diseaseCondition==2">
  45. </span>
  46. <span class="mb-icon-round red" v-if="(userInfo.disease=='1,2' || userInfo.disease=='2,1') && userInfo.diseaseCondition==2">
  47. 高糖
  48. </span>
  49. </p>
  50. <p class="text-center">
  51. <span class="icon icon-wx" v-if="userInfo.openid"></span>
  52. <span class="icon icon-wx-gray" v-else></span>
  53. <span class="icon icon-xueyaji" v-if='userInfo.deviceType && userInfo.deviceType.indexOf("2") > -1'></span>
  54. <span class="icon icon-xueyaji-gray" v-else></span>
  55. <span class="icon icon-xuetangyi"v-if='userInfo.deviceType && userInfo.deviceType.indexOf("1") > -1'></span>
  56. <span class="icon icon-xuetangyi-gray" v-else></span>
  57. </p>
  58. <ul class="tool-list clearfix">
  59. <li><a href="#">健康档案</a></li>
  60. <li><a href="#">慢病档案</a></li>
  61. <li><a href="#">服务记录</a></li>
  62. <li><a href="#">家庭成员</a></li>
  63. </ul>
  64. <div class="mt80 text-center c-999">
  65. 回复消息请前往PC端
  66. </div>
  67. </div>
  68. <div class="flex-box-item">
  69. <div class="panel panel-fff mb10">
  70. <div class="panel-heading">
  71. 居民标签
  72. </div>
  73. <div class="panel-body">
  74. <div class="flex-box mb10">
  75. <span class="w-80">服务类型</span>
  76. <div class="flex-box-item">
  77. <ul class="label-list bgc-12b7f5">
  78. <li v-for="type in userInfo.serverTypes">{{type.server_type_name}}</li>
  79. </ul>
  80. </div>
  81. </div>
  82. <div class="flex-box mb10">
  83. <span class="w-80">健康状况</span>
  84. <div class="flex-box-item">
  85. <ul class="label-list bgc-2DBE55">
  86. <li v-for="item in jkqk">{{item.labelName}}</li>
  87. </ul>
  88. </div>
  89. </div>
  90. <div class="flex-box mb10">
  91. <span class="w-80">疾病类型</span>
  92. <div class="flex-box-item">
  93. <ul class="label-list bgc-ff3b30">
  94. <li v-for="item in jblx">{{item.labelName}}</li>
  95. </ul>
  96. </div>
  97. </div>
  98. <div class="flex-box">
  99. <span class="w-80">团队标签</span>
  100. <div class="flex-box-item">
  101. <ul class="label-list bgc-FF9630">
  102. <li v-for="item in tdbq">{{item.labelName}}</li>
  103. </ul>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="panel panel-fff mb0">
  109. <div class="panel-heading">
  110. 个人信息
  111. </div>
  112. <div class="panel-body">
  113. <div class="flex-box mb10">
  114. <span class="w-110 c-999">身份证号</span>
  115. <div class="flex-box-item">
  116. {{userInfo.idcard}}
  117. </div>
  118. </div>
  119. <div class="flex-box mb10">
  120. <span class="w-110 c-999">医保卡号</span>
  121. <div class="flex-box-item">
  122. {{userInfo.ssc}}
  123. </div>
  124. </div>
  125. <div class="flex-box mb10">
  126. <span class="w-110 c-999">手机号码</span>
  127. <div class="flex-box-item">
  128. {{userInfo.mobile}}
  129. </div>
  130. </div>
  131. <div class="flex-box">
  132. <span class="w-110 c-999">所属居委会</span>
  133. <div class="flex-box-item">
  134. {{userInfo.jtHospitalName}}
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="panel panel-fff mb0" v-if="userInfo.jtDoctorName" style="border-top-width: 0;">
  140. <div class="panel-heading">
  141. 家庭医生签约信息
  142. </div>
  143. <div class="panel-body">
  144. <div class="flex-box mb10">
  145. <span class="w-110 c-999">全科医生</span>
  146. <div class="flex-box-item">
  147. {{userInfo.jtDoctorName}}
  148. </div>
  149. </div>
  150. <div class="flex-box mb10">
  151. <span class="w-110 c-999">健管事</span>
  152. <div class="flex-box-item">
  153. {{userInfo.jtDoctorHealthName}}
  154. </div>
  155. </div>
  156. <div class="flex-box mb10">
  157. <span class="w-110 c-999">续费时间</span>
  158. <div class="flex-box-item">
  159. {{userInfo.expensesStatus==1?"已缴费":(userInfo.expensesStatus==2?"已退费":(userInfo.expensesStatus==0?"未缴费":""))}}
  160. </div>
  161. </div>
  162. <div class="flex-box mb10">
  163. <span class="w-110 c-999">签约有效期</span>
  164. <div class="flex-box-item">
  165. {{userInfo.jtBeginDate+'~'+userInfo.jtEndDate}}
  166. </div>
  167. </div>
  168. <div class="flex-box mb10">
  169. <span class="w-110 c-999">政府补贴</span>
  170. <div class="flex-box-item">
  171. {{userInfo.expensesType=='01'?'无补贴':(userInfo.expensesType=='02'?'全部贴':(userInfo.expensesType=='03'?'补个人承担部分(20)':'补统筹基金(70)'))}}
  172. </div>
  173. </div>
  174. <div class="flex-box c-999">
  175. <span class="w-110">签约协议</span>
  176. <div class="flex-box-item">
  177. 请前往PC查看
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. <script type="text/javascript" src="../../../js/vue.js"></script>
  186. <script type="text/javascript" src="../../../js/jquery-2.2.4.js"></script>
  187. <script src="../../../js/util.js"></script>
  188. <script src="../../../api/http-request.js"></script>
  189. <script src="../../../js/underscore.js"></script>
  190. <script src="../../../api/temp-api.js"></script>
  191. <script type="text/javascript" src="../../../plugins/layer/layer.min.js" ></script>
  192. <script type="text/javascript">
  193. var httpData=GetRequest();
  194. (function(){
  195. new Vue({
  196. el:"#app",
  197. data:{
  198. patient:httpData['patient'],
  199. userInfo:{},
  200. jkqk:[],//健康情况
  201. jblx:[],//疾病标签
  202. tdbq:[],//团队标签
  203. },
  204. mounted: function(){
  205. if(!this.patient){
  206. layer.msg('未传入居民code(参数:patient)', {icon: 5})
  207. }else{
  208. this.getPatient();
  209. }
  210. },
  211. methods: {
  212. getImgurl: function(url){
  213. return httpRequest.getImgUrl(url)
  214. },
  215. getPatient:function(){
  216. var vm=this;
  217. var data={
  218. patient:vm.patient
  219. }
  220. tempAPI.getPatient(data).then(function(res){
  221. if(res.status==200){
  222. res.data &&(vm.userInfo=res.data);
  223. console.log(vm.userInfo)
  224. }else{
  225. layer.msg(res.msg, {icon: 5})
  226. }
  227. })
  228. tempAPI.patientLabel(data).then(function(res){
  229. if(res.status==200){
  230. var data=res.data
  231. if(data.length){
  232. for(var i in data){
  233. var item=data[i]
  234. if(item.labelType==2){
  235. vm.jkqk.push(item)
  236. }else if(item.labelType==3){
  237. vm.jblx.push(item)
  238. }else if(item.labelType==4){
  239. vm.tdbq.push(item)
  240. }
  241. }
  242. }
  243. }else{
  244. layer.msg(res.msg, {icon: 5})
  245. }
  246. })
  247. var wlyyAgentForDoc=JSON.parse(localStorage.getItem(httpRequest.agentName));
  248. var uid=wlyyAgentForDoc.uid;
  249. tempAPI.getDoctorTeam(uid).then(function(res){
  250. console.log(res)
  251. if(res.status==200){
  252. var params={
  253. teamCode:res.data[0] && res.data[0].id
  254. }
  255. // tempAPI.allLabels(params).then(function(res1){
  256. // console.log(res1)
  257. // })
  258. }else{
  259. layer.msg(res.msg, {icon: 5})
  260. }
  261. })
  262. }
  263. }
  264. })
  265. })();
  266. </script>
  267. </body>
  268. </html>