123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399 |
- <template>
- <div class="page">
- <div class="page-top flex flex-col justify-center items-center">
- <!-- <img class="logo" :src="supplierInfo.logo" /> -->
- <div class="name mt-2" v-text="supplierInfo.shopName + '认证记录'"></div>
- </div>
- <div class="page-content">
- <template v-if="clubInfo">
- <div class="page-title">机构认证</div>
- <div class="row">
- <div class="col">机构名称:</div>
- <div class="col">{{ clubInfo.authParty }}</div>
- </div>
- <div class="row">
- <div class="col">联系电话:</div>
- <div class="col">{{ clubInfo.mobile }}</div>
- </div>
- <div class="row">
- <div class="col">所在地区:</div>
- <div class="col">{{ clubInfo.area }}</div>
- </div>
- <div class="row">
- <div class="col">所在位置:</div>
- <div class="col">{{ clubInfo.address }}</div>
- </div>
- <div class="row">
- <div class="col max-width">logo:</div>
- <div class="col">
- <el-image
- v-if="clubInfo.logo"
- :src="clubInfo.logo"
- :preview-src-list="[clubInfo.logo]"
- >
- </el-image>
- <span v-else>暂无图片</span>
- </div>
- </div>
- <div class="row">
- <div class="col max-width">门头照:</div>
- <div class="col">
- <template
- v-if="clubInfo.bannerList && clubInfo.bannerList.length > 0"
- >
- <template v-for="(image, index) in clubInfo.bannerList">
- <el-image
- :key="index"
- :src="image"
- :preview-src-list="clubInfo.bannerList"
- />
- </template>
- </template>
- <span v-else>暂无图片</span>
- </div>
- </div>
- <div class="row">
- <div class="col">机构类型:</div>
- <div class="col">
- {{
- ['医美', '生美', '项目公司', '个人', '其他'][
- clubInfo.firstClubType - 1
- ]
- }}
- </div>
- </div>
- <div
- class="row"
- v-if="clubInfo.firstClubType === 1 || clubInfo.firstClubType === 2"
- >
- <div class="col">医美类型:</div>
- <div class="col">
- {{
- ['诊所', '门诊', '医院', '其他', '美容院', '养生馆', '其他'][
- clubInfo.secondClubType - 1
- ]
- }}
- </div>
- </div>
- <div class="row" v-if="clubInfo.firstClubType === 1">
- <div class="col max-width">医疗许可证:</div>
- <div class="col">
- <el-image
- v-if="clubInfo.medicalLicenseImage"
- :src="clubInfo.medicalLicenseImage"
- :preview-src-list="[clubInfo.medicalLicenseImage]"
- />
- <span v-else>暂无图片</span>
- </div>
- </div>
- <div class="row">
- <div class="col">员工人数:</div>
- <div class="col">{{ clubInfo.empNum }}</div>
- </div>
- <div class="row">
- <div class="col">状态:</div>
- <div class="col">
- <div class="status">
- <span class="success" v-if="clubInfo.auditStatus === 1"
- >认证成功</span
- >
- <span class="warning" v-else-if="clubInfo.auditStatus === 2"
- >认证中</span
- >
- <span class="danger" v-else>认证失败</span>
- </div>
- </div>
- </div>
- <div class="row" v-if="clubInfo.auditStatus === 0">
- <div class="col">原因:</div>
- <div class="col">
- {{ clubInfo.invalidReason ? clubInfo.invalidReason : '暂无' }}
- </div>
- </div>
- <div class="control flex flex-col items-center">
- <div
- class="button edit flex justify-center items-center mb-2"
- @click="onEdit"
- v-if="clubInfo.auditStatus === 0"
- >
- 编辑
- </div>
- <div
- class="button search flex justify-center items-center"
- @click="onToDeviceList"
- >
- 查看认证设备
- </div>
- </div>
- </template>
- <template v-else>
- <SimpleEmpty name="icon-empty-club.png" description="暂无机构认证~" />
- </template>
- </div>
- </div>
- </template>
- <script>
- import SimpleEmpty from '@/components/SimpleEmpty'
- import { mapGetters } from 'vuex'
- export default {
- layout: 'app',
- components: {
- SimpleEmpty,
- },
- data() {
- return {
- clubInfo: null,
- authId: ''
- }
- },
- computed: {
- ...mapGetters(['supplierInfo', 'routePrefix', 'clubUserId', 'userInfo']),
- },
- created() {
- this.fetchAuthDetail()
- },
- methods: {
- // 获取认证机构信息
- async fetchAuthDetail() {
- try {
- const result = await this.$http.api.fetchClubAuthInfo({
- clubUserId: this.clubUserId,
- })
- if(!result.data.auth) return
- this.authId = result.data.auth.authId
- const res = await this.$http.api.fetchClubAuthInfoData({
- authId: result.data.auth.authId,
- })
-
- this.clubInfo = res.data
- } catch (error) {
- console.log(error)
- }
- },
- onToDeviceList() {
- this.$router.push(`${this.routePrefix}/record/device?authId=${this.authId}`)
- },
- onEdit() {
- this.$router.push(`${this.routePrefix}/record/club/edit`)
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- @media screen and (min-width: 768px) {
- .page {
- background: #fff;
- }
- .page-top {
- height: 360px;
- @include themify($themes) {
- background: themed('pc-banner-record-club');
- background-size: auto 360px;
- }
- .logo {
- display: block;
- width: 120px;
- height: 120px;
- border-radius: 50%;
- background: #fff;
- }
- .name {
- font-size: 30px;
- color: #fff;
- }
- }
- .page-content {
- width: 600px;
- margin: 0 auto;
- overflow: hidden;
- min-height: calc(100vh - 80px - 80px - 360px);
- box-sizing: border-box;
- padding-bottom: 40px;
- .page-title {
- font-size: 24px;
- font-weight: bold;
- text-align: center;
- padding: 40px 0;
- }
- .row {
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- font-size: 18px;
- margin: 24px 0;
- .status {
- .success {
- color: #f3920d !important;
- }
- .warning {
- color: #1890ff !important;
- }
- .danger {
- color: #f94b4b !important;
- }
- }
- .col {
- &:first-child {
- white-space: nowrap;
- width: 110px;
- color: #666;
- text-align: right;
- flex-shrink: 0;
- }
- &:last-child {
- color: #282828;
- }
- }
- .el-image {
- width: 120px;
- height: 120px;
- margin-right: 12px;
- }
- }
- .control {
- margin-top: 62px;
- .button {
- width: 295px;
- height: 50px;
- cursor: pointer;
- &.edit {
- @include themify($themes) {
- border: 1px solid themed('color');
- color: themed('color');
- }
- }
- &.search {
- @include themify($themes) {
- background-color: themed('color');
- color: #fff;
- }
- }
- }
- }
- }
- }
- @media screen and (max-width: 768px) {
- .page {
- background: #fff;
- }
- .page-top {
- height: 46vw;
- @include themify($themes) {
- background: themed('h5-banner-record-club');
- background-size: auto 46vw;
- }
- .logo {
- display: block;
- width: 14.8vw;
- height: 14.8vw;
- border-radius: 50%;
- background: #fff;
- }
- .name {
- font-size: 4vw;
- color: #fff;
- }
- }
- .page-content {
- box-sizing: border-box;
- padding: 8vw 7.2vw;
- .page-title {
- font-size: 4.2vw;
- font-weight: bold;
- text-align: center;
- margin-bottom: 8vw;
- color: #282828;
- }
- .row {
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- font-size: 3.4vw;
- margin-bottom: 5.6vw;
- flex-wrap: wrap;
- .status {
- .success {
- color: #f3920d !important;
- }
- .warning {
- color: #1890ff !important;
- }
- .danger {
- color: #f94b4b !important;
- }
- }
- .col {
- &:first-child {
- width: 17vw;
- color: #666;
- // text-align: right;
- &.max-width {
- width: 100% !important;
- margin-bottom: 2.6vw;
- }
- }
- &:last-child {
- color: #282828;
- }
- }
- .el-image {
- width: 25.6vw;
- height: 25.6vw;
- }
- }
- .control {
- margin-top: 22.8vw;
- .button {
- width: 100%;
- height: 12vw;
- cursor: pointer;
- &.edit {
- @include themify($themes) {
- border: 1px solid themed('color');
- color: themed('color');
- }
- }
- &.search {
- @include themify($themes) {
- background-color: themed('color');
- color: #fff;
- }
- }
- }
- }
- }
- }
- </style>
|