微信

index.vue 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="mainPage">
  3. <img :src="title" class="title" alt="">
  4. <div v-if="result && result.length">
  5. <div class="userInfo flex-h">
  6. <div class="flex-item">
  7. <span>{{user.Username}}</span>
  8. <span>{{user.Sex=='0' ? '先生' : '女士'}}</span>
  9. </div>
  10. <div>
  11. <span>体检时间</span>
  12. <span>{{toolClass.dateFormat(user.CreateTime)}}</span>
  13. </div>
  14. </div>
  15. <ul>
  16. <li v-for="(item,index) in result" @click="linkTo(item.ReportUrl)" :key="index" class="flex-h">
  17. <div class="flex-item">
  18. <h1>{{item.TypeName}}:</h1>
  19. <span v-for="(subItem,subIndex) in item.Details" :key="subIndex">{{subItem.SpecName}}({{subItem.CheckName}}):{{subItem.CheckVal}}</span>
  20. </div>
  21. <i class="iconfont icon-buoumaotubiao52"></i>
  22. </li>
  23. </ul>
  24. <span class="tip">本报告单仅提供临床参考,不作为诊断依据</span>
  25. <div class="view-report">
  26. <i class="iconfont icon-shuoming" style="font-size: 1.2em"></i> <a :href="mainInfo.ReportUrl">点击查看完整报告</a>
  27. </div>
  28. </div>
  29. <div v-else class="nodata">
  30. 暂无体检数据 .
  31. </div>
  32. <div class="bg-white" :hidden="ishidden">
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. // import { Indicator } from 'mint-ui'
  38. import title from '../../../common/icon/title.png'
  39. import { createNamespacedHelpers } from 'vuex'
  40. const { mapState: mapBodyCheckState, mapActions: mapBodyCheckActions } = createNamespacedHelpers('bodyCheck')
  41. export default {
  42. data() {
  43. return {
  44. title,
  45. ishidden: true
  46. }
  47. },
  48. computed: {
  49. ...mapBodyCheckState({
  50. result: x => x.result,
  51. mainInfo: x => x.mainInfo,
  52. user: x => x.user
  53. })
  54. },
  55. methods:{
  56. linkTo(url){
  57. window.location.href=url
  58. },
  59. loaded() {
  60. var _that = this
  61. setTimeout(() => {
  62. // Indicator.close()
  63. _that.ishidden = true
  64. }, 500)
  65. },
  66. },
  67. beforeMount() {
  68. // Indicator.open()
  69. },
  70. created() {
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. @import "page.scss";
  76. .bg-white{
  77. width: 100%;
  78. height: 100%;
  79. position: absolute;
  80. left: 0;
  81. top: 0;
  82. background-color: #fff;
  83. }
  84. </style>