<template>
	<view>
		<view class="head">
			<image src="../../static/mic.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
			<view class="nickname">
				昵称
			</view>
		</view>
		<view class="content">
			<view class="contact">
				<view class="row">
					<view class="flex justify-space-between kf">
						<button class="left-btn" open-type='contact'>联系客服</button>
						<u-icon name="arrow-right" color="#909399" size="16"></u-icon>
					</view>
				</view>
				<view class="row" @click="toPage">
					<view class="left">
						去用户端
					</view>
					<view class="right">
						>
					</view>
				</view>
				
			</view>
		</view>
		<u-tabbar :value="tabbarCheck" @change="tabbarChange" activeColor="#5F7DE9">
			<u-tabbar-item name="team" text="加入">
				<image class="u-page__item__slot-icon" slot="active-icon"
					src="@/static/image/nav-icon/antOutline-team Copy.png"></image>
				<image class="u-page__item__slot-icon" slot="inactive-icon"
					src="@/static/image/nav-icon/antOutline-team.png"></image>
			</u-tabbar-item>
			<u-tabbar-item name="notification" text="通知">
				<image class="u-page__item__slot-icon" slot="active-icon"
					src="@/static/image/nav-icon/md-notifications_none Copy.png"></image>
				<image class="u-page__item__slot-icon" slot="inactive-icon"
					src="@/static/image/nav-icon/md-notifications_none.png"></image>
			</u-tabbar-item>
			<u-tabbar-item name="user" text="我的">
				<image class="u-page__item__slot-icon" slot="active-icon"
					src="@/static/image/nav-icon/antOutline-user1 Copy.png"></image>
				<image class="u-page__item__slot-icon" slot="inactive-icon"
					src="@/static/image/nav-icon/antOutline-user1.png"></image>
			</u-tabbar-item>
		</u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabbarCheck: 'user',
			}
		},
		methods: {
			toPage(){
				uni.switchTab({
					url:"/pages/food/food"
				})
			},
			tabbarChange(e) {
				console.log(e)
				if (e == 'team') {
					uni.navigateTo({
						url: '/pageA/notice/index'
					})
				} else if (e == 'user') {
					uni.navigateTo({
						url: '/pageA/my/my'
					})
				}
				// name => tabbarCheck = name
			},
		}
	}
</script>

<style scoped lang="scss">
	.head{
		background: #fff;
	}
	.content{
		background: #fff;
		margin-top: 20rpx;
	}
</style>