<template>
  <div class="club-detail page">
    <div class="page-top"></div>
    <div class="page-content">
      <div class="title">机构认证信息</div>
      <template v-if="!isAuth">
        <div class="tip">抱歉，您暂未认证机构</div>
        <div class="btn">去认证</div>
      </template>
      <template v-else>
        <div class="row">
          <div class="col label">机构名称：</div>
          <div class="col content">西班牙Ross</div>
        </div>
        <div class="row">
          <div class="col label">联系电话：</div>
          <div class="col content">15889586666</div>
        </div>
        <div class="row">
          <div class="col label">运营联系人：</div>
          <div class="col content">区苏苏</div>
        </div>
        <div class="row">
          <div class="col label">运营联系人手机号：</div>
          <div class="col content">18877663232</div>
        </div>
        <div class="row">
          <div class="col label">所在地区：</div>
          <div class="col content">广东省深圳市福田区上步南路锦峰大厦A座</div>
        </div>
        <div class="row">
          <div class="col label">所在位置：</div>
          <div class="col content">广东省深圳市福田区上步南路锦峰大厦A座</div>
        </div>
        <div class="row block">
          <div class="col label">logo：</div>
          <div class="col content">
            <el-image src="https://picsum.photos/120/120"></el-image>
          </div>
        </div>
        <div class="row block">
          <div class="col label">门头照：</div>
          <div class="col content">
            <el-image src="https://picsum.photos/120/120"></el-image>
            <el-image src="https://picsum.photos/120/120"></el-image>
            <el-image src="https://picsum.photos/120/120"></el-image>
          </div>
        </div>
        <div class="row">
          <div class="col label">机构类型：</div>
          <div class="col content">医美</div>
        </div>
        <div class="row">
          <div class="col label">医美类型：</div>
          <div class="col content">诊所</div>
        </div>
        <div class="row block">
          <div class="col label">医疗许可证：</div>
          <div class="col content">
            <el-image src="https://picsum.photos/120/120"></el-image>
          </div>
        </div>
        <div class="row">
          <div class="col label">员工人数：</div>
          <div class="col content">21</div>
        </div>
      </template>
    </div>
  </div>
</template>

<script>
export default {
  layout: 'app-ross',
  data() {
    return {
      isAuth: true,
    }
  },
}
</script>

<style lang="scss" scoped>
@media screen and (min-width: 768px) {
  .page {
    display: flex;
    justify-content: center;
  }

  .page-content {
    max-width: 760px;
    padding-bottom: 167px;
    .title {
      font-size: 24px;
      color: #282828;
      font-weight: bold;
      text-align: center;
      padding: 60px 0;
    }

    .tip {
      font-size: 16px;
      color: #b2b2b2;
      margin-top: 200px;
      margin-bottom: 24px;
      text-align: center;
    }

    .btn {
      width: 98px;
      height: 36px;
      background: #f3920d;
      border-radius: 4px;
      text-align: center;
      line-height: 36px;
      color: #fff;
      font-size: 16px;
      margin: 0 auto;
      cursor: pointer;
    }

    .row {
      display: flex;
      align-items: flex-start;
      margin: 32px 0;

      .col {
        font-size: 16px;
      }
      .label {
        color: #666666;
        min-width: 100px;
      }
      .content {
        color: #282828;

        .el-image {
          width: 106px;
          height: 106px;
          border: 1px solid #dcdcdc;
          margin-right: 4px;

          &:last-child {
            margin-right: 0;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .page {
    display: flex;
    justify-content: center;
  }

  .page-content {
    padding: 0 4vw;
    .title {
      font-size: 4.2vw;
      color: #282828;
      font-weight: bold;
      text-align: center;
      padding: 8vw 0;
    }

    .tip {
      font-size: 3vw;
      color: #b2b2b2;
      margin-top: 60vw;
      margin-bottom: 4.8vw;
      text-align: center;
    }

    .btn {
      width: 36vw;
      height: 8.8vw;
      background: #f3920d;
      border-radius: 0.4vw;
      text-align: center;
      line-height: 8.8vw;
      color: #fff;
      font-size: 3.4vw;
      margin: 0 auto;
    }

    .row {
      display: flex;
      align-items: flex-start;
      margin: 5.6vw 0;

      &.block {
        display: block;
        .label {
          margin-bottom: 2.4vw;
        }
      }

      .col {
        font-size: 3.4vw;
      }
      .label {
        color: #666666;
        min-width: 20.4vw;
      }
      .content {
        color: #282828;

        .el-image {
          width: 26vw;
          height: 26vw;
          border: 0.1vw solid #dcdcdc;
          margin-right: 0.6vw;

          &:last-child {
            margin-right: 0;
          }
        }
      }
    }
  }
}
</style>
