<template>
	<view class="setting">
		<view class="header-bg"></view>
		<view class="block b1">
			<view class="row portrait">
				<image class="image" src="../../static/images/login/logo.png" mode="scaleToFill"></image>
			</view>
			<view class="row">
				<view class="label">
					昵称
				</view>
				<view class="option">
					修改
				</view>
			</view>
		</view>

		<view class="block b2">
			<view class="row">
				<view class="label">支付宝绑定</view>
				<view class="option">未绑定</view>
			</view>
			<view class="line"></view>
			<view class="row">
				<view>微信绑定</view>
				<view class="option">未绑定</view>
			</view>
		</view>
		
		<view class="block b3">
			<view class="row">
				<view class="label">修改手机号 <text class="info">18111897865</text></view>
				<view class="option">已绑定</view>
			</view>
			<view class="line"></view>
			<view class="row">
				<view class="label">修改密码</view>
				<view class="option"></view>
			</view>
		</view>
		
		<view class="block b4">
			<view class="row">
				<view class="label">清除缓存 <text class="info">18.20MB</text></view>
				<view class="option"><button class="clear-cache-btn" type="default">清除缓存</button></view>
			</view>
		</view>
		
		<view class="logout-block">
			<button class="logout-btn" type="default">退出登录</button>
		</view>
	</view>
</template>

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

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.setting{
		overflow: hidden;
		position: relative;
		
	}
	.header-bg{
		background-color: $primary-color;
		height: 120upx;
		position: absolute;
		top: 0;
		width: 100%;
		z-index: 1;
	}
	.portrait{
		justify-content: center!important;
		margin-top:20upx;
		.image{
			width: 168upx;
			height: 168upx;
			border: 10upx solid $primary-color;
			border-radius: 100upx;
		}
	}
	
	.block{
		border-radius: 20upx;
		background-color: white;
		margin: 20upx;
		position: relative;
		overflow: hidden;
		z-index: 2;
		.row{
			display: flex;
			justify-content: space-between;
			padding: 20upx 40upx;
			align-items: center;
			font-size: 28upx;
			.info{
				color: #999999;
				font-size: 24upx;
				display: inline-block;
				margin-left: 20upx;
			}
			.option{
				color: #999999;
			}
		}
	}
	.logout-block{
		margin: 20upx;
	}
	.clear-cache-btn{
		line-height: normal;
		padding: 4upx 20upx;
		background: white;
		border: 2upx solid $primary-color;
		font-size: 24upx;
		border-radius: 50upx;
		color: $primary-color;
	}
	.logout-btn{
		background: $primary-color;
		color: white;
		font-size: 30upx;
		line-height: 80upx;
	}
	.line{
		border: 2upx solid #EEEEEE;
		transform: scale(0.9,0.5);
	}
</style>
