<template>
	<view class="content">
		<view class="navbar-item" @click="nav('/pages/category/category')">
			<image class="nitem-image" src="../../static/img/qudouImg01.png" mode=""></image>
			<!-- <view class="nitem-font">大品牌区</view> -->
		</view>
		<!-- <view class="navbar-item" @click="nav('/pages/index/message?type=2')">
			<image class="nitem-image" src="../../static/img/index-inco6.png" mode=""></image>
			<view class="nitem-font">拍卖品</view>
		</view> -->
		<view class="navbar-item" @click="nav('/pages/product/classify?type=1')">
			<image class="nitem-image" src="../../static/img/qudouImg02.png" mode=""></image>
			<!-- <view class="nitem-font">医斯佳专区</view> -->
		</view>
		<view class="navbar-item" @click="nav('/pages/product/classify?type=3')">
			<image class="nitem-image" src="../../static/img/qudouImg03.png" mode=""></image>
			<!-- <view class="nitem-font">CBB专区</view> -->
		</view>
	</view>
</template>

<script>
	export default {data(){
		return{
			
		}
		},
		methods: {
			nav(url){
				uni.navigateTo({
					url,
					success: (res) => {
						console.log(res);
					},fail: (err) => {
						console.log(err,'eeeerrrr');
						uni.switchTab({
							url
						})
					}
					
				})
			}
		},
	}
</script>

<style lang="scss">
	pages,.content{
		padding: 0;
		.navbar-item{
			width: 700rpx;
			height: 200rpx;
			margin: 30rpx auto;
			image{
				width: 100%;
				height: 100%;
			}
		}
	}
</style>