<template>
	<view class="sidebar">
		<navigator url="/pages/index/index" open-type="redirect">
			<view class="item" :class="path==1?'active':''">
				装船指令
			</view>
		</navigator>
		<navigator url="/pages/discharge/index" open-type="redirect">
			<view class="item" :class="path==2?'active':''">
				卸船指令
			</view>
		</navigator>
		<navigator url="/pages/shipWork/index" open-type="redirect">
			<view class="item" :class="path==3?'active':''">
				船舶作业
			</view>
		</navigator>
		<view class="item">
			货物质量
		</view>
		<view class="item">
			场位监控
		</view>
	</view>
</template>
<script>
	export default {
		name: "footTab",
		props: {
			path: {
				type: [String || Number]
			},
		},
		onLoad() {

		},
		components: {},
		methods: {

		}
	};
</script>

<style>
	.sidebar {
		width: 100px;
		background-color: #f2f2f2;

		.item {
			height: 45px;
			line-height: 45px;
			text-align: center;
			color: #999999;
		}

		.active {
			color: #5573d7;
		}
	}
</style>
