medicalTeam.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <div class="page_medicalTeam">
  3. <div class="header">
  4. <div class="line"></div>
  5. <div class="headerTitle">
  6. <span>医院名医团队</span>
  7. </div>
  8. <div class="line"></div>
  9. </div>
  10. <div class="msg">贴心的服务,让您的就医更轻松</div>
  11. <div class="content">
  12. <div
  13. class="contentOne"
  14. v-for="item in this.editdocfrom"
  15. :key="item.id"
  16. @click="singleDoctorInfo(item.id,item.user_org_id)"
  17. >
  18. <div class="img">
  19. <img :src="item.dochead" style="width:100%;height:100%" alt />
  20. </div>
  21. <div class="detail" v-if="item.docintroduction !=''">
  22. <p class="detailTitle">{{item.doc_name}}</p>
  23. <p class="detailMessage" v-html="item.docintroduction"></p>
  24. </div>
  25. <div class="detail" v-else-if="item.docintroduction == ''">
  26. <div class="noImg">
  27. <img src="../../../static/images/none2.png" alt />
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. import { docmore } from "@/api/micro/micro";
  36. export default {
  37. data() {
  38. return {
  39. editdocfrom: []
  40. };
  41. },
  42. methods: {
  43. docmore(id, orgid) {
  44. docmore(id, orgid).then(response => {
  45. if (response.data.state == 1) {
  46. var editdoctor = response.data.data.editdoctor;
  47. if (this.editdocfrom.doc_postion == 1) {
  48. this.editdocfrom.doc_postion = "";
  49. }
  50. console.log("编辑医生返回数据", editdoctor);
  51. this.editdocfrom = editdoctor;
  52. if (this.editdocfrom.doc_postion == 1) {
  53. return "医生";
  54. }
  55. }
  56. });
  57. },
  58. singleDoctorInfo(id, orgid) {
  59. this.$router.push({
  60. path: "/doctorIntroduction",
  61. query: {
  62. id: id,
  63. orgid: orgid
  64. }
  65. });
  66. }
  67. },
  68. created() {
  69. const id = this.$route.query.id;
  70. const orgid = this.$route.query.orgid;
  71. console.log("id是多少", id);
  72. console.log("orgid是多少", orgid);
  73. this.docmore(id, orgid);
  74. }
  75. };
  76. </script>
  77. <style lang="scss" scoped>
  78. .page_medicalTeam {
  79. overflow: hidden;
  80. height: 100%;
  81. overflow-y: auto;
  82. &::-webkit-scrollbar {
  83. width: 0;
  84. }
  85. }
  86. .header {
  87. height: 1.25rem;
  88. width: 9.375rem;
  89. text-align: center;
  90. margin: 0.75rem auto;
  91. .headerTitle {
  92. float: left;
  93. height: 1.25rem;
  94. line-height: 1.25rem;
  95. font-size: 1.125rem;
  96. color: rgba(7, 18, 40, 1);
  97. font-weight: 600;
  98. margin: 0 auto;
  99. text-align: center;
  100. padding: 0 0.25rem;
  101. }
  102. .line {
  103. float: left;
  104. margin-top: 0.5rem;
  105. width: 0.9375rem;
  106. height: 0.1875rem;
  107. background: linear-gradient(
  108. -45deg,
  109. rgba(75, 102, 234, 1),
  110. rgba(81, 119, 238, 1)
  111. );
  112. }
  113. }
  114. .msg {
  115. width: 14rem;
  116. height: 0.9375rem;
  117. font-size: 0.9375rem;
  118. color: rgba(7, 18, 40, 1);
  119. margin: 0 auto;
  120. text-align: center;
  121. }
  122. .contentOne {
  123. margin: auto;
  124. margin-top: 1.125rem;
  125. width: 20.875rem;
  126. height: 7.4375rem;
  127. background: rgba(255, 255, 255, 1);
  128. box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
  129. border-radius: 0.5rem;
  130. padding-left: 1rem;
  131. padding-top: 1.125rem;
  132. box-sizing: border-box;
  133. .img {
  134. float: left;
  135. width: 5rem;
  136. height: 5rem;
  137. img {
  138. border-radius: 0.3125rem;
  139. }
  140. }
  141. .detail {
  142. float: left;
  143. margin-left: 0.8125rem;
  144. width: 13.125rem;
  145. .detailTitle {
  146. margin-top: 0.5rem;
  147. width: 12.6875rem;
  148. height: 1.0625rem;
  149. line-height: 1.0625rem;
  150. font-size: 0.9375rem;
  151. font-weight: 600;
  152. color: rgba(7, 18, 40, 1);
  153. }
  154. .detailMessage {
  155. margin-top: 0.25rem;
  156. width: 13.25rem;
  157. height: 3.625rem;
  158. font-size: 0.8125rem;
  159. font-weight: 400;
  160. color: rgba(155, 155, 155, 1);
  161. line-height: 1.25rem;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. display: -webkit-box;
  165. -webkit-line-clamp: 2;
  166. -webkit-box-orient: vertical;
  167. }
  168. }
  169. }
  170. .detail {
  171. height: 100%;
  172. .noImg {
  173. width: 3.125rem;
  174. height: 3.125rem;
  175. margin: 1.25rem auto 0;
  176. img {
  177. width: 3.125rem;
  178. height: 3.125rem;
  179. }
  180. }
  181. }
  182. </style>