<template>
	<view class="content">
		<view class="box" v-for=" item in shopList" @click="navTo(item)">
			<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>
		<uBottom class="uBottom"></uBottom>
	</view>
</template>

<script>
	import uBottom from '@/components/ubottom.vue'
	export default{
		components:{
			uBottom
		},
		data(){
			return{
				shopList:[
					{
						title:'商家推荐',
						img:'../../static/img/hot01.png',
						id:6
					},
					{
						title:'特优促销',
						img:'../../static/img/hot02.png',
						id:7
					},
					{
						title:'订单预售',
						img:'../../static/img/hot03.png',
						id:8
					},
					{
						title:'拼团抢购',
						img:'../../static/img/hot04.png',
						id:9
					}
				]
			}
		},
		methods:{
			navTo(item){
				uni.navigateTo({
					url: '/pages/index/shopList?vip=0&tit=' + encodeURI(item.title)+'&cid='+item.id,
				});
			}
		}
	}
</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>
