intro-material.vue
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<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>