<template>
	<view>
		<!-- 用户信息 -->
		<view class="user">
			<view class="user-content">
				<view class="user-info">
					<image class="info-cover" src="../../static/dev/good_cover_00.jpg" mode="aspectFill"></image>
					<view class="info-nickname">唐明明</view>
					<view class="info-tags">
						<text class="info-tags-item">企业认证</text>
						<text class="info-tags-item">SSS企业主</text>
					</view>
				</view>
				<view class="user-sign">签到</view>
			</view>
			<view class="user-total">
				<view class="total-item">
					<view class="total-number">0</view>
					<view class="total-text">商品收藏</view>
				</view>
				<view class="total-item">
					<view class="total-number">0</view>
					<view class="total-text">店铺收藏</view>
				</view>
				<view class="total-item">
					<view class="total-number">0</view>
					<view class="total-text">浏览记录</view>
				</view>
				<view class="total-item">
					<view class="total-number">0</view>
					<view class="total-text">优惠券</view>
				</view>
			</view>
			<view class="user-vip">
				<view class="vip-text">开通会员获得更多的权益</view>
				<view class="vip-btn">立即开通</view>
			</view>
		</view>
		<!-- 易货订单 -->
		<view class="user-group">
			<view class="title">
				<view class="title-text">易货订单</view>
				<view class="title-more">
					全部订单
					<uni-icons class="title-icon" color="#999" type="arrowright" size="14" />
				</view>
			</view>
			<view class="group-flex order-flex">
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_00.png" mode="aspectFill"></image>
					<view class="item-title">待付款</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_01.png" mode="aspectFill"></image>
					<view class="item-title">待发货</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
					<view class="item-title">待提货</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_03.png" mode="aspectFill"></image>
					<view class="item-title">待评价</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_04.png" mode="aspectFill"></image>
					<view class="item-title">退货售后</view>
				</view>
			</view>
		</view>
		<!-- 易货中心管理 -->
		<view class="user-group">
			<view class="title">
				<view class="title-text">易货中心管理</view>
				<view class="title-more">
					交易中心
					<uni-icons class="title-icon" color="#999" type="arrowright" size="14" />
				</view>
			</view>
			<view class="group-flex group-flex-3">
				<view class="item">
					<image class="item-cover" src="@/static/icons/user_icon_00.png" mode="aspectFill"></image>
					<view class="item-title">上架中</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/user_icon_01.png" mode="aspectFill"></image>
					<view class="item-title">寄存中</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/user_icon_02.png" mode="aspectFill"></image>
					<view class="item-title">低价求购</view>
				</view>
			</view>
		</view>
		<!-- 我的资产 -->
		<view class="user-group">
			<view class="title">
				<view class="title-text">我的资产</view>
			</view>
			<view class="group-flex group-flex-4">
				<view class="item">
					<view class="item-num">0</view>
					<view class="item-title">原石</view>
				</view>
				<view class="item">
					<view class="item-num">0</view>
					<view class="item-title">贡献值</view>
				</view>
				<view class="item">
					<view class="item-num">0</view>
					<view class="item-title">易币</view>
				</view>
				<view class="item">
					<view class="item-num">0</view>
					<view class="item-title">零钱</view>
				</view>
			</view>
		</view>
		<!-- 管理工具 -->
		<view class="user-group">
			<view class="title">
				<view class="title-text">管理工具</view>
			</view>
			<view class="group-flex group-flex-4">
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_00.png" mode="aspectFill"></image>
					<view class="item-title">店铺管理</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_01.png" mode="aspectFill"></image>
					<view class="item-title">员工管理</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
					<view class="item-title">营销管理</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
					<view class="item-title">产品管理</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
					<view class="item-title">核销管理</view>
				</view>
				<view class="item">
					<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
					<view class="item-title">卡券管理</view>
				</view>
			</view>
		</view>
		<!-- 版权信息 -->
		<view class="copyright">易品新境 beta 1.0.0</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	// 用户
	.user{
		background: #f3f4f8;
		@extend .ios-top;
		.user-content{
			padding: ($padding*3) $padding 0;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.user-info{
				position: relative;
				width: 80%;
				padding-left: $padding + 88;
				height: 98rpx;
				box-sizing: border-box;
				.info-cover{
					position: absolute;
					left: 0;
					top: 0;
					vertical-align: top;
					height: 98rpx;
					width: 98rpx;
					border-radius: 50%;
				}
				.info-nickname{
					line-height: 55rpx;
					font-size: $title-size + 4;
					font-weight: bold;
				}
				.info-tags{
					font-size: $title-size-sm - 4;
					.info-tags-item{
						background: #333333;
						margin-right: $margin/2;
						color: #e9dabb;
						padding: 0 ($padding/2);
						border-radius: 20rpx;
						line-height: 40rpx;
						display: inline-block;
					}
				}
			}
			.user-sign{
				background: white;
				width: 130rpx;
				height: 60rpx;
				line-height: 60rpx;
				text-align: center;
				font-size: $title-size-m;
			}
		}
		.user-total{
			padding: $padding ($padding - 10);
			display: flex;
			.total-item{
				position: relative;
				margin: 0 ($margin/3);
				text-align: center;
				width: calc(25% - #{$margin - 10});
				.total-number{
					font-size: $title-size;
					font-weight: bold;
					line-height: 50rpx;
				}
				.total-text{
					font-size: $title-size-sm;
					line-height: 40rpx;
				}
				&::before{
					position: absolute;
					right: -($margin/3);
					top: 25%;
					height: 50%;
					content: " ";
					width: 1rpx;
					background: #c2c4c1;
				}
				&:last-child::before{
					display: none;
				}
			}
		}
		.user-vip{
			display: flex;
			justify-content: space-between;
			background: #333333;
			margin: 0 $margin;
			border-radius: $radius $radius 0 0;
			padding: $padding;
			.vip-text{
				line-height: 50rpx;
				width: calc(100% - 180rpx);
				color: #e9dabb;
				font-size: $title-size-m;
			}
			.vip-btn{
				background-color: #e9dabb;
				color: #333333;
				line-height: 50rpx;
				width: 160rpx;
				text-align: center;
				border-radius: 25rpx;
				font-size: $title-size-sm;
			}
		}
	}
	// 用户功能组
	.user-group{
		margin: $margin;
		background: white;
		border-radius: $radius;
		.title{
			padding: $padding $padding ($padding - 10);
			display: flex;
			justify-content: space-between;
			border-bottom: solid 1rpx $border-color;
			align-items: center;
			.title-text{
				line-height: 40rpx;
				font-size: $title-size;
			}
			.title-more{
				height: 40rpx;
				line-height: 40rpx;
				font-size: $title-size-sm;
				color: $text-gray-m;
			}
			.title-icon{
				vertical-align: middle;
			}
		}
		.group-flex{
			display: flex;
			padding: $padding - 10;
			flex-wrap: wrap;
			.item{
				margin: $padding / 3;
				text-align: center;
			}
		}
	}
	// 易货订单
	.order-flex{
		.item{
			width: calc(20% - #{$padding - 10});
			.item-num{
				font-weight: bold;
				font-size: $title-size + 4;
			}
			.item-cover{
				width: 62rpx;
				height: 62rpx;
				vertical-align: top;
			}
			.item-title{
				font-size: $title-size-sm - 2;
				color: $text-gray-m;
				line-height: 40rpx;
			}
		}
	}
	// 工具内容
	.group-flex-4{
		@extend .order-flex;
		.item{
			width: calc(25% - #{$padding - 10});
		}
	}
	.group-flex-3{
		@extend .order-flex;
		.item{
			width: calc(33.33% - #{$padding - 10});
		}
	}
	
	// 易品新境
	.copyright{
		padding: $padding 0 ($padding * 2);
		text-align: center;
		font-size: $title-size-sm;
		color: $text-gray-m;
	}
</style>
