PatIndex.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. <template>
  2. <div class="container">
  3. <div v-if="latestCase.id" style="position:absolute;width:100%;">
  4. <div class="bgcolor">
  5. <div class="docinfo">
  6. <img class="docavatar" src="../assets/images/doch1.jpg" width="60rem" height="60rem" />
  7. <p class="docname">{{patinfo.name}} 您好!</p>
  8. </div>
  9. </div>
  10. <!-- <div class="bgimg"></div> -->
  11. <div class="content">
  12. <div class="injectRecord">
  13. <div v-if="latestCase.hasrecords">
  14. <div class="formTitle">体内FVIII活性水平实时预报</div>
  15. <div class="lrcontainer">
  16. <!-- <div class="lritem left">
  17. <img class="ratioBg3" src="../assets/images/personbg.png" width="80" height="216"></img>
  18. <div class="ratioBg" :style="'height:'+ratioHeight+'px;'">
  19. </div>
  20. <img class="ratioBg2" src="../assets/images/personbg1.png" width="80" height="216"></img>
  21. </div> -->
  22. <div class="lritem left">
  23. <img height="100%" v-if="latestCase.FVIII<1" class="ratioBg3" src="../assets/images/_1.png"
  24. ></img>
  25. <img v-if="latestCase.FVIII>=1 && latestCase.FVIII<=3" class="ratioBg3" src="../assets/images/1-3.png"
  26. width="100%"></img>
  27. <img v-if="latestCase.FVIII>3 && latestCase.FVIII<=5" class="ratioBg3" src="../assets/images/3-5.png"
  28. width="100%"></img>
  29. <img v-if="latestCase.FVIII>5 && latestCase.FVIII<=15" class="ratioBg3" src="../assets/images/5-15.png"
  30. width="100%"></img>
  31. <img v-if="latestCase.FVIII>15" class="ratioBg3" src="../assets/images/_15.png"
  32. width="100%"></img>
  33. </div>
  34. <div class="lritem right">
  35. <!-- <div class="rowfont" style="margin:5px 0px;color:red;font-weight:bold;font-size:1.4rem">
  36. FVIII浓度:{{latestCase.FVIII}}%</div> -->
  37. <div class="rowfont" style="
  38. margin:5px 0px;color:red;
  39. font-weight:bold;font-size:4.2rem;
  40. text-align: center;height: 75px;line-height: 75px;">
  41. {{latestCase.FVIII}}%</div>
  42. <!-- <div class="rowfont">参考方案</div>
  43. <div class="rowfont">1.产品:{{latestCase.ckmpro}}</div>
  44. <div class="rowfont">2.剂量:{{latestCase.ckzsjl}}</div>
  45. <div class="rowfont">3.频次:{{latestCase.ckmfreq}}</div>
  46. <div class="rowfont">本结果仅供参考,</div>
  47. <div class="rowfont">具体治疗方案请遵医嘱执行</div> -->
  48. <div v-if="latestCase.FVIII < 1">
  49. <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
  50. < 1%
  51. </div>
  52. <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;">建议咨询医生</div>
  53. </div>
  54. <div v-if="latestCase.FVIII >= 1 && latestCase.FVIII <= 3">
  55. <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
  56. 1% ~ 3%
  57. </div>
  58. <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适宜无风险活动</div>
  59. <div class="rowfont" style="font-weight:bold;font-size:1.0rem;color:#3B4070;">(如看书、看电视、家务等)</div>
  60. </div>
  61. <div v-if="latestCase.FVIII > 3 && latestCase.FVIII <= 5">
  62. <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
  63. 3% ~ 5%
  64. </div>
  65. <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适宜低风险活动</div>
  66. <div class="rowfont" style="font-weight:bold;font-size:0.8rem;color:#3B4070;">(如散步、慢跑、无对抗运动等)</div>
  67. </div>
  68. <div v-if="latestCase.FVIII > 5 && latestCase.FVIII <= 15">
  69. <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
  70. 5% ~ 15%
  71. </div>
  72. <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适宜中风险活动</div>
  73. <div class="rowfont" style="font-weight:bold;font-size:0.8rem;color:#3B4070;">(如爬山、骑行、球类运动等)</div>
  74. </div>
  75. <div v-if="latestCase.FVIII > 15">
  76. <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
  77. >15%
  78. </div>
  79. <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适高风险活动</div>
  80. <div class="rowfont" style="font-weight:bold;font-size:0.8rem;color:#3B4070;">(如滑雪、滑冰、滑板等)</div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="footer">
  86. <div class="jbbtn" @click="goPage('/patclockin')">注射打卡</div>
  87. <div class="jbbtn" @click="goPage('/patinjectionlist')">注射记录</div>
  88. <div class="jbbtn" @click="goPage('/procaselist')">PK及方案</div>
  89. <div class="jbbtn" @click="logout">退出登录</div>
  90. <div class="usageInfo" @click="goPage('agreedoc?type=2')">使用说明</div>
  91. </div>
  92. <div class="desc">
  93. <img src="../assets/images/desc.png" alt="" width="100%">
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <!-- 未查询到病例信息 -->
  99. <div v-else>
  100. <div class="content">
  101. <!-- <div class="bgimg">
  102. <div class="docinfo">
  103. <img class="docavatar" src="../assets/images/doch1.jpg" width="60rem" height="60rem" />
  104. <p class="docname">{{patinfo.name}} 您好!</p>
  105. </div>
  106. <div style="margin:16.8rem auto;width:50%;font-size:1.4rem;margin-top:16.8rem">
  107. 未查询到您的信息请等待主治医生进行信息录入
  108. </div>
  109. </div> -->
  110. <div style="position:relative;">
  111. <img src="../assets/images/infobg.png" alt="" width="100%" style="">
  112. <div class="docinfo">
  113. <img class="docavatar" src="../assets/images/doch1.jpg" width="60rem" height="60rem" />
  114. <p class="docname">{{patinfo.name}} 您好!</p>
  115. </div>
  116. <div style="margin:40px auto;width:80%;font-size:1.4rem;">
  117. 未查询到您的信息请等待主治医生进行信息录入
  118. </div>
  119. </div>
  120. <div class="footer">
  121. <div class="jbbtn" @click="logout">退出登录</div>
  122. </div>
  123. <div class="desc">
  124. <img src="../assets/images/desc.png" alt="" width="100%">
  125. </div>
  126. </div>
  127. </div>
  128. <!-- <div class="desc">
  129. <span>1、本结果仅供参考,具体治疗方案请遵医嘱执行</span><br>
  130. <span>2、Target plasma factor levels for personalized treatment in haemophilia: a Delphi consensus statement,
  131. Alorio,et al.Haemophilia,2017</span><br>
  132. <span>3、Optimising prophylaxis in haemophilia A: The ups and downs of treatment,Erik Berntorp,et al. Blood
  133. Rev, 2021 Nov</span>
  134. </div> -->
  135. </div>
  136. </template>
  137. <script>
  138. import {
  139. Cell
  140. } from 'mint-ui'
  141. export default {
  142. name: 'Index',
  143. components: {
  144. Cell
  145. },
  146. data() {
  147. return {
  148. msg: 'Welcome to Your Vue.js App',
  149. inflag: 0,
  150. patinfo: {},
  151. latestCase: {},
  152. ratioHeight: 0
  153. }
  154. },
  155. methods: {
  156. goPage(path) {
  157. this.$router.push(path)
  158. },
  159. logout() {
  160. window.localStorage.removeItem('token')
  161. window.localStorage.removeItem('authinfo')
  162. window.location.reload()
  163. },
  164. getData() {
  165. this.$api.getAccountInfo().then(res => {
  166. if (!res.data.code) {
  167. this.patinfo = res.data.data
  168. this.$api.getPatientLatestCase().then(res => {
  169. if (!res.data.code) {
  170. this.latestCase = res.data.data
  171. this.ratioHeight = 216 / 100 * this.latestCase.FVIII
  172. // this.latestCase.FVIII = 7
  173. }
  174. })
  175. }
  176. })
  177. }
  178. },
  179. created() {
  180. this.getData()
  181. }
  182. }
  183. </script>
  184. <style scoped lang="scss">
  185. .container {
  186. .content {
  187. height: 100%;
  188. margin-top: 0px;
  189. }
  190. height: 100%;
  191. background: #fff;
  192. .bgcolor {
  193. width: 100%;
  194. height: 11rem;
  195. position: absolute;
  196. background: #016AFA;
  197. }
  198. .bgimg {
  199. width: 100%;
  200. height: 24.8rem;
  201. // border:1px solid red;
  202. /* top: 10rem; */
  203. position: absolute;
  204. /* z-index:-1; */
  205. background-image: url("../assets/images/infobg.png");
  206. background-size: 100% 100%;
  207. }
  208. .docinfo {
  209. position: absolute;
  210. top: 30%;
  211. left: 0;
  212. right: 0;
  213. .docavatar {
  214. border-radius: 60rem;
  215. }
  216. .docname {
  217. color: #fff;
  218. margin: 0.2rem;
  219. font-size: 1.2rem;
  220. }
  221. z-index:3;
  222. }
  223. .injectRecord {
  224. margin-top: 12.5rem;
  225. }
  226. .formTitle {
  227. height: 1rem;
  228. line-height: 1rem;
  229. color: #2882F4;
  230. padding-bottom: 0.5rem;
  231. font-weight: bold;
  232. font-size: 1.2rem;
  233. margin-top: 9rem;
  234. }
  235. .lrcontainer {
  236. display: flex;
  237. width: 80%;
  238. margin: auto;
  239. margin-top: 2rem;
  240. /* margin-bottom: 2rem; */
  241. /* height: 246px; */
  242. .right {
  243. left: 30%;
  244. width: 70%;
  245. }
  246. .left {
  247. width: 35%;
  248. margin-top: 10px;
  249. position: relative;
  250. /* overflow: hidden; */
  251. margin-left:5%;
  252. }
  253. .lritem {
  254. justify-content: space-between;
  255. /* height: 196px; */
  256. /* margin-left:1.6rem; */
  257. .ratioBg {
  258. width: 78px;
  259. position: absolute;
  260. left: 0;
  261. right: 0;
  262. bottom: 20px;
  263. margin: auto;
  264. z-index: 0;
  265. /* background:#2D9AF4; */
  266. background-image: url("../assets/images/test.png");
  267. background-size: 100% 100%;
  268. height: 100px;
  269. }
  270. .ratioBg1 {
  271. width: 80px;
  272. position: absolute;
  273. left: 0;
  274. right: 0;
  275. bottom: 20px;
  276. margin: auto;
  277. z-index: -1;
  278. /* background:#64B3F6; */
  279. height: 216px;
  280. ;
  281. }
  282. .ratioBg2 {
  283. width: 80px;
  284. position: absolute;
  285. left: 0;
  286. right: 0;
  287. bottom: 20px;
  288. margin: auto;
  289. z-index: -1;
  290. /* background:#64B3F6; */
  291. /* height: 150px; */
  292. }
  293. .ratioBg3 {
  294. /* width: 80px; */
  295. position: absolute;
  296. left: -1rem;
  297. top:0;
  298. right: 0;
  299. bottom: 0;
  300. margin: auto;
  301. z-index: 1;
  302. /* height: 216px; */
  303. }
  304. .mint-cell {
  305. min-height: 2.0rem;
  306. }
  307. }
  308. }
  309. /deep/ .right .mint-cell .mint-cell-title {
  310. width: 70%;
  311. text-align: left;
  312. }
  313. /deep/ .right .mint-cell-wrapper {
  314. padding: 0px 20px;
  315. font-size: 1rem;
  316. background-size: 0px 0px;
  317. }
  318. .footer {
  319. margin-top: 20px;
  320. margin-bottom: 4rem;
  321. .jbbtn{
  322. margin-top: 10px;
  323. }
  324. .usageInfo {
  325. width: 6rem;
  326. height: 2.4rem;
  327. line-height: 2.4rem;
  328. border-radius: 1rem;
  329. background: #595758;
  330. color: #fff;
  331. margin: 2rem 1rem;
  332. }
  333. }
  334. }
  335. .rowfont {
  336. text-align: center;
  337. }
  338. .desc{
  339. text-align: left;
  340. font-size:12px;
  341. color:#ccc;
  342. padding:1rem;
  343. }
  344. </style>