doctorIntroduction.vue 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <template>
  2. <div class="page_doctorIntroduction">
  3. <div>
  4. <div class="contentOne">
  5. <div class="img">
  6. <img :src="doctors.dochead" style="width:100%;height:100%" alt />
  7. </div>
  8. <div class="detail">
  9. <p class="detailTitle">{{doctors.doc_name}}</p>
  10. <p class="detailMessage">{{doctors.doc_postion}}</p>
  11. </div>
  12. </div>
  13. <!-- <div class="good">
  14. <div class="common_title">
  15. <div class="one"></div>
  16. <div class="dynamicTxt">医生擅长</div>
  17. </div>
  18. <div class="goodtxt">擅长甲状腺、胆结石</div>
  19. </div>-->
  20. <div class="good">
  21. <div class="common_title">
  22. <div class="one"></div>
  23. <div class="dynamicTxt">医生简介</div>
  24. </div>
  25. <div class="goodtxt" v-html="doctors.docintroduction"></div>
  26. </div>
  27. </div>
  28. </div>
  29. </template>
  30. <script>
  31. import { singleDoctorInfo } from "@/api/micro/micro";
  32. export default {
  33. data() {
  34. return {
  35. doctors: []
  36. };
  37. },
  38. methods: {
  39. singleDoctorInfo(id, orgid) {
  40. singleDoctorInfo(id, orgid).then(response => {
  41. if (response.data.state == 1) {
  42. var editdoctor = response.data.data.editdoctor;
  43. if (editdoctor.doc_postion == 1) {
  44. editdoctor.doc_postion = "医士";
  45. }
  46. if (editdoctor.doc_postion == 2) {
  47. editdoctor.doc_postion = "医师";
  48. }
  49. if (editdoctor.doc_postion == 3) {
  50. editdoctor.doc_postion = "住院医师";
  51. }
  52. if (editdoctor.doc_postion == 4) {
  53. editdoctor.doc_postion = "主治医师";
  54. }
  55. if (editdoctor.doc_postion == 5) {
  56. editdoctor.doc_postion = "副主任医师";
  57. }
  58. if (editdoctor.doc_postion == 6) {
  59. editdoctor.doc_postion = "主任医师";
  60. }
  61. if (editdoctor.doc_postion == 7) {
  62. editdoctor.doc_postion = "护士";
  63. }
  64. if (editdoctor.doc_postion == 8) {
  65. editdoctor.doc_postion = "护师";
  66. }
  67. if (editdoctor.doc_postion == 9) {
  68. editdoctor.doc_postion = "主管护师";
  69. }
  70. if (editdoctor.doc_postion == 10) {
  71. editdoctor.doc_postion = "副主任护师";
  72. }
  73. if (editdoctor.doc_postion == 11) {
  74. editdoctor.doc_postion = "主任护师";
  75. }
  76. console.log("editdoctor", editdoctor);
  77. this.doctors = editdoctor;
  78. }
  79. });
  80. // { index: 1, name: '医士' },
  81. // { index: 2, name: '医师' },
  82. // { index: 3, name: '住院医师' },
  83. // { index: 4, name: '主治医师' },
  84. // { index: 5, name: '副主任医师' },
  85. // { index: 6, name: '主任医师' },
  86. // { index: 7, name: '护士' },
  87. // { index: 8, name: '护师' },
  88. // { index: 9, name: '主管护师' },
  89. // { index: 10, name: '副主任护师' },
  90. // { index: 11, name: '主任护师' },
  91. }
  92. },
  93. created() {
  94. const id = this.$route.query.id;
  95. const orgid = this.$route.query.orgid;
  96. console.log("id是多少", id);
  97. console.log("orgid是多少", orgid);
  98. this.singleDoctorInfo(id, orgid);
  99. }
  100. };
  101. </script>
  102. <style lang="scss" scoped>
  103. .page_doctorIntroduction {
  104. overflow: hidden;
  105. height: 100%;
  106. overflow-y: auto;
  107. &::-webkit-scrollbar {
  108. width: 0;
  109. }
  110. }
  111. .contentOne {
  112. margin: auto;
  113. margin-top: 1.125rem;
  114. width: 20.875rem;
  115. height: 7.4375rem;
  116. background: rgba(255, 255, 255, 1);
  117. box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
  118. border-radius: 0.5rem;
  119. padding-left: 1rem;
  120. padding-top: 1.125rem;
  121. box-sizing: border-box;
  122. .img {
  123. float: left;
  124. width: 5rem;
  125. height: 5rem;
  126. border-radius: 0.3125rem;
  127. img {
  128. border-radius: 0.3125rem;
  129. }
  130. }
  131. .detail {
  132. float: left;
  133. margin-left: 0.8125rem;
  134. width: 13.125rem;
  135. .detailTitle {
  136. margin-top: 0.5rem;
  137. width: 12.6875rem;
  138. height: 1.0625rem;
  139. font-size: 0.9375rem;
  140. font-weight: 600;
  141. color: rgba(7, 18, 40, 1);
  142. span {
  143. font-size: 0.875rem;
  144. color: rgba(155, 155, 155, 1);
  145. line-height: 1.125rem;
  146. margin-left: 1.25rem;
  147. font-weight: 400;
  148. }
  149. }
  150. .detailMessage {
  151. font-size: 0.875rem;
  152. color: rgba(155, 155, 155, 1);
  153. line-height: 1.5rem;
  154. font-weight: 400;
  155. margin-top: 0.875rem;
  156. height: 30px;
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. display: -webkit-box;
  160. -webkit-line-clamp: 1;
  161. -webkit-box-orient: vertical;
  162. // border: solid 1px red;
  163. }
  164. }
  165. }
  166. .good {
  167. margin-left: 1.25rem;
  168. margin-top: 2.1875rem;
  169. }
  170. .common_title {
  171. width: 20.9375rem;
  172. height: 1.125rem;
  173. line-height: 1.125rem;
  174. }
  175. .dynamicTxt {
  176. float: left;
  177. width: 6.25rem;
  178. height: 1.125rem;
  179. line-height: 1.125rem;
  180. font-size: 1.125rem;
  181. font-weight: 600;
  182. color: rgba(7, 18, 40, 1);
  183. }
  184. .one {
  185. margin-top: 0.125rem;
  186. margin-right: 0.375rem;
  187. float: left;
  188. width: 0.125rem;
  189. height: 0.875rem;
  190. background: linear-gradient(
  191. 0deg,
  192. rgba(114, 182, 253, 1),
  193. rgba(52, 119, 254, 1)
  194. );
  195. box-shadow: 0px 3px 12px 0px rgba(60, 127, 254, 0.2);
  196. border-radius: 3px;
  197. }
  198. .goodtxt {
  199. margin: 1rem 2rem 2.25rem 0.875rem;
  200. font-size: 1rem;
  201. font-weight: 400;
  202. color: rgba(68, 75, 92, 1);
  203. line-height: 1.5rem;
  204. // padding-right: 1.25rem;
  205. box-sizing: border-box;
  206. }
  207. </style>