doctorIntroduction.vue 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. }
  107. .contentOne {
  108. margin: auto;
  109. margin-top: 1.125rem;
  110. width: 20.875rem;
  111. height: 7.4375rem;
  112. background: rgba(255, 255, 255, 1);
  113. box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
  114. border-radius: 0.5rem;
  115. padding-left: 1rem;
  116. padding-top: 1.125rem;
  117. box-sizing: border-box;
  118. .img {
  119. float: left;
  120. width: 5rem;
  121. height: 5rem;
  122. border-radius: 0.3125rem;
  123. img {
  124. border-radius: 0.3125rem;
  125. }
  126. }
  127. .detail {
  128. float: left;
  129. margin-left: 0.8125rem;
  130. width: 13.125rem;
  131. .detailTitle {
  132. margin-top: 0.5rem;
  133. width: 12.6875rem;
  134. height: 1.0625rem;
  135. font-size: 0.9375rem;
  136. font-weight: 600;
  137. color: rgba(7, 18, 40, 1);
  138. span {
  139. font-size: 0.875rem;
  140. color: rgba(155, 155, 155, 1);
  141. line-height: 1.125rem;
  142. margin-left: 1.25rem;
  143. font-weight: 400;
  144. }
  145. }
  146. .detailMessage {
  147. font-size: 0.875rem;
  148. color: rgba(155, 155, 155, 1);
  149. line-height: 1.5rem;
  150. font-weight: 400;
  151. margin-top: 0.875rem;
  152. height: 30px;
  153. overflow: hidden;
  154. text-overflow: ellipsis;
  155. display: -webkit-box;
  156. -webkit-line-clamp: 1;
  157. -webkit-box-orient: vertical;
  158. // border: solid 1px red;
  159. }
  160. }
  161. }
  162. .good {
  163. margin-left: 1.25rem;
  164. margin-top: 2.1875rem;
  165. }
  166. .common_title {
  167. width: 20.9375rem;
  168. height: 1.125rem;
  169. line-height: 1.125rem;
  170. }
  171. .dynamicTxt {
  172. float: left;
  173. width: 4.5rem;
  174. height: 1.125rem;
  175. line-height: 1.125rem;
  176. font-size: 1.125rem;
  177. font-weight: 600;
  178. color: rgba(7, 18, 40, 1);
  179. }
  180. .one {
  181. margin-top: 0.125rem;
  182. margin-right: 0.375rem;
  183. float: left;
  184. width: 0.125rem;
  185. height: 0.875rem;
  186. background: linear-gradient(
  187. 0deg,
  188. rgba(114, 182, 253, 1),
  189. rgba(52, 119, 254, 1)
  190. );
  191. box-shadow: 0px 3px 12px 0px rgba(60, 127, 254, 0.2);
  192. border-radius: 3px;
  193. }
  194. .goodtxt {
  195. margin: 1rem 0 2.25rem 0.875rem;
  196. font-size: 1rem;
  197. font-weight: 400;
  198. color: rgba(68, 75, 92, 1);
  199. line-height: 1.5rem;
  200. }
  201. </style>