my-evaluate.vue
1.9 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
<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">
<image :src="item.image" mode=""></image>
<view class="name">
{{item.name}}
</view>
</view>
<view class="itemBtn" >
<view class="" @click="evaluateDetail()">
查看评价
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [{
image: '../../static/ic_21@2x.png',
name: '科麦斯无油静音空吗压力小型气便捷吹尘木工打'
},{
image: '../../static/ic_21@2x.png',
name: '科麦斯无油静音空吗压力小型气便捷吹尘木工打'
}]
}
},
methods:{
evaluateDetail(){
uni.navigateTo({
url:'/pages/me/look-evaluate'
})
}
}
}
</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;
}
.item image {
width: 120rpx;
height: 120rpx;
border-radius: 8rpx;
}
.name {
margin-left: 16rpx;
color: #323233;
font-size: 26rpx;
flex: 1;
}
.itemBtn {
display: flex;
justify-content: flex-end;
align-items: center;
}
.itemBtn>view {
width: 158rpx;
height: 54rpx;
line-height: 54rpx;
border: 2rpx solid #ff2f2f;
border-radius: 8rpx;
text-align: center;
color: #ff2f2f;
font-size: 26rpx;
}
</style>