intro-material.vue 1.48 KB
<template>
<div class="intro-material">
    <ul class="material" v-for="(item, index) in value.productMaterialList" :key="index">
        <div>
            <div class="image-box">
                <img-format :lazy="true" :src="item.imageUrl" :w="86" :h="35" :width="86" :height="35"></img-format>
            </div>
            <div class="text-box">
                <div>{{item.caption}}</div>
                <div>{{item.encaption}}</div>
            </div>
            <div class="clear-fix"></div>
        </div>
        <p>
            {{item.remark}}
        </p>
    </ul>

    <ul class="wash-condition">
        <li class="wash-condition-item" v-for="item in value.washTipsBoList" :key="item.img">
            <img :src="item.img" width="25" height="25"/>
            <div>{{item.caption}}</div>
        </li>
    </ul>
</div>
</template>

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

<style lang="scss">
.intro-material {
    .material {
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    .wash-condition {
        display: flex;
        justify-content: space-around;
    }
    .image-box {
        display: inline-block;

        img {
        }
    }

    .text-box {
        display: inline-block;
        margin-left: 20px;
        text-align: center;
        line-height: 36px;
    }
    .wash-condition-item {
        flex: 1;
        text-align: center;
    }
}


</style>