my-evaluate.vue 1.9 KB
<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>