look-evaluate.vue
3.1 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<template>
<view class="content">
<view class="searchBox">
<input type="text" value="" placeholder="请输入商品名称" />
</view>
<view class="item" v-for="(item,index) in list" :key="index">
<view class="itemTop">
<view class="userInfo">
<image :src="item.image" mode=""></image>
<view class="name">
{{item.name}}
</view>
</view>
<view class="handel">
收起
<image src="../../static/ic_27@2x.png" mode="" style="width:32rpx;height: 32rpx;"></image>
</view>
</view>
<view class="itemBtn">
{{item.text}}
</view>
<view class="goodBox" v-for="(items,indexs) in item.child" :key="indexs">
<image :src="items.image" mode=""></image>
<view class="goodName">
{{items.goodName}}
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [{
image: '../../static/ic_21@2x.png',
name: '猴子请来的救兵',
text: '此商品很好,很棒,下次还会回购的,放心购吧~',
child: [{
image: '../../static/ic_21@2x.png',
goodName: '科麦斯无油静音空吗压力小型气便捷吹尘木工打'
}, {
image: '../../static/ic_21@2x.png',
goodName: '科麦斯无油静音空吗压力小型气便捷吹尘木工打'
}]
}, {
image: '../../static/ic_21@2x.png',
name: '猴子请来的救兵',
text: '此商品很好,很棒,下次还会回购的,放心购吧~',
child: [{
image: '../../static/ic_21@2x.png',
goodName: '科麦斯无油静音空吗压力小型气便捷吹尘木工打'
}]
}]
}
}
}
</script>
<style>
.content {
min-height: 100vh;
background-color: #f7f8fa;
padding-top: 106rpx;
box-sizing: border-box;
}
.searchBox {
height: 104rpx;
background-color: #fff;
padding: 16rpx 32rpx;
box-sizing: border-box;
position: fixed;
top: 0;
left: 0;
width: 100%;
}
input {
width: 100%;
height: 72rpx;
background: #f7f8fa;
border-radius: 38rpx;
padding: 0 20rpx;
box-sizing: border-box;
}
.item {
background-color: #fff;
padding: 32rpx;
box-sizing: border-box;
margin-top: 24rpx;
}
.itemTop {
display: flex;
justify-content: space-between;
align-items: center;
}
.item image {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.name {
margin-left: 16rpx;
color: #323233;
font-size: 32rpx;
flex: 1;
}
.userInfo {
display: flex;
align-items: center;
}
.itemBtn {
padding: 32rpx;
box-sizing: border-box;
color: #323233;
font-size: 28rpx;
}
.itemBtn>view {
width: 158rpx;
height: 54rpx;
line-height: 54rpx;
border: 2rpx solid #ff2f2f;
border-radius: 8rpx;
text-align: center;
color: #ff2f2f;
font-size: 26rpx;
}
.handel {
color: #c8c9cc;
font-size: 24rpx;
display: flex;
align-items: center;
}
.goodBox {
display: flex;
margin-bottom: 16rpx;
background: #f7f8fa;
}
.goodBox image {
width: 120rpx;
height: 120rpx;
border-radius: 8rpx;
}
.goodName {
flex: 1;
padding: 16rpx;
box-sizing: border-box;
color: #323233;
font-size: 26rpx;
}
</style>