<template>
	<view class="content">
		<view class="box" v-for=" item in shopList" @click="navTo()">
			<view class="img">
				<image :src=item.img mode=""></image>
			</view>
			<view class="title">
				{{item.title}}
			</view>
			<view class="right">
				<image src="../../static/user/right01.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				shopList:[
					{
						title:'商品1',
						img:'../../static/error/missing-face.png'
					},
					{
						title:'商品2',
						img:'../../static/error/missing-face.png'
					},
					{
						title:'商品3',
						img:'../../static/error/missing-face.png'
					},
					{
						title:'商品4',
						img:'../../static/error/missing-face.png'
					}
				]
			}
		},
		methods:{
			navTo(){
				uni.navigateTo({
					url:'./classify'
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		margin: 0;
		padding: 0;
	}
	.content{
		color: #F8F8F8;
		// margin: 0 30rpx;
		margin: 0;
		padding: 0;
	}
	.box{
		background: #FFFFFF;
		box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
		border-radius: 10px;
		display: flex;
		justify-content: space-around;
		align-items: center;
		margin: 20rpx 30rpx;
		padding: 20rpx 0;
		.img{
			width: 125rpx;
			height: 125rpx;
			border-radius: 10rpx;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.title{
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #333333;
			line-height: 42rpx;
		}
		.right{
			width: 21rpx;
			height: 36rpx;
			
			image{
			width: 100%;
			height: 100%;
			}
		}
	}
</style>
