Introduce.vue
3.65 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
145
146
<template>
<view class="introduce">
<!-- 迭代时建议配合接口修改 为数组 -->
<view v-if="Tag.Age && Tag.Age.length !== 0">
<view>
年龄:<view
v-for="(item,index) in Tag.Age"
:key="index"
>
{{item}}<text v-if="index !== Tag.Age.length - 1">/</text>
</view>
</view>
</view>
<view v-if="Tag.Colour && Tag.Colour.length !== 0">
<view>
颜色:<view
v-for="(item,index) in Tag.Colour"
:key="index"
>
{{item}}<text v-if="index !== Tag.Colour.length - 1">/</text>
</view>
</view>
</view>
<view v-if="Tag.Shape && Tag.Shape.length !== 0">
<view>
脸型:<view
v-for="(item,index) in Tag.Shape"
:key="index"
>
{{item}}<text v-if="index !== Tag.Shape.length - 1">/</text>
</view>
</view>
</view>
<view v-if="Tag.Rim && Tag.Rim.length !== 0">
<view>
赠品:<view
v-for="(item,index) in Tag.Rim"
:key="index"
>
{{item}}<text v-if="index !== Tag.Rim.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.Material && Tag.Material.length !== 0">
<view>
材质:<view
v-for="(item,index) in Tag.Material"
:key="index"
>
{{item}}<text v-if="index !== Tag.Material.length - 1">/</text>
</view>
</view>
</view>
<!-- <view v-if="Tag.Style && Tag.Style.length !== 0">
<view>
个性:<view
v-for="(item,index) in Tag.Style"
:key="index"
>
{{item}}<text v-if="index !== Tag.Style.length - 1">/</text>
</view>
</view>
</view> -->
<view v-if="Tag.Eyeglasses && Tag.Eyeglasses.length !== 0">
<view>
场景:<view
v-for="(item,index) in Tag.Eyeglasses"
:key="index"
>
{{item}}<text v-if="index !== Tag.Eyeglasses.length - 1">/</text>
</view>
</view>
</view>
<view v-if="Tag.Gender && Tag.Gender.length !== 0">
<view>
性别:<view
v-for="(item,index) in Tag.Gender"
:key="index"
>
{{item}}<text v-if="index !== Tag.Gender.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.Colour && Tag.Colour.length !== 0">
<view>
重量:<view
v-for="(item,index) in Tag.Colour"
:key="index"
>
{{item}}<text v-if="index !== Tag.Colour.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>