123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <template>
- <div class="page_medicalTeam">
- <div class="header">
- <div class="line"></div>
- <div class="headerTitle">
- <span>医院名医团队</span>
- </div>
- <div class="line"></div>
- </div>
- <div class="msg">贴心的服务,让您的就医更轻松</div>
- <div class="content">
- <div
- class="contentOne"
- v-for="item in this.editdocfrom"
- :key="item.id"
- @click="singleDoctorInfo(item.id,item.user_org_id)"
- >
- <div class="img">
- <img :src="item.dochead" style="width:100%;height:100%" alt />
- </div>
- <div class="detail" v-if="item.docintroduction !=''">
- <p class="detailTitle">{{item.doc_name}}</p>
- <p class="detailMessage" v-html="item.docintroduction"></p>
- </div>
- <div class="detail" v-else-if="item.docintroduction == ''">
- <div class="noImg">
- <img src="../../../static/images/none2.png" alt />
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { docmore } from "@/api/micro/micro";
- export default {
- data() {
- return {
- editdocfrom: []
- };
- },
- methods: {
- docmore(id, orgid) {
- docmore(id, orgid).then(response => {
- if (response.data.state == 1) {
- var editdoctor = response.data.data.editdoctor;
- if (this.editdocfrom.doc_postion == 1) {
- this.editdocfrom.doc_postion = "";
- }
- console.log("编辑医生返回数据", editdoctor);
- this.editdocfrom = editdoctor;
- if (this.editdocfrom.doc_postion == 1) {
- return "医生";
- }
- }
- });
- },
-
- singleDoctorInfo(id, orgid) {
- this.$router.push({
- path: "/doctorIntroduction",
- query: {
- id: id,
- orgid: orgid
- }
- });
- }
- },
- created() {
- const id = this.$route.query.id;
- const orgid = this.$route.query.orgid;
- console.log("id是多少", id);
- console.log("orgid是多少", orgid);
- this.docmore(id, orgid);
- }
- };
- </script>
- <style lang="scss" scoped>
- .page_medicalTeam {
- overflow: hidden;
- height: 100%;
- overflow-y: auto;
- &::-webkit-scrollbar {
- width: 0;
- }
- }
- .header {
- height: 1.25rem;
- width: 9.375rem;
- text-align: center;
- margin: 0.75rem auto;
- .headerTitle {
- float: left;
- height: 1.25rem;
- line-height: 1.25rem;
- font-size: 1.125rem;
- color: rgba(7, 18, 40, 1);
- font-weight: 600;
- margin: 0 auto;
- text-align: center;
- padding: 0 0.25rem;
- }
- .line {
- float: left;
- margin-top: 0.5rem;
- width: 0.9375rem;
- height: 0.1875rem;
- background: linear-gradient(
- -45deg,
- rgba(75, 102, 234, 1),
- rgba(81, 119, 238, 1)
- );
- }
- }
- .msg {
- width: 14rem;
- height: 0.9375rem;
- font-size: 0.9375rem;
- color: rgba(7, 18, 40, 1);
- margin: 0 auto;
- text-align: center;
- }
- .contentOne {
- margin: auto;
- margin-top: 1.125rem;
- width: 20.875rem;
- height: 7.4375rem;
- background: rgba(255, 255, 255, 1);
- box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.05);
- border-radius: 0.5rem;
- padding-left: 1rem;
- padding-top: 1.125rem;
- box-sizing: border-box;
- .img {
- float: left;
- width: 5rem;
- height: 5rem;
- img {
- border-radius: 0.3125rem;
- }
- }
- .detail {
- float: left;
- margin-left: 0.8125rem;
- width: 13.125rem;
- .detailTitle {
- margin-top: 0.5rem;
- width: 12.6875rem;
- height: 1.0625rem;
- line-height: 1.0625rem;
- font-size: 0.9375rem;
- font-weight: 600;
- color: rgba(7, 18, 40, 1);
- }
- .detailMessage {
- margin-top: 0.25rem;
- width: 13.25rem;
- height: 3.625rem;
- font-size: 0.8125rem;
- font-weight: 400;
- color: rgba(155, 155, 155, 1);
- line-height: 1.25rem;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- }
- }
- .detail {
- height: 100%;
- .noImg {
- width: 3.125rem;
- height: 3.125rem;
- margin: 1.25rem auto 0;
- img {
- width: 3.125rem;
- height: 3.125rem;
- }
- }
- }
- </style>
|