look-evaluate.vue 3.1 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">
				<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>