<template>
	<view style="background: #eee;">
		<view class="bg">
			<u-tabs :list="list" :is-scroll="true" :current="current" @change="change"  inactive-color="#5a5959" bg-color="none" active-color="#a35611"></u-tabs>
			<listBanner></listBanner>
		</view>
		<liebiao></liebiao>
		<dibunav></dibunav>
	</view>
</template>

<script>
	import { mapState } from 'vuex';
	import listBanner from '@/components/list-banner.vue'
	import liebiao from '@/components/liebiao.vue'
	import dibunav from '@/components/dibunav.vue'
	export default {
		components:{
			listBanner,
			liebiao,
			dibunav
		},
		computed: {
			...mapState(['hasLogin', 'userInfo'])
		},
		data() {
			return {
				list: [{
					name: '精选'
				}, {
					name: '男装'
				}, {
					name: '女装'
				},{
					name: '手机'
				},{
					name: '家电'
				},{
					name: '美妆'
				},{
					name: '童装'
				}
				],
				current: 0,
			}
		},
		methods: {
			change(index) {
				this.current = index;
			}
		}
	}
</script>

<style>
	.bg{
		padding-bottom: 25rpx;
		background: #fff;
		border-bottom-left-radius: 10px;
		border-bottom-right-radius: 10px;
	}
</style>
