Introduce.vue
3.97 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<template>
<view class="introduce">
<!-- 迭代时建议配合接口修改 为数组 -->
<view v-if="tag.prod_tag_age && tag.prod_tag_age.length !== 0">
<view>
年龄:<view
v-for="(item,index) in tag.prod_tag_age"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_age.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_color && tag.prod_tag_color.length !== 0">
<view>
颜色:<view
v-for="(item,index) in tag.prod_tag_color"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_color.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_face && tag.prod_tag_face.length !== 0">
<view>
脸型:<view
v-for="(item,index) in tag.prod_tag_face"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_face.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_freesend && tag.prod_tag_freesend.length !== 0">
<view>
赠品:<view
v-for="(item,index) in tag.prod_tag_freesend"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_freesend.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_insurance && tag.prod_tag_insurance.length !== 0">
<view>
保险:<view
v-for="(item,index) in tag.prod_tag_insurance"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_insurance.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_metal && tag.prod_tag_metal.length !== 0">
<view>
材质:<view
v-for="(item,index) in tag.prod_tag_metal"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_metal.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_personal && tag.prod_tag_personal.length !== 0">
<view>
个性:<view
v-for="(item,index) in tag.prod_tag_personal"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_personal.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_sense && tag.prod_tag_sense.length !== 0">
<view>
场景:<view
v-for="(item,index) in tag.prod_tag_sense"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_sense.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_sex && tag.prod_tag_sex.length !== 0">
<view>
性别:<view
v-for="(item,index) in tag.prod_tag_sex"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_sex.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_style && tag.prod_tag_style.length !== 0">
<view>
风格:<view
v-for="(item,index) in tag.prod_tag_style"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_style.length - 1">/</text>
</view>
</view>
</view>
<view v-if="tag.prod_tag_weight && tag.prod_tag_weight.length !== 0">
<view>
重量:<view
v-for="(item,index) in tag.prod_tag_weight"
:key="index"
>
{{item.label}}<text v-if="index !== tag.prod_tag_weight.length - 1">/</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
tag: Object,
},
created() {
},
updated() {
},
}
</script>
<style lang="scss" scoped>
.introduce {
margin-bottom: 4px;
view {
display: flex;
align-content: center;
font-size: 14px;
color: #333333;
}
span {
margin-left: 6px;
margin-right: 5px;
font-family: "PingFangSC-Regular";
}
}
</style>