123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- <template>
- <div class="page">
- <div class="page-top">
- <div class="swiper">
- <SimpleSwiper :imageList="clubInfo.bannerList"></SimpleSwiper>
- </div>
- <div class="club-info">
- <img class="logo" :src="clubInfo.logo" />
- <div class="name" v-text="clubInfo.authParty"></div>
- <div class="remark" v-if="clubInfo.remark">
- 认证设备:{{ clubInfo.remark }}
- </div>
- </div>
- </div>
- <div class="page-content">
- <div class="club-info">
- <div class="address" v-text="address"></div>
- <div class="mobile">{{ clubInfo.mobile | formatEmpty }}</div>
- </div>
- <!-- 列表标题 -->
- <div class="title">明星操作师</div>
- <!-- 列表 -->
- <div class="list">
- <div
- class="section flex items-center"
- v-for="(item, index) in clubInfo.doctorList"
- :key="index"
- >
- <img :src="item.doctorImage" class="cover" />
- <div class="info">
- <div class="name" v-text="item.doctorName"></div>
- <div class="tag" v-text="item.tagList.join(' | ')"></div>
- <div class="more" @click="toDetail(item)">点击查看</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { drawLogo } from '@/utils'
- import { mapNavigate } from '@/utils/map-utils'
- export default {
- layout: 'app-ldm',
- filters: {
- formatEmpty(val) {
- return val || '未知'
- },
- formatSnCode(code) {
- if (!code) return ''
- return code.replace(/^(\w{2})\w+(\w{4})$/, '$1******$2')
- },
- },
- data() {
- return {
- clubInfo: {},
- }
- },
- computed: {
- address() {
- return this.clubInfo.area + this.clubInfo.address || '未知'
- },
- isEmpty() {
- return this.clubInfo.productList
- ? this.clubInfo.productList.length === 0
- : true
- },
- },
- mounted() {
- this.initData()
- },
- methods: {
- toDetail() {
- localStorage.setItem('doctorInfo', JSON.stringify(row))
- this.$router.push('/ldm/approve/personnel/operate/detail')
- },
- // 初始化
- initData() {
- const clubInfo = localStorage.getItem('clubInfo')
- if (clubInfo) {
- this.clubInfo = JSON.parse(clubInfo)
- this.fetchDetail()
- }
- },
- // 获取机构详细信息
- async fetchDetail() {
- try {
- const authId = this.clubInfo.authId
- const res = await this.$http.api.getAuthClubDetail({ authId })
- this.clubInfo = { ...this.clubInfo, ...res.data } // 合并
- } catch (error) {
- console.log(error)
- }
- if (this.clubInfo.bannerList.length <= 0) {
- this.clubInfo.bannerList.push('/placeholder.png')
- }
- if (!this.clubInfo.logo) {
- this.clubInfo.logo = drawLogo(this.clubInfo.authParty)
- }
- },
- // 导航
- navigation() {},
- },
- }
- </script>
- <style scoped lang="scss">
- @media screen and (min-width: 768px) {
- .page {
- display: flex;
- justify-content: space-between;
- width: 1035px;
- margin: 0 auto;
- position: relative;
- padding-top: 500px;
- padding-bottom: 60px;
- }
- .page-top {
- .swiper {
- width: 452px;
- height: 452px;
- }
- .club-info {
- width: 100%;
- position: absolute;
- top: 80px;
- text-align: center;
- .logo {
- display: block;
- width: 158px;
- height: 158px;
- margin: 0 auto;
- border-radius: 50%;
- box-shadow: 0 4px 9px rgba(0, 0, 0, 0.34);
- }
- .name {
- font-size: 50px;
- font-weight: bold;
- color: #000000;
- margin: 39px 0 26px;
- }
- .remark {
- font-size: 25px;
- font-weight: bold;
- color: #000000;
- }
- }
- }
- .page-content {
- width: 507px;
- // height: 452px;
- // overflow-y: auto;
- .club-info {
- font-size: 19px;
- color: #000000;
- .address,
- .mobile {
- position: relative;
- padding: 36px 0;
- border-top: 1px solid rgba(0, 0, 0, 0.169);
- padding-left: 26px;
- &::after {
- content: '';
- display: block;
- width: 20px;
- height: 20px;
- position: absolute;
- left: 0;
- top: 40px;
- background-size: auto 20px;
- background-repeat: no-repeat;
- }
- }
- .mobile {
- border-bottom: 1px solid rgba(0, 0, 0, 0.169);
- &::after {
- background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact.png);
- }
- }
- .address {
- &::after {
- background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-address.png);
- }
- }
- }
- }
- .title {
- font-size: 21px;
- color: #000;
- font-weight: bold;
- padding: 40px 0;
- &::before {
- content: '';
- display: inline-block;
- width: 24px;
- height: 28px;
- background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-badge-black.png)
- no-repeat center;
- background-size: 24px;
- vertical-align: -7px;
- margin-right: 8px;
- }
- }
- .list {
- display: flex;
- flex-direction: column;
- align-items: center;
- .section {
- width: 100%;
- margin-bottom: 32px;
- .cover {
- display: block;
- width: 140px;
- height: 140px;
- border-radius: 1.7vw;
- }
- .info {
- position: relative;
- flex: 1;
- margin-left: 18px;
- .name {
- font-size: 26px;
- color: #000;
- font-weight: bold;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .tag {
- width: 206px;
- font-size: 14px;
- color: #000;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- margin-top: 15px;
- }
- .more {
- position: absolute;
- bottom: 0;
- right: 0;
- font-size: 19px;
- color: #0080ed;
- cursor: pointer;
- &::after {
- content: '>';
- margin-left: 8px;
- }
- }
- }
- }
- }
- }
- @media screen and (max-width: 768px) {
- .page-top {
- position: relative;
- height: 137vw;
- .swiper {
- height: 100vw;
- }
- .club-info {
- width: 100%;
- position: absolute;
- bottom: 0;
- text-align: center;
- .logo {
- display: block;
- width: 29.5vw;
- height: 29.5vw;
- margin: 0 auto;
- border-radius: 50%;
- box-shadow: 0 0.4vw 0.9vw rgba(0, 0, 0, 0.34);
- }
- .name {
- font-size: 5vw;
- font-weight: bold;
- color: #000000;
- margin: 6vw 0;
- }
- .remark {
- font-size: 2.5vw;
- font-weight: bold;
- color: #000000;
- }
- }
- }
- .page-content {
- .club-info {
- font-size: 3vw;
- color: #000000;
- padding: 6vw 3vw;
- .address,
- .mobile {
- position: relative;
- padding: 4vw 0;
- border-top: 0.1vw solid rgba(0, 0, 0, 0.169);
- padding-left: 8.6vw;
- &::after {
- content: '';
- display: block;
- width: 4vw;
- height: 4vw;
- position: absolute;
- left: 4.3vw;
- top: 4vw;
- background-size: auto 3.6vw;
- background-repeat: no-repeat;
- }
- }
- .mobile {
- border-bottom: 0.1vw solid rgba(0, 0, 0, 0.169);
- &::after {
- background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact.png);
- }
- }
- .address {
- &::after {
- background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-address.png);
- }
- }
- }
- }
- .title {
- font-size: 3.4vw;
- color: #000;
- font-weight: bold;
- text-align: center;
- &::before {
- content: '';
- display: inline-block;
- width: 3.7vw;
- height: 4.4vw;
- background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-badge-black.png)
- no-repeat center;
- background-size: 3.7vw;
- vertical-align: -0.8vw;
- margin-right: 1vw;
- }
- }
- .list {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-top: 6vw;
- .section {
- width: 95vw;
- padding: 5vw;
- background: #f1f1f1;
- border-radius: 2.4vw;
- box-sizing: border-box;
- margin-bottom: 2.4vw;
- .cover {
- display: block;
- width: 21.8vw;
- height: 21.8vw;
- border-radius: 1.7vw;
- }
- .info {
- position: relative;
- flex: 1;
- margin-left: 2.7vw;
- .name {
- font-size: 4.2vw;
- color: #000;
- font-weight: bold;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .tag {
- width: 30vw;
- font-size: 2.2vw;
- color: #000;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- margin-top: 2.5vw;
- }
- .more {
- position: absolute;
- bottom: 0;
- right: 0;
- font-size: 3vw;
- color: #0080ed;
- &::after {
- content: '>';
- margin-left: 1vw;
- }
- }
- }
- }
- }
- }
- </style>
|