medicalTeam.vue 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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.content !=''">
  22. <p class="detailTitle">{{item.name}}</p>
  23. <p class="detailMessage" v-html="item.content"></p>
  24. </div>
  25. <div class="detail" v-else-if="item.content ==''">
  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,GetAllDoctors} 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. GetAllDoctors(orgid){
  68. GetAllDoctors(orgid).then(response=>{
  69. if(response.data.state == 1){
  70. console.log("hhehhhehehehe")
  71. var info = response.data.data.info;
  72. this.editdocfrom = info;
  73. console.log("info是多少",info)
  74. }
  75. })
  76. }
  77. },
  78. created() {
  79. const id = this.$route.query.id;
  80. const orgid = this.$route.query.orgid;
  81. console.log("id是多少", id);
  82. console.log("orgid是多少", orgid);
  83. // this.docmore(id, orgid);
  84. this.GetAllDoctors(orgid)
  85. }
  86. };
  87. </script>
  88. <style lang="scss" scoped>
  89. .page_medicalTeam {
  90. overflow: hidden;
  91. height: 100%;
  92. overflow-y: auto;
  93. &::-webkit-scrollbar {
  94. width: 0;
  95. }
  96. }
  97. .header {
  98. height: 1.25rem;
  99. width: 9.375rem;
  100. text-align: center;
  101. margin: 0.75rem auto;
  102. .headerTitle {
  103. float: left;
  104. height: 1.25rem;
  105. line-height: 1.25rem;
  106. font-size: 1.125rem;
  107. color: rgba(7, 18, 40, 1);
  108. font-weight: 600;
  109. margin: 0 auto;
  110. text-align: center;
  111. padding: 0 0.25rem;
  112. }
  113. .line {
  114. float: left;
  115. margin-top: 0.5rem;
  116. width: 0.9375rem;
  117. height: 0.1875rem;
  118. background: linear-gradient(
  119. -45deg,
  120. rgba(75, 102, 234, 1),
  121. rgba(81, 119, 238, 1)
  122. );
  123. }
  124. }
  125. .msg {
  126. width: 14rem;
  127. height: 0.9375rem;
  128. font-size: 0.9375rem;
  129. color: rgba(7, 18, 40, 1);
  130. margin: 0 auto;
  131. text-align: center;
  132. }
  133. .contentOne {
  134. margin: auto;
  135. margin-top: 1.125rem;
  136. width: 20.875rem;
  137. height: 7.4375rem;
  138. background: rgba(255, 255, 255, 1);
  139. box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
  140. border-radius: 0.5rem;
  141. padding-left: 1rem;
  142. padding-top: 1.125rem;
  143. box-sizing: border-box;
  144. .img {
  145. float: left;
  146. width: 5rem;
  147. height: 5rem;
  148. img {
  149. border-radius: 0.3125rem;
  150. }
  151. }
  152. .detail {
  153. float: left;
  154. margin-left: 0.8125rem;
  155. width: 13.125rem;
  156. .detailTitle {
  157. margin-top: 0.5rem;
  158. width: 12.6875rem;
  159. height: 1.0625rem;
  160. line-height: 1.0625rem;
  161. font-size: 0.9375rem;
  162. font-weight: 600;
  163. color: rgba(7, 18, 40, 1);
  164. }
  165. .detailMessage {
  166. margin-top: 0.25rem;
  167. width: 13.25rem;
  168. height: 3.625rem;
  169. font-size: 0.8125rem;
  170. font-weight: 400;
  171. color: rgba(155, 155, 155, 1);
  172. line-height: 1.25rem;
  173. overflow: hidden;
  174. text-overflow: ellipsis;
  175. display: -webkit-box;
  176. -webkit-line-clamp: 2;
  177. -webkit-box-orient: vertical;
  178. }
  179. }
  180. }
  181. .detail {
  182. height: 100%;
  183. .noImg {
  184. width: 3.125rem;
  185. height: 3.125rem;
  186. margin: 1.25rem auto 0;
  187. img {
  188. width: 3.125rem;
  189. height: 3.125rem;
  190. }
  191. }
  192. }
  193. </style>