<template>
	<view>
		<view class="userHead">
			<view class="userHead-img">
				<u-avatar src="../../assets/img/head.png" size="140"></u-avatar>
			</view>
			<view class="userHead-text">
				<h3>张建军</h3>
				<view class="userHead-text-position">
					<u-icon name="account-pin-box-fill" custom-prefix="custom-icon" color="#fff" size="32"></u-icon>
					<p>市场服务</p>
				</view>
			</view>
		</view>
		<view class="userData">
			<view class="userData-item">
				<view class="userData-data">15</view>
				<view class="userData-foot">我的充电桩</view>
			</view>
			<u-line color="#d9e0ec" length="60" direction="col" margin="10px"/>
			<view class="userData-item">
				<view class="userData-name">微信商家账户</view>
				<view class="userData-foot">提现账户</view>
			</view>
		</view>
		
		<view class="userInfo">
			<view class="userInfo-head"><p>可提现金额</p></view>
			<view class="userInfo-main">
				<h2>19854.14</h2>
				<view class="userInfo-btn">帐户提现</view>
			</view>
			<view class="userInfo-foot">
				<view class="userInfo-item">
					<p>今日收益</p>
					<h4>957.00</h4>
				</view>
				<view class="userInfo-item">
					<p>累计收益</p>
					<h4>11957.00</h4>
				</view>
				<view class="userInfo-item">
					<p>已提现</p>
					<h4>10000.00</h4>
				</view>
			</view>
		</view>
		
		<view class="userCell">
			<view class="userCell-item">
				<view class="userCell-title">
					<u-icon name="refund-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
					<p>提现记录</p>
				</view>
				<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
			</view>
			<view class="userCell-item">
				<view class="userCell-title">
					<u-icon name="question-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
					<p>帮助中心</p>
				</view>
				<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
			</view>
			<view class="userCell-item">
				<view class="userCell-title">
					<u-icon name="customer-service-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
					<p>联系客服</p>
				</view>
				<span>0716-8123456</span>
			</view>
			<view class="userCell-item">
				<view class="userCell-title">
					<u-icon name="information-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
					<p>关于小鹏管家</p>
				</view>
				<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
			</view>
			<view class="userCell-item">
				<view class="userCell-title">
					<u-icon name="logout-box-r-fill" custom-prefix="custom-icon" color="#9EAAC6" size="36"></u-icon>
					<p>帐号登出</p>
				</view>
				<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
			</view>
		</view>
		
		<u-tabbar v-model="current" :list="tabbarList" active-color="#185ac6"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabbarList: [{
						iconPath: "bar-chart-box-fill",
						selectedIconPath: "bar-chart-box-fill",
						text: '统计',
						count: 0,
						isDot: true,
						customIcon: true,
					},
					{
						iconPath: "article-fill",
						selectedIconPath: "article-fill",
						text: '明细',
						midButton: true,
						customIcon: true,
					},
					{
						iconPath: "account-pin-box-fill",
						selectedIconPath: "account-pin-box-fill",
						text: '我的',
						count: 0,
						isDot: false,
						customIcon: true,
					},
				],
				current: 0,
				background:{
					background: 'none'
				},
			}
		},
		methods: {

		}
	}
</script>
<style>
	page{
		background:url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
		background-size: 100%;
	}
</style>
<style lang="scss" scoped>
	.userCell{
		background-color: #fff;
		border-radius: 8px;
		margin: 16px;
		.userCell-item{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 16px;
			.userCell-title{
				display: flex;
				align-items: center;
				p{
					margin-left: 8px;
				}
			}
			span{
				color:#999;
			}
		}
	}
	.userInfo{
		background-color: #fff;
		margin: 16px;
		padding: 16px;
		border-radius: 8px;
		p{
			color:#637AA2;
		}
		.userInfo-main{
			display: flex;
			justify-content: space-between;
			margin-top: 4px;
			align-items: center;
			h2{
				font-size: 32px;
			}
		}
		.userInfo-btn{
			padding: 6px 10px;
			background-color: #FF8501;
			color:#fff;
			border-radius: 15px;
		}
		.userInfo-foot{
			display: flex;
			justify-content: space-between;
			margin-top: 12px;
			.userInfo-item{
				flex: 1;
				h4{
					font-size: 16px;
					margin-top: 4px;
				}
			}
		}
	}
	.userHead{
		display: flex;
		align-items: center;
		padding:40px 20px 0;
		.userHead-img{
			height: 74px;
			width: 74px;
			background-color: #fff;
			border-radius: 50%;
			padding: 2px;
		}
		.userHead-text{
			margin-left: 12px;
			h3{
				font-size: 24px;
				color:#fff;
				font-weight: normal;
			}
			.userHead-text-position{
				display: flex;
				align-items: center;
				margin-top: 5px;
				p{
					color:#fff;
					margin-left: 4px;
				}
			}
		}
	}
	.userData{
		background-color: #fff;
		margin: 16px;
		padding: 16px;
		border-radius: 8px;
		display: flex;
	}
	.userData-item{
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content:space-between;
		.userData-data{
			font-size: 24px;
			font-weight: bold;
		}
		.userData-name{
			font-size: 16px;
		}
		.userData-foot{
			margin-top: 4px;
			color:#637AA2;	
		}
	}
	
</style>
