<template>
  <el-card shadow="never">
    <template #header>
      <div class="card-header">
        <span>确认信息</span>
      </div>
    </template>
    <div class="">
      <el-row>
        <el-col :span="12">
          <el-form label-width="145px" label-position="left">
            <el-form-item label="姓名">
              {{ formData.contactUser }}
            </el-form-item>
            <el-form-item label="身份证">
              {{ formData.idCard }}
            </el-form-item>

            <el-form-item label="身份证图片">
              <div class="mr20">
                <el-image :src="baseUrl + formData.idCardBackImage" style="width: 200px; height: 130px" fit="cover"/>
                <div style="text-align: center;font-size: 14px;color: #626566;">人像面</div>
              </div>

              <div>
                <el-image :src="baseUrl + formData.idCardFrontImage" style="width: 200px; height: 130px" fit="cover"/>
                <div style="text-align: center;font-size: 14px;color: #626566;">国徽面</div>
              </div>
            </el-form-item>
          </el-form>
        </el-col>
        <el-col :span="12">
          <el-form label-width="145px" label-position="left">
            <el-form-item label="企业名称">
              {{ formData.name }}
            </el-form-item>
            <el-form-item label="法人代表">
              {{ formData.legalPerson }}
            </el-form-item>

            <el-form-item label="企业营业执照">
              <div class="mr20">
                <el-image :src="baseUrl + formData.licenseImages" style="width: 200px; height: 130px" fit="cover"/>
              </div>
            </el-form-item>
          </el-form>
        </el-col>
        <el-col :span="12">
          <el-form label-width="145px" label-position="left" style="padding-top: 30px">
            <el-form-item label="手机号">
              {{ formData.contactPhone }}
            </el-form-item>

            <el-form-item label="承诺书上传">
              <div class="mr20">
                <el-image :src="baseUrl + formData.wordUrl" style="width: 132px; height: 200px" fit="cover"/>
              </div>
            </el-form-item>
          </el-form>
        </el-col>
      </el-row>
    </div>
  </el-card>
</template>

<script setup>
import ImageUpload from '@/components/ImageUpload/index.vue'
import { defineProps } from 'vue'

defineProps({
  formData: {
    type: Object
  }
})

const baseUrl = import.meta.env.VITE_APP_BASE_API

</script>

<style scoped lang="scss">
@import url('./base.scss');

.el-form-item {
  margin-bottom: 5px;
}
</style>
