<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">
      <el-form>
        <el-form-item label="手机号:">
          <el-input placeholder="请输入注册账号手机"></el-input>
        </el-form-item>
      </el-form>
      <div class="control flex flex-col items-center">
        <div
          class="button search flex justify-center items-center"
          @click="onSearch"
        >
          查询
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  layout: 'app',
  computed: {
    ...mapGetters(['supplierInfo', 'authUserId', 'routePrefix']),
  },
  methods: {
    onSearch() {
      this.$router.push(`${this.routePrefix}/record/club/detail`)
    },
  },
}
</script>

<style lang="scss" scoped>
@media screen and (min-width: 768px) {
  .page {
    background: #fff;
  }

  .page-top {
    height: 360px;
    @include themify($themes) {
      background: themed('banner-club-register');
      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: 700px;
    margin: 0 auto;
    overflow: hidden;
    min-height: calc(100vh - 80px - 80px - 360px);
    box-sizing: border-box;
    padding-bottom: 40px;
    padding-top: 70px;

    .control {
      margin-top: 62px;
      .button {
        width: 295px;
        height: 50px;

        cursor: pointer;

        &.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('banner-home-h5');
      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 {
    padding: 0 7.2vw;
    padding-top: 18vw;
    box-sizing: border-box;

    .control {
      margin-top: 12.8vw;
      .button {
        width: 100%;
        height: 12vw;
        cursor: pointer;

        &.search {
          @include themify($themes) {
            background-color: themed('color');
            color: #fff;
          }
        }
      }
    }
  }
}
</style>
