<template>
	<view class="container">
		<view class="page">
			<view class="user" style="background-image: url('../../static/images/bg_mine.png');">
				<image src="../../static/images/img01.png" class="icon"></image>
				<view class="name">林二</view>
				<view class="phone">15245214563</view>
			</view>
			<view class="service">
				<view class="item" @click="quickEntry(1)">
					<view class="left">
						<image src="../../static/images/user01.png" class="icon"></image>
						<div class="title">个人资料</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
				<view class="item" @click="quickEntry(2)">
					<view class="left">
						<image src="../../static/images/user02.png" class="icon"></image>
						<div class="title">我的房屋</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
				<view class="item" @click="quickEntry(3)">
					<view class="left">
						<image src="../../static/images/user03.png" class="icon"></image>
						<div class="title">我的报修</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
				<view class="item" @click="quickEntry(4)">
					<view class="left">
						<image src="../../static/images/user04.png" class="icon"></image>
						<div class="title">我的投诉</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
				<view class="item" @click="quickEntry(5)">
					<view class="left">
						<image src="../../static/images/user05.png" class="icon"></image>
						<div class="title">缴费记录</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
				<view class="item" @click="quickEntry(6)">
					<view class="left">
						<image src="../../static/images/user06.png" class="icon"></image>
						<div class="title">我的收据</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
				<view class="item" @click="quickEntry(7)">
					<view class="left">
						<image src="../../static/images/user07.png" class="icon"></image>
						<div class="title">切换物业公司</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
				<view class="item" @click="quickEntry(8)">
					<view class="left">
						<image src="../../static/images/user08.png" class="icon"></image>
						<div class="title">维修员</div>
					</view>
					<image src="../../static/images/icon_more.png" class="arrow"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			quickEntry(type) {
				if (type == 1) {
					// uni.navigateTo({
					// 	url: '/pages/message/index',
					// });
				} else if (type == 2) {
					uni.navigateTo({
						url: '/pages/myHouse/index',
					});
				} else if (type == 3) {
					// uni.navigateTo({
					// 	url: '/pages/payCost/index',
					// });
				} else if (type == 4) {
					// uni.navigateTo({
					// 	url: '/pages/maintenance/index',
					// });
				} else if (type == 5) {
					uni.navigateTo({
						url: '/pages/payCostRecord/index',
					});
				} else if (type == 6) {
					// uni.navigateTo({
					// 	url: '/pages/announcement/index',
					// });
				} else if (type == 7) {
					uni.navigateTo({
						url: '/pages/community/index',
					});
				}
			},
		},
		onLoad() {

		},
		onShow() {

		}
	}
</script>
<style>
	page {
		background-color: #F8F6F9;
	}
</style>
<style lang="scss" scoped>
	.page {
		padding: 20rpx 30rpx 20rpx;
	}

	.user {
		background-position: top center;
		background-repeat: no-repeat;
		background-size: cover;
		border-radius: 16rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 30rpx ;

		.icon {
			width: 160rpx;
			height: 160rpx;
			border-radius: 160rpx;
		}

		.name {
			font-size: 36rpx;
			color: #ffffff;
			margin: 20rpx 0 10rpx;
		}

		.phone {
			font-size: 28rpx;
			color: #ffffff;
			opacity: 0.55;
		}
	}

	.service {
		background-color: #ffffff;
		padding: 0 30rpx;
		border-radius: 16rpx;
		margin: 30rpx 0;

		.item {
			height: 84rpx;
			line-height: 84rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-bottom: 1px solid #F8F6F9;

			.left {
				display: flex;
				align-items: center;
				.icon {
					width: 32rpx;
					height: 32rpx;
					margin-right: 20rpx;
				}

				.title {
					font-size: 28rpx;
					color: #191A23;
				}
			}

			.arrow {
				width: 16rpx;
				height: 24rpx;
			}
		}
	}
</style>