<template>
	<view>
		<view class="bg_color"></view>
		
		<view class="content">
			
			<view class="user">
				<view class="user_left">
					<view class="user_img" @click="go_personal()">
						<image src="./icon/user_img.png" mode=""></image>
					</view>
					<view class="user_info">
						<view class="name">
							<view class="name_text">{{user.name}}</view>
							<view class="name_icon">
								<image src="./icon/name_icon.png" mode=""></image>
							</view>
						</view>
						<view class="tips">{{user.section}}</view>
					</view>
				</view>
				<view class="user_right">
					<uni-icons type="forward"></uni-icons>
				</view>
				
			</view>
			
			<view class="warning">
				<view class="warning_icon"></view>
				<view class="warning_text">未绑定手机号，请立即绑定手机号。</view>
			</view>
			
			<view class="warning">
				<view class="warning_icon"></view>
				<view class="warning_text">未添加手写签名，请添加手写签名。</view>
			</view>
			
			
		</view>
		
		
	</view>
</template>

<script>
	
	export default {
		props:{
			user:{
				type:Object,
				default(){
					return{}
				}
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			go_personal(){
				uni.navigateTo({
					url: '../../m-personal/m-personal',
					animationType:"fade-in",
					animationDuration:200
				});
			}
		}
	}
</script>

<style lang="scss">
	.bg_color{
		height: 100rpx;
		background: #009FE8;
	}
	.content{
		padding: 0 30rpx;
		.user{
			margin-top: -75rpx;
			margin-bottom: 6rpx;
			
			height: 163rpx;
			background: #FFFFFF;
			box-shadow: 0px 0px 5rpx 5rpx rgba(0, 0, 0, 0.05);
			border-radius: 5rpx;
			
			display: flex;
			justify-content: space-between;
			
			box-sizing: border-box;
			padding-top: 13rpx;
			padding-bottom: 18rpx;
			padding-left: 16rpx;
			padding-right: 33rpx;
			
			.user_left{
				display: flex;
				
				.user_img{
					width: 132rpx;
					height: 132rpx;
					image{
						width: 132rpx;
						height: 132rpx;
					}
				}
				.user_info{
					margin-left: 13rpx;
					
					box-sizing: border-box;
					padding-top: 18rpx;
					
					.name{
						display: flex;
						.name_text{
							height: 52rpx;
							font-size: 38rpx;
							font-family: PingFangSC-Medium, PingFang SC;
							font-weight: 500;
							color: #232627;
							line-height: 52rpx;

						}
						.name_icon{
							margin-left: 10rpx;
							margin-top: 7rpx;
							
							width: 38rpx;
							height: 38rpx;
							image{
								width: 38rpx;
								height: 38rpx;
							}
						}
					}
					.tips{
						margin-top: 8rpx;
						
						height: 40rpx;
						font-size: 27rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #232627;
						line-height: 40rpx;


					}
				}
			}
			.user_right{
				line-height: 132rpx;
			}
		}
		.warning{
			margin-top: 10rpx;
			height: 91rpx;
			background: #FFFFFF;
			box-shadow: 0px 0px 5rpx 5rpx rgba(0, 0, 0, 0.05);
			border-radius: 5rpx;
			
			display: flex;
			
			box-sizing: border-box;
			padding-left: 19rpx;
			padding-top: 22rpx;
			
			
			.warning_icon{
				width: 45rpx;
				height: 45rpx;
				
				background-image: url(icon/warning_icon.png);
				background-size: cover;
				background-repeat: no-repeat;
			}
			.warning_text{
				margin-left: 12rpx;
				
				height: 45rpx;
				font-size: 29rpx;
				font-family: MicrosoftYaHei;
				color: #7F8C8D;
				line-height: 45rpx;

			}
		}
		
		
	}
</style>
