<template>
  <div class="verify-bg" @click.stop>
    <h1>选择验证方式</h1>
    <el-radio-group v-model="select" class="select-box">
      <el-radio :label="1">企业认证</el-radio>
      <el-radio :label="2">个人认证</el-radio>
    </el-radio-group>
    <div class="dialog-btn">
      <el-button type="primary" class="confirm" @click="confirm()"
        >确认</el-button
      >
      <div class="cancel" @click="$emit('cancel')">取消</div>
    </div>
  </div>
</template>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({
  props: ["visible"],
  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 {
  width: 532px;
  height: 238px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 20px 0px rgba(61, 118, 249, 0.18);
  padding: 34px 44px;
}

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

