<template>
	<view>
		<u-notify ref="uNotify" message="Hi uView"></u-notify>
		<!--头部-->
		<view class="my_top">
			<image src="../../static/images/top-bg.png" class="bg"></image>
		</view>
		<view class="list animated fadeInDown">
			<!--用户信息-->
			<view class="user">
				<image src="../../static/icon/user.png" mode="widthFix" class="head"></image>
				<view class="con">
					<view class="nickName omit">用户134****6556用户134****6556用户134****6556</view>
					<view class="tag">
						<text class="icon"></text>
						<text>普通边民</text>
					</view>
				</view>
				<text class="icon edit">&#xe645;</text>
				<view class="clear"></view>
			</view>
			<!--菜单-->
			<view class="menu">
				<view class="msn">
					<view class="out">
						<view class="int">
							<view class="icon ioc" style="background-color: #fff6e0; color: #f1ba41">&#xe686;</view>
							<view class="tit">我的订单</view>
						</view>
					</view>
				</view>
				<view class="msn">
					<view class="out">
						<view class="int">
							<view class="icon ioc" style="background-color: #e1f6e9; color: #47cf74">&#xe686;</view>
							<view class="tit">我的订单</view>
						</view>
					</view>
				</view>
				<view class="msn">
					<view class="out">
						<view class="int">
							<view class="icon ioc" style="background-color: #eaf1fe; color: #2a95fe">&#xe686;</view>
							<view class="tit">我的订单</view>
						</view>
					</view>
				</view>
				<view class="msn">
					<view class="out">
						<view class="int">
							<view class="icon ioc" style="background-color: #f0dcfc; color: #b064d8">&#xe686;</view>
							<view class="tit">我的订单</view>
						</view>
					</view>
				</view>
				<view class="clear"></view>
			</view>
			<view class="cmd">
				<view class="s_item" @click="show = true">
					<text class="icon ic">&#xe686;</text>
					<text class="title">常见问题</text>
					<text class="icon arrow">&#xe8f2;</text>
				</view>
				<view class="s_item" @click="show = true">
					<text class="icon ic">&#xe686;</text>
					<text class="title">联系我们</text>
					<text class="icon arrow">&#xe8f2;</text>
				</view>
				<view class="s_item" @click="show = true">
					<text class="icon ic">&#xe686;</text>
					<text class="title">用户协议</text>
					<text class="icon arrow">&#xe8f2;</text>
				</view>
				<view class="s_item" @click="show = true">
					<text class="icon ic">&#xe686;</text>
					<text class="title">隐私协议</text>
					<text class="icon arrow">&#xe8f2;</text>
				</view>
				<view class="s_item" @click="show = true">
					<text class="icon ic">&#xe686;</text>
					<text class="title">设置</text>
					<text class="icon arrow">&#xe8f2;</text>
				</view>
			</view>
			<button class="btn exit" @click="exitLogin()">退出登录</button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			user: {}
		};
	},
	methods: {
		exitLogin() {
			uni.removeStorageSync('token');
			uni.removeStorageSync('info');
			uni.removeStorageSync('menu');
			this.$common.to('/pages/login/login');
		}
	}
};
</script>

<style lang="scss">
page {
	background-color: #f5f5f5;
}
.my_top {
	position: relative;
	overflow: hidden;
	image {
		width: 100%;
	}
}
.list {
	position: relative;
	padding: 0px 20px 10px 20px;
	margin-top: -196px;
	.user {
		background-color: white;
		padding: 20px;
		border-radius: 8px;
		color: $font-c;
		.head {
			float: left;
			width: 55px;
			height: 55px;
		}
		.con {
			float: left;
			padding-left: 15px;
			width: 60%;
			.nickName {
				font-size: 17px;
				font-weight: bold;
			}
			.tag {
				background-color: #6799ad;
				color: white;
				float: left;
				font-size: 13px;
				padding: 2px 6px;
				border-radius: 5px;
				margin-top: 6px;
			}
		}
		.edit {
			float: right;
			font-size: 20px;
			margin-top: 17px;
		}
	}
}
.exit {
	margin-top: 20px;
	background-color: white;
	color: $main-color;
}
</style>
