普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

330 lines
8.5 KiB

  1. <template>
  2. <view class="page__view">
  3. <navbar title="体检报告" leftClick @leftClick="$utils.navigateBack" color="#191919" bgColor="#FFFFFF" />
  4. <view class="main" v-if="detail">
  5. <view class="section">
  6. <reportSummaryView :data="detail"></reportSummaryView>
  7. </view>
  8. <view class="section">
  9. <reportMainIndexView :list="detail.mainIndexList"></reportMainIndexView>
  10. </view>
  11. <view class="section">
  12. <reportAbnormalView :list="detail.abnormalList"></reportAbnormalView>
  13. </view>
  14. <view class="section">
  15. <reportCommonView :data="detail"></reportCommonView>
  16. </view>
  17. </view>
  18. <view class="bottom">
  19. <button class="flex btn" @click="jumpToNutritionProgram">查看营养方案</button>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import reportSummaryView from './reportSummaryView.vue'
  25. import reportMainIndexView from './reportMainIndexView.vue'
  26. import reportAbnormalView from './reportAbnormalView.vue'
  27. import reportCommonView from './reportCommonView.vue'
  28. export default {
  29. components: {
  30. reportSummaryView,
  31. reportMainIndexView,
  32. reportAbnormalView,
  33. reportCommonView,
  34. },
  35. data() {
  36. return {
  37. id: null,
  38. detail: null,
  39. }
  40. },
  41. onLoad(arg) {
  42. this.id = arg.id
  43. this.getData()
  44. },
  45. methods: {
  46. getData() {
  47. this.detail = {
  48. score: 77,
  49. BMI: 20.3,
  50. BMIchange: -0.2,
  51. BMItag: '正常',
  52. height: 164,
  53. weight: 46,
  54. mainIndexList: [
  55. {
  56. id: '001',
  57. label: '心率',
  58. value: '75',
  59. unit: 'bpm(次/分钟)',
  60. standrad: '60-100bpm',
  61. status: 1,
  62. },
  63. {
  64. id: '002',
  65. label: '血氧',
  66. value: '99',
  67. unit: '%',
  68. standrad: '≥94%',
  69. status: 1,
  70. },
  71. {
  72. id: '003',
  73. label: '空腹血糖',
  74. value: '4.0',
  75. unit: 'mmol/L',
  76. standrad: '3.9-6.1mmol/L',
  77. status: 1,
  78. },
  79. {
  80. id: '004',
  81. label: '血压',
  82. value: '110/80',
  83. unit: 'mmHg',
  84. standrad: '140/90mmHg~90/60 mmHg',
  85. status: 1,
  86. },
  87. ],
  88. abnormalList: [
  89. {
  90. id: '001',
  91. title: '甲状腺结节(甲状腺结节或钙化)',
  92. desc: '建议进一步监测;常规测甲状腺功能全套,甲状腺。',
  93. },
  94. {
  95. id: '002',
  96. title: '甲状腺结节(甲状腺结节或钙化)',
  97. desc: '建议进一步监测;常规测甲状腺功能全套,甲状腺。',
  98. },
  99. {
  100. id: '003',
  101. title: '甲状腺结节(甲状腺结节或钙化)',
  102. desc: '建议进一步监测;常规测甲状腺功能全套,甲状腺。',
  103. },
  104. {
  105. id: '004',
  106. title: '甲状腺结节(甲状腺结节或钙化)',
  107. desc: '建议进一步监测;常规测甲状腺功能全套,甲状腺。',
  108. },
  109. ],
  110. chronicFoodAllergyList: [
  111. {
  112. id: '001',
  113. label: '血小板',
  114. value: '5.2',
  115. standrad: '125~350×10^9/L',
  116. status: 1,
  117. },
  118. {
  119. id: '002',
  120. label: '血红蛋白',
  121. value: '4.8',
  122. standrad: '110 ~ 150g/L',
  123. status: 1,
  124. },
  125. {
  126. id: '003',
  127. label: '白细胞',
  128. value: '3.0',
  129. standrad: '3.9-6.1mmol/L',
  130. status: 1,
  131. },
  132. {
  133. id: '004',
  134. label: '转氨酶',
  135. value: '7.0',
  136. standrad: '3.9-6.1mmol/L',
  137. status: 1,
  138. },
  139. {
  140. id: '005',
  141. label: '胆红素',
  142. value: '17',
  143. standrad: '3.9-6.1mmol/L',
  144. status: 1,
  145. },
  146. {
  147. id: '006',
  148. label: '白蛋白',
  149. value: '15',
  150. standrad: '3.9-6.1mmol/L',
  151. status: 1,
  152. },
  153. {
  154. id: '007',
  155. label: '肌酐',
  156. value: '4',
  157. standrad: '3.9-6.1mmol/L',
  158. status: 1,
  159. },
  160. {
  161. id: '008',
  162. label: '尿酸',
  163. value: '556',
  164. standrad: '3.9-6.1mmol/L',
  165. status: 0,
  166. },
  167. {
  168. id: '009',
  169. label: '血压',
  170. value: '23',
  171. standrad: '3.9-6.1mmol/L',
  172. status: 0,
  173. },
  174. {
  175. id: '010',
  176. label: '甘油三酯',
  177. value: '56',
  178. standrad: '3.9-6.1mmol/L',
  179. status: 0,
  180. },
  181. ],
  182. gutMicrobiomeList: [
  183. {
  184. id: '001',
  185. label: '血小板',
  186. value: '5.2',
  187. standrad: '125~350×10^9/L',
  188. status: 1,
  189. },
  190. {
  191. id: '002',
  192. label: '血红蛋白',
  193. value: '4.8',
  194. standrad: '110 ~ 150g/L',
  195. status: 1,
  196. },
  197. {
  198. id: '003',
  199. label: '白细胞',
  200. value: '3.0',
  201. standrad: '3.9-6.1mmol/L',
  202. status: 1,
  203. },
  204. {
  205. id: '004',
  206. label: '转氨酶',
  207. value: '7.0',
  208. standrad: '3.9-6.1mmol/L',
  209. status: 1,
  210. },
  211. {
  212. id: '005',
  213. label: '胆红素',
  214. value: '17',
  215. standrad: '3.9-6.1mmol/L',
  216. status: 1,
  217. },
  218. {
  219. id: '006',
  220. label: '白蛋白',
  221. value: '15',
  222. standrad: '3.9-6.1mmol/L',
  223. status: 1,
  224. },
  225. {
  226. id: '007',
  227. label: '肌酐',
  228. value: '4',
  229. standrad: '3.9-6.1mmol/L',
  230. status: 1,
  231. },
  232. {
  233. id: '008',
  234. label: '尿酸',
  235. value: '556',
  236. standrad: '3.9-6.1mmol/L',
  237. status: 0,
  238. },
  239. {
  240. id: '009',
  241. label: '血压',
  242. value: '23',
  243. standrad: '3.9-6.1mmol/L',
  244. status: 0,
  245. },
  246. {
  247. id: '010',
  248. label: '甘油三酯',
  249. value: '56',
  250. standrad: '3.9-6.1mmol/L',
  251. status: 0,
  252. },
  253. ],
  254. scoreList: [
  255. { id: '001', label: '饮食', value: 23 },
  256. { id: '002', label: '饮食', value: 23 },
  257. { id: '003', label: '作息', value: 44 },
  258. { id: '004', label: '作息', value: 44 },
  259. { id: '005', label: '运动', value: 88 },
  260. { id: '006', label: '运动', value: 88 },
  261. { id: '007', label: '体质', value: 56 },
  262. { id: '008', label: '体质', value: 56 },
  263. { id: '009', label: '心理', value: 78 },
  264. { id: '010', label: '心理', value: 100 },
  265. ],
  266. }
  267. console.log('detail', this.detail)
  268. },
  269. jumpToNutritionProgram() {
  270. this.$utils.navigateTo(`/pages_order/report/nutritionProgram/index?id=${this.id}`)
  271. },
  272. },
  273. }
  274. </script>
  275. <style scoped lang="scss">
  276. .page__view {
  277. width: 100vw;
  278. min-height: 100vh;
  279. background-color: $uni-bg-color;
  280. position: relative;
  281. /deep/ .nav-bar__view {
  282. position: fixed;
  283. top: 0;
  284. left: 0;
  285. }
  286. }
  287. .main {
  288. padding: calc(var(--status-bar-height) + 168rpx) 32rpx 280rpx 32rpx;
  289. }
  290. .section {
  291. & + & {
  292. margin-top: 40rpx;
  293. }
  294. }
  295. .bottom {
  296. width: 100%;
  297. height: 200rpx;
  298. position: fixed;
  299. left: 0;
  300. bottom: 0;
  301. padding: 24rpx 40rpx;
  302. box-sizing: border-box;
  303. background: #FFFFFF;
  304. .btn {
  305. padding: 16rpx 0;
  306. font-family: PingFang SC;
  307. font-size: 36rpx;
  308. font-weight: 500;
  309. line-height: 1;
  310. color: #FFFFFF;
  311. background-image: linear-gradient(to right, #4B348F, #845CFA);
  312. border-radius: 41rpx;
  313. }
  314. }
  315. </style>