<template>
	<view style="padding-top: 20rpx;">
		<view class="main-between cross-center list-item">
			<view class="title">头像</view>
			<view class="main-right cross-center">
				<image class="head" :src="info.salesperson_info?info.avatar:'https://t17.9026.com/web/statics/image/index/head_port.png'" mode=""></image>
				<image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode=""></image>
			</view>
		</view>
		<view class="line"></view>
		<view class="main-between cross-center list-item">
			<view class="title">姓名</view>
			<view class="main-right cross-center">
				<input class="input" type="text" v-model="info.salesperson_info.name" disabled />
				<image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode=""></image>
			</view>
		</view>
		<view class="line"></view>
		<view class="main-between cross-center list-item">
			<view class="title">电话号</view>
			<view class="main-right cross-center">
				<input class="input" type="text" v-model="info.salesperson_info.mobile" disabled />
				<image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode=""></image>
			</view>
		</view>
		<view class="line"></view>
		<view class="main-between cross-center list-item">
			<view class="title">性别</view>
			<view class="main-right cross-center">
				<input class="input" type="text" :value="info.salesperson_info.sex=='1'?'男':'女'" disabled />
				<image class="arrow-right" src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	import {mapState} from "vuex"
	export default {
		data() {
			return {
				
			};
		},
		computed:{
			...mapState({
				info:state=>state.user.info
			})
		}
	}
</script>

<style lang="scss" scoped>
	.list-item{
		height: 108rpx;
		width: 100%;
		padding: 0 37rpx 0 38rpx;
		background-color: #fff;
		font-size: 30rpx;
		font-weight: 500;
		color: #222222;
		.title{
			width: 200rpx;
		}
		.head{
			width: 78rpx;
			height: 78rpx;
			overflow: hidden;
			border-radius: 50%;
		}
		.arrow-right{
			width: 12rpx;
			height: 21rpx;
			margin-left: 36rpx;
		}
		.input{
			text-align: right;
			font-size: 30rpx;
			// font-weight: 500;
			color: #999999;
		}
	}
	.line{
		width: 678rpx;
		height: 1rpx;
		margin: 0 auto;
		background-color: #EAEAEA;
	}
</style>
