<template>
    <div class="basic-info-detail">
        <div class="basic-info-title">
            <img src="@/assets/enterpriseLibrary/legalperson.png" alt="开户证明">
            <span>开户证明</span>
        </div>

        <div class="detail-content">
            <!-- 开户许可证 -->
            <div class="detail-item">
                <div class="item-label">开户许可证</div>
                <div class="item-value">
                    <el-image :src="url" :preview-src-list="srcList" class="license-image">
                    </el-image>
                </div>
            </div>

            <!-- 开户银行 -->
            <div class="detail-item">
                <div class="item-label">开户银行</div>
                <div class="item-value">{{ enterpriseName || '中讯科技股份有限公司' }}</div>
            </div>

            <!-- 开户账号 -->
            <div class="detail-item">
                <div class="item-label">开户账号</div>
                <div class="item-value">{{ enterpriseCode || '12345678901313132390' }}</div>
            </div>

            
        </div>
    </div>
</template>

<script>
import UploadFile from '@/views/common/UploadFile.vue'
import basicInfo from '@/assets/enterpriseLibrary/basic-info.png'
export default {
    name: 'AccountOpeningCertificateDetail',
    components: {
        UploadFile
    },
    data() {
        return {
            name: '',
            enterpriseName: '',
            url: basicInfo,
            srcList: [basicInfo],
        }
    },
    methods: {
        // 校验规则
        
    },
}
</script>

<style scoped lang="scss">
.basic-info-title {
    display: flex;
    align-items: center;
    margin: 10px 0;

    span {
        margin: 0 5px;
        font-size: 20px;
    }
}

.detail-content {
    .detail-item {
        margin-bottom: 16px;

        .item-label {
            color: #424242;
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .item-value {
            color: #424242;
            font-size: 16px;
            line-height: 1.5;

            .license-image {
                max-width: 200px;
                max-height: 120px;
                border-radius: 6px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                object-fit: cover;
            }
        }
    }
}
</style>