<template>
    <view class="container">
        <view class="info-card">
            <view class="card-title">企业基本信息</view>
            <view class="info-item">
                <text class="label">企业名称</text>
                <text class="value">泰科电子(上海)有限公司</text>
            </view>
            <view class="info-item">
                <text class="label">法人名称</text>
                <text class="value">李某</text>
            </view>
            <view class="info-item">
                <text class="label">统一社会信用代码</text>
                <text class="value">913100007504791552</text>
            </view>
        </view>

        <view class="info-card">
            <view class="card-title">营业执照</view>
            <view class="info-item">
                <text class="label">营业执照图片</text>
                <image class="license-image" src="/static/business-license.png" mode="aspectFit"></image>
            </view>
        </view>

        <view class="info-card">
            <view class="card-title">企业联系人</view>
            <view class="info-item">
                <text class="label">联系人</text>
                <text class="value">张三</text>
            </view>
            <view class="info-item">
                <text class="label">联系人电话</text>
                <text class="value">13812345678</text>
            </view>
        </view>
    </view>
</template>

<style scoped>
.container {
    padding: 20rpx; /* 使用 rpx 适配不同屏幕 */
    background-color: #f5f5f5; /* 页面背景色 */
    min-height: 100vh;
}

.info-card {
    background-color: #fff;
    border-radius: 12rpx;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
    margin-bottom: 24rpx;
    padding: 30rpx;
}

.card-title {
    font-size: 36rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 30rpx;
    padding-bottom: 20rpx;
    border-bottom: 1rpx solid #eee;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15rpx 0;
    border-bottom: 1rpx solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-size: 30rpx;
    color: #666;
    flex-shrink: 0;
    margin-right: 20rpx;
}

.value {
    font-size: 30rpx;
    color: #333;
    text-align: right;
    word-break: break-all;
}

.license-image {
    width: 100%;
    height: auto;
    min-height: 300rpx; /* 设置最小高度以保证布局 */
    margin-top: 20rpx;
}
</style>
