doctorInfo.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <view :class="['doctorInfo', doctorInfoIsShow ? 'doctorInfo_show' : '']" @click="cancelInfo">
  3. <view class="doctorInfo_box" @click.stop>
  4. <view class="pop_box box_radius displayFlexRow">
  5. <text class="tit">{{doctorInfo.DoctorName}}</text>
  6. <image class="arrow_icon" :src="iconUrl.icon_commonDel" @click="cancelInfo"></image>
  7. </view>
  8. <view class="doctorInfo_box_main">
  9. <view class="doctor_info_item">
  10. <text>科室:</text>
  11. <text>{{doctorInfo.DeptName}}</text>
  12. </view>
  13. <view class="doctor_info_item">
  14. <text>职称:</text>
  15. <text>{{doctorInfo.Title || doctorInfo.DoctorTitle || doctorInfo.LczcName || '医生'}}</text>
  16. </view>
  17. <view class="doctor_info_item">
  18. <text>擅长:</text>
  19. <text>{{doctorInfo.Spec || doctorInfo.DoctorSkill || '暂无擅长信息'}}</text>
  20. </view>
  21. <view class="doctor_info_item">
  22. <text>介绍:</text>
  23. <text>{{doctorInfo.Intro || doctorInfo.DoctorIntro || '暂无介绍信息'}}</text>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script setup lang="ts">
  30. import { defineProps, defineEmits,ref } from 'vue';
  31. import icon from '@/utils/icon';
  32. const iconUrl = ref(icon)
  33. const props = defineProps({
  34. doctorInfo: {
  35. type: Object,
  36. default: () => ({})
  37. },
  38. doctorInfoIsShow: {
  39. type: Boolean,
  40. default: false
  41. }
  42. });
  43. const emit = defineEmits(['update:doctorInfoIsShow', 'close']);
  44. const cancelInfo = () => {
  45. emit('update:doctorInfoIsShow', false);
  46. emit('close');
  47. };
  48. </script>
  49. <style lang="scss" scoped>
  50. .doctorInfo {
  51. position: fixed;
  52. z-index: 11;
  53. width: 100%;
  54. height: 100%;
  55. top: 100%;
  56. left: 0;
  57. background-color: transparent;
  58. /* transition: background-color 0s, top 0.5s linear 0s; */
  59. }
  60. .doctorInfo_show {
  61. top: 0;
  62. background-color: rgba(0, 0, 0, 0.6);
  63. /* transition: top 0.5s, background-color 0.5s linear 0.5s; */
  64. }
  65. /* 医生详情框 */
  66. .doctorInfo_box {
  67. position: absolute;
  68. width: 100%;
  69. bottom: 0;
  70. left: 0;
  71. background-color: #fff;
  72. border-radius: 24upx 24upx 0px 0px;
  73. padding-top: 48upx;
  74. }
  75. .doctorInfo_box_main {
  76. max-height: 700upx;
  77. overflow: auto;
  78. padding: 30upx;
  79. }
  80. .pop_box {
  81. width: 100%;
  82. height: 10%;
  83. position: relative;
  84. background: white;
  85. padding: 0 30upx;
  86. position: relative;
  87. }
  88. .pop_box .tit {
  89. font-size: 36upx;
  90. font-weight: bold;
  91. text-align: center;
  92. display: block;
  93. }
  94. .pop_box .arrow_icon {
  95. width: 30upx;
  96. height: 30upx;
  97. position: absolute;
  98. top: 50%;
  99. right: 40upx;
  100. margin-top: -15upx;
  101. }
  102. .box_radius {
  103. border-radius: 20upx 20upx 0 0;
  104. }
  105. .pop-box,
  106. .doctor_info_item text:nth-child(1) {
  107. font-size: 32upx;
  108. font-family: PingFang SC;
  109. font-weight: bold;
  110. color: #333;
  111. }
  112. .pop-box .tit {
  113. display: inline-block;
  114. width: 100%;
  115. line-height: 100upx;
  116. font-size: 36upx;
  117. font-family: PingFang SC;
  118. font-weight: bold;
  119. color: #333;
  120. text-align: center;
  121. }
  122. .pop-box image {
  123. width: 30upx;
  124. height: 30upx;
  125. position: absolute;
  126. top: 50%;
  127. right: 30upx;
  128. margin-top: -15upx;
  129. }
  130. .doctor_info_item {
  131. margin-bottom: 47upx;
  132. /* align-items: flex-start; */
  133. }
  134. .doctor_info_item text:nth-child(2) {
  135. font-size: 32upx;
  136. font-family: PingFang SC;
  137. color: #666;
  138. line-height: 48upx;
  139. }
  140. /* 适老版 */
  141. .concise.info_inner {
  142. position: absolute;
  143. width: 100%;
  144. bottom: 0;
  145. left: 0;
  146. background-color: #fff;
  147. border-radius: 24upx 24upx 0px 0px;
  148. padding-top: 48upx;
  149. }
  150. .concise .infoBox{
  151. max-height: 600upx;
  152. overflow: auto;
  153. }
  154. .concise .info_tit {
  155. text-align: center;
  156. font-size: 44upx;
  157. font-family: PingFang SC;
  158. font-weight: 700;
  159. color: #222326;
  160. padding-bottom: 80upx;
  161. }
  162. .concise .tip_cha {
  163. width: 34upx;
  164. height: 34upx;
  165. position: absolute;
  166. right: 36upx;
  167. top: 50upx;
  168. }
  169. .concise .info_item {
  170. width: 100%;
  171. display: flex;
  172. padding: 0 32upx 24upx;
  173. }
  174. .concise .info_item_tit {
  175. min-width: 120upx;
  176. font-size: 40upx;
  177. font-family: PingFang SC;
  178. font-weight: bold;
  179. color: #222326;
  180. }
  181. .concise .info_item_val {
  182. font-size: 36upx;
  183. font-family: PingFang SC;
  184. color: #43434A;
  185. line-height: 48upx;
  186. text-align: justify;
  187. line-height: 65upx;
  188. }
  189. </style>