intro-model-bos.vue 1.72 KB
<template>
<div class="intro-model-bos">
    <div class="horizon-wrapper" v-once>
        <table class="table">
            <thead>
            <tr>
                <th>模特</th>
                <th>身高</th>
                <th>体重</th>
                <th>三围</th>
                <th>吊牌尺码</th>
                <th>试穿描述</th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="item in value" :key="item.modelName">
                <td>
                    <img class="model-avatar" :src="item.avatar"/>
                    <span class="model-name">{{item.modelName}}</span>
                </td>
                <td>{{item.height}}</td>
                <td>{{item.weight}}</td>
                <td>{{item.vitalStatistics}}</td>
                <td>{{item.fitModelBo.fit_size}}</td>
                <td>{{item.fitModelBo.feel}}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <i class="info">提示:左滑查看完整表格信息</i>
</div>
</template>

<script>
export default {
    name: 'IntroModelBos',
    props: {
        value: [Array]
    }
};
</script>

<style lang="scss">
.intro-model-bos {
    .horizon-wrapper {
        overflow-x: scroll;

        .table {
            border-collapse: collapse;
            width: 100%;

            th {
                background: #f6f6f6;
            }

            th,
            td {
                border: 1px solid #eee;
                min-width: 170px;
                line-height: 66px;
                text-align: center;
            }
        }
    }
    i.info {
        font-style: normal;
        color: #b0b0b0;
        margin-top: 24px;
        display: block;
        font-size: 18px;
    }
}
</style>