<template>
	<view class="container">
		<view class="container-user">
			<view class="user-avater">
				<image src="@/static/avatar.png"></image>
			</view>
			<view class="user-right">
				<view class="user-nc">这里是昵称</view>
				<view class="user-account">账号：123456789</view>
			</view>
		
		</view>
		<view class="container-operate">
			<view class="info-list">
				<view class="info-item" @click="info">个人资料<image class="arrow-icon" src="../../static/right.png" mode=""></image></view>
				<view class="info-item" @click="deposit">我的押金<image class="arrow-icon" src="../../static/right.png" mode=""></image></view>
				<view class="info-item" @click="deposit">我的维修<image class="arrow-icon" src="../../static/right.png" mode=""></image></view>
			</view>
		</view>
		
		<view class="logout">
			<button @click="logout">退出登录</button>
		</view>
	</view>
</template>

<script setup>
	
</script>

<style lang="scss">
	$globalWidth: 600rpx;
	$buttonColor: #0e7ff5;

	.container {
		display: flex;
		background: -webkit-linear-gradient(270deg,
				rgba(227, 239, 249, 1) 0%,
				rgba(245, 245, 247, 1) 100%);
		flex-direction: column;
		/* align-items: center; */
		width: 100%;
		height: 100vh;

		align-items: center;
		
		.container-user{
			margin-top: 80rpx;
			display: flex;
			height: 130rpx;
			width: $globalWidth;	
				
			.user-avater{
				width: 120rpx;
				height: 100rpx;
				
				& image{
					width: 120rpx;
					height: 120rpx;
				}
			}
			
			.user-right{
				margin-left: 30rpx;
			}
			
			.user-nc{
				font-size: 40rpx;
			}
			
			.user-account{
				margin-top: 13rpx;
			}
	
	
		}
		
		
		.container-operate{
			display: flex;
			flex-direction: column;
			align-items: flex-start;
			background: white;
			padding: 20rpx;
			margin-top: 80rpx;
			border-radius: 30rpx;
	
			
			.info-list {
				display: flex;
				flex-direction: column;
				font-size: 40rpx;
				width: 600rpx;
			}
			
			.info-item {
				display: flex;
				height: 120rpx;
				align-items: center;
				justify-content: space-between;
			}
			
			.info-item-border{
				border-bottom: 1px solid #ccc;
			}
			
			.arrow-icon {
				width: 45rpx;
				height: 45rpx;
			
			}
			
		}
		
		.logout button{
			margin-top: 30px;
			width: 630rpx;
			height: 120rpx;
			line-height: 120rpx;
			border-radius: 40rpx;
			color: white;
			background-color: $buttonColor;
		}
	}
</style>