<template name="navbars">
	<view>
		<view class="navbars-content clearfix">
			<view class="nav-item" v-for="(item, index) in list" :key="index" @click="handleJumpLink(item, index)">
				<view class="icon"> <image class="icon-image" :src="item.image" mode="widthFix"></image> </view>
				<view class="name">{{ item.topic }}</view>
			</view>
		</view>
	</view>
</template>

<script>
import jumpMixins from '@/mixins/jumpMixins.js'
export default {
	mixins: [jumpMixins],
	name: 'navbars',
	props: {
		list: {
			type: Array
		}
	},
	data() {
		return {
			current: 100
		}
	},
	created() {
	},
	computed: {},
	methods: {
		
	}
}
</script>

<style lang="scss">
.navbars-content {
	width: 100%;
	height: auto;
	box-sizing: border-box;
	padding: 0 24rpx;
	margin-top: 48rpx;
	.nav-item {
		width: 164rpx;
		height: auto;
		float: left;
		margin-bottom: 30rpx;
		margin-right: 15.3rpx;
		&:nth-child(4) {
			margin-right: 0;
		}
		&:nth-child(8) {
			margin-right: 0;
		}
		.icon {
			width: 110rpx;
			height: 110rpx;
			margin: 0 auto;
			position: relative;
			.icon-image {
				width: 110rpx;
				height: 110rpx;
				display: block;
			}
			.icon-new {
				width: 44rpx;
				height: 22rpx;
				display: block;
				position: absolute;
				right: 0;
				top: 20rpx;
			}
		}
		.name {
			width: 100%;
			height: 40rpx;
			line-height: 40rpx;
			text-align: center;
			font-size: $font-size-26;
			color: #666666;
		}
		.nav-cell-main {
			width: 100%;
			height: auto;
			position: absolute;
			right: 0;
			.nav-cell {
				width: 164rpx;
				height: auto;
				float: left;
				margin-bottom: 30rpx;
				margin-right: 15.3rpx;
				&:nth-child(4) {
					margin-right: 0;
				}
				&:nth-child(8) {
					margin-right: 0;
				}
				.icon {
					width: 130rpx;
					height: 130rpx;
					margin: 0 auto;
					position: relative;
					.icon-image {
						width: 130rpx;
						height: 130rpx;
						display: block;
					}
					.icon-new {
						width: 44rpx;
						height: 22rpx;
						display: block;
						position: absolute;
						right: 0;
						top: 20rpx;
					}
				}
				.name {
					width: 100%;
					height: 40rpx;
					line-height: 40rpx;
					text-align: center;
					font-size: $font-size-28;
					color: #666666;
				}
			}
		}
	}
}
</style>
