reportSelect.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view class="container">
  3. <view class="content">
  4. <image class="icon_menuSelect" :src="iconUrl.icon_menuSelect"></image>
  5. <image class="icon_menuSelectText" :src="iconUrl.icon_menuSelectText"></image>
  6. <view class="charging_title">检验、检查报告涉及患者个人隐私,在查询报告前,需先对您的身份进行实人认证</view>
  7. <template v-for="(item, ind) in queryBean.Children" :key="ind">
  8. <view class="charging_menu_list displayFlexCol" @click="goto(item)" v-if="item.IsShow == 1">
  9. <view class="displayFlexCol charging_menu_listText">
  10. <text class="menuName">{{ item.MenuName }}</text>
  11. <text class="tips" v-if="item.Tip && item.Tip != ''">在院期间的报告不可查询</text>
  12. </view>
  13. <image class="bg" :src="item.Icon"></image>
  14. </view>
  15. </template>
  16. </view>
  17. </view>
  18. </template>
  19. <script setup lang="ts">
  20. import { ref } from 'vue';
  21. import { onLoad } from '@dcloudio/uni-app';
  22. import icon from '@/utils/icon';
  23. import { menuClick } from '@/utils';
  24. const app = getApp();
  25. const iconUrl = ref(icon);
  26. const queryBean = ref<any>({});
  27. onLoad(() => {
  28. /**如果点击菜单时 有多级页面 会给selectUrl_x赋值 */
  29. if (app.globalData.selectUrl_x) {
  30. try {
  31. queryBean.value = typeof app.globalData.selectUrl_x === 'string'
  32. ? JSON.parse(app.globalData.selectUrl_x)
  33. : app.globalData.selectUrl_x;
  34. } catch (e) {
  35. console.error('JSON parse error', e);
  36. queryBean.value = {};
  37. }
  38. app.globalData.selectUrl_x = null;
  39. }
  40. });
  41. const goto = (item: any) => {
  42. menuClick(item, null);
  43. };
  44. </script>
  45. <style scoped>
  46. .container,
  47. .content {
  48. background: #fff;
  49. min-height: 100vh; /* Ensure full height cover */
  50. }
  51. .icon_menuSelect {
  52. width: 100%;
  53. height: 995upx;
  54. position: absolute;
  55. top: 0;
  56. }
  57. .icon_menuSelectText {
  58. position: absolute;
  59. width: 52upx;
  60. height: 31upx;
  61. top: 36upx;
  62. left: 36upx;
  63. }
  64. .charging_title {
  65. font-size: 28upx;
  66. font-family: PingFang SC;
  67. font-weight: 500;
  68. font-style: italic;
  69. color: #F8FFF1;
  70. position: relative;
  71. padding: 28upx 35upx 30upx;
  72. text-indent: 60upx;
  73. line-height: 50upx;
  74. }
  75. .charging_menu_list {
  76. height: 200upx;
  77. position: relative;
  78. margin: 0 30upx 30upx;
  79. align-items: flex-start;
  80. /* Ensure displayFlexCol behavior if not global */
  81. display: flex;
  82. flex-direction: column;
  83. }
  84. .charging_menu_listText {
  85. padding-left: 160upx;
  86. position: absolute;
  87. z-index: 2;
  88. align-items: flex-start;
  89. /* Ensure displayFlexCol behavior if not global */
  90. display: flex;
  91. flex-direction: column;
  92. justify-content: center; /* Adjust based on look */
  93. height: 100%; /* Center vertically in the list item */
  94. }
  95. .charging_menu_list .menuName {
  96. font-size: 32upx;
  97. font-family: PingFang SC;
  98. font-weight: bold;
  99. color: #263715;
  100. }
  101. .charging_menu_list .tips {
  102. font-size: 26upx;
  103. font-family: PingFang SC;
  104. font-weight: 500;
  105. color: #344A1D;
  106. opacity: 0.6;
  107. margin-top: 20upx;
  108. }
  109. .bg {
  110. width: 100%;
  111. height: 100%;
  112. position: absolute;
  113. top: 0;
  114. left: 0;
  115. z-index: 1;
  116. }
  117. .displayFlexCol {
  118. display: flex;
  119. flex-direction: column;
  120. }
  121. </style>