<template>
	<!-- 团长功能 -->
	<view class="team">
		<text class="team-title">{{ i18n.leaderunction }}</text>
		<view class="function-team">
			<view class="icon-center" @click="toNextPage('/pageD/platformProducts/platformProducts')">
				<image class="form-icon" src="../../../static/mine/319.png" mode=""></image>
				<view class="characters">{{ i18n.platform }}</view>
			</view>
			<view class="icon-center" @click="toNextPage('/pageD/commodityManage/commodityManage')">
				<image class="form-icon" src="../../../static/mine/318.png" mode=""></image>
				<view class="characters">{{ i18n.productManagement }}</view>
			</view>
			<view class="icon-center" @click="toNextPage('/pageD/orderFormManage/orderFormManage')">
				<image class="form-icon" src="../../../static/mine/315.png" mode=""></image>
				<view class="characters">{{ i18n.orderManagement }}</view>
			</view>
			<view class="icon-center" @click="toNextPage('/pageD/afterSalesManage/afterSalesManage')">
				<image class="form-icon" src="../../../static/mine/320.png" mode=""></image>
				<view class="characters">{{ i18n.afterSales }}</view>
			</view>
			<view class="icon-center" @click="toNextPage('/pageD/supplyChainGoods/supplyChainGoods')">
				<image class="form-icon" src="../../../static/mine/316.png" mode=""></image>
				<view class="characters">{{ i18n.supplyChain }}</view>
			</view>
			<view class="icon-center" @click="toNextPage('/pageD/resultFeedback/resultFeedback')">
				<image class="form-icon" style="padding: 0 15px" src="../../../static/mine/pc.png" mode=""></image>
				<view class="characters">{{ i18n.PCEnd }}</view>
			</view>
			<view class="icon-center" v-if="user_no !='13523652365'" @click="tokefu">
				<image class="form-icon" src="../../../static/mine/317.png" mode=""></image>
				<view class="characters">{{ i18n.pontact }}</view>
			</view>
			<view class="icon-center" @click="toNextPage('/pageC/accountSetup/accountSetup')">
				<image class="form-icon" src="../../../static/mine/321.png" mode=""></image>
				<view class="characters">{{ i18n.accountSettings }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user_no: ''
			};
		},
		computed: {
			i18n() {
				return this.$t("index");
			},
		},
		created() {   
			if (uni.getStorageSync('user_no')) {
				this.user_no = uni.getStorageSync('user_no')
			}
		},
		methods: {
			tokefu() {
				uni.navigateTo({
					url: '/pageA/service/service'
				})
			},
			toNextPage(url) {
				uni.navigateTo({
					url: url,
				});
			},
		},
	};
</script>

<style lang="scss">
	.team {
		width: 100%;
		background-color: #fff;
		border-radius: 10px;
		margin-top: 10px;
		padding-top: 14px;
		padding-bottom: 20px;

		.team-title {
			color: #222;
			font-size: 14px;
			font-weight: 600;
			display: block;
			margin-left: 10px;
		}

		.function-team {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-around;
			align-items: center;

			.icon-center {
				width: 18%;
				margin-top: 18px;
				display: flex;
				flex-wrap: wrap;
				padding: 0 10px;
				justify-content: center;
				flex-direction: column;
				align-items: center;
			}

			.form-icon {
				width: 24px;
				height: 24px;
			}

			.characters {
				color: #202020;
				font-size: 12px;
				text-align: center;
				margin-top: 10px;
			}
		}
	}
</style>