<template>
  <div class="verify-bg" @click.stop>
    <!-- <h1>选择验证方式</h1> -->
    <div class="select-box">
      <syRadio :label="1" v-model="select">企业认证</syRadio>
      <syRadio :label="2" v-model="select">个人认证</syRadio>
    </div>
    <!-- <div class="dialog-btn flex items-center justify-end">
      <div class="cancel" @click="$emit('cancel')">取消</div>
      <el-button type="primary" class="confirm" @click="confirm()"
        >确认</el-button
      >
    </div> -->
  </div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import { ElRadio, ElRadioGroup, ElButton } from "element-plus";
import { syRadio } from "cqk-sy-ui";
export default defineComponent({
  props: ["visible"],
  components: { ElRadioGroup, ElButton, syRadio, ElRadio },
  data() {
    return {
      select: 1,
    };
  },
  methods: {
    confirm() {
      let router = this.select === 1 ? "companyVerify" : "personVerify";
      this.$router.push({ path: router });
    },
  },
});
</script>

<style scoped>
* {
  margin: 0;
}
.verify-bg {
  background: rgba(255, 255, 255, 1);
}

h1 {
  font-size: 22px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  color: rgba(0, 0, 0, 1);
}
.dialog-btn {
}
.select-box {
  margin: 0px 0 0px 68px;
}
.select-box label {
  width: 160px;
  text-align: center;
  transform: scale(1.3);
}
.cancel {
  margin-right: 15px;
  width: 70px;
  height: 40px;
  line-height: 40px;
  color: #5c6476;
  cursor: pointer;
  text-align: center;
}
.confirm {
  width: 120px;
  background-color: rgb(64, 158, 255);
}
</style>
