<template>
	<view class="page">
		<view class="top">
			<view class="wd">
				<view class="qw"><image src="../../static/ls.jpg" class="head"></image></view>
				<view class="xs">
					<view>登录 / 注册</view>
					<view class="mt10">张玲</view>
				</view>
			</view>
			<image src="../../static/bj.jpg" mode="aspectFill"></image>
		</view>
		<view class="main">
			<view class="flex menu">
				<view class="f">
					<view class="icon" style="background-color: #607D8B">&#xe636;</view>
					<view class="title">我的预约</view>
				</view>
				<view class="f">
					<view class="icon" style="background-color: #e23e33;">&#xe610;</view>
					<view class="title">我的投诉</view>
				</view>
				<view class="f">
					<view class="icon" style="background-color: #2cc937;">&#xe656;</view>
					<view class="title">我的评论</view>
				</view>
				<view class="f">
					<view class="icon" style="background-color: #2196F3;">&#xe623;</view>
					<view class="title">我的旅途</view>
				</view>
			</view>
			<view class="list">
				<view class="item hr">
					<text class="icon ic">&#xe626;</text>
					<text>个人资料</text>
					<text class="icon arrow">&#xe65a;</text>
				</view>
				<view class="item hr">
					<text class="icon ic">&#xe65f;</text>
					<text>关于我们</text>
					<text class="icon arrow">&#xe65a;</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			ip: this.$http.urls.ip,
			goods_list: []
		};
	},
	onLoad(e) {
		//this.init();
	},
	methods: {
		init() {
			this.$http.request({
				url: this.$http.urls.home,
				success: res => {
					this.goods_list = res.data.data.goods_list;
				}
			});
			//let user={id:35,nickName:'微信用户',openId:'oD2_E4sMkz3zF_0xjhX_C4vaI_xo',sex:0,phone:'13097850972',token:'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijc2NTVmOGM0LWY3YTAtNGU0Mi04MDU3LTdkNTA4NGY5NjE2NyJ9.f6xqQVYkm6zlfhZFbCOyj1-iOZtpkHJbUyCB2MNtTW-jgz1_9zcKKOdnw9uX_WJ_2VNrgOn6R5hmQAIm79YIZw'}
			// uni.setStorageSync('user',user);
		},
		detail(item) {
			uni.navigateTo({ url: '/pages/goods/detail?id=' + item.id });
		}
	}
};
</script>

<style lang="scss">
.top {
	position: relative;
	height: 300px;
	color: white;
	.wd {
		position: absolute;
		top: 70px;
		left: 20px;
		z-index: 111111;
		.head {
			width: 75px;
			height: 75px;
			border-radius: 50%;
		}
		.xs {
			margin-left: 100px;
			width: 100%;
			font-weight: bold;
			margin-top: 10px;
		}
	}
	image {
		width: 100%;
		height: 300px;
		position: absolute;
	}
}
.main {
	padding: 15px 15px 50px 15px;
	width: 100%;
	margin-top: -50px;
	overflow: hidden;
	position: absolute;
	.menu {
		background-color: white;
		border-radius: 10px;
		padding: 15px;
		width: 100%;
		box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
		.icon {
			font-size: 30px;
			background-color: red;
			width: 38px;
			height: 38px;
			border-radius: 5px;
			margin: 0 auto;
			color: white;
			padding: 3px;
		}
		.title {
			padding-top: 4px;
			font-size: 13px;
		}
	}
	.list {
		margin-top: 10px;
		box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
		.item {
			padding: 15px;
			.ic {
				font-size: 20px;
				padding-right: 10px;
			}
			.arrow {
				margin-top: 6px;
				font-size: 20px;
			}
		}
	}
}
</style>
