<template>
	<bgImg />
	<view class="header">
		<view class="personal">
			<view class="picture">
				{{ userInfo?.realName }}
			</view>
			<view class="center">
				<view class="classname">{{ userInfo?.realName }}</view>
				<text class="text">岗位：{{ userInfo?.post }}</text>

			</view>
			<view style="margin-right: 18rpx;">
				<up-icon name="arrow-right" size="15"></up-icon>
			</view>
		</view>

	</view>

	<view class="content">
		<view class="cell">
			<view class="box">
				<image class="img" src="@/static/我的客户.png" mode=""></image>
				<text>我的客户</text>
			</view>
			<view style="margin-right: 18rpx;">
				<up-icon name="arrow-right" size="15"></up-icon>
			</view>
		</view>

		<view class="cell">
			<view class="box">
				<image class="img" src="@/static/SVG/意见反馈.svg" mode=""></image>
				<text>问题&建议</text>
			</view>
			<view style="margin-right: 18rpx;">
				<up-icon name="arrow-right" size="15"></up-icon>
			</view>
		</view>

		<view class="cell">
			<view class="box">
				<image class="img" src="@/static/SVG/设置.svg" mode=""></image>
				<text>设置</text>
			</view>
			<view style="margin-right: 18rpx;">
				<up-icon name="arrow-right" size="15"></up-icon>
			</view>
		</view>
	</view>
</template>

<script setup>
import {
	ref,
	getCurrentInstance,
	reactive
} from 'vue';
import {
	onReady,
	onShow
} from '@dcloudio/uni-app'
const customStyle = reactive({
	padding: '10rpx 0',
	borderBottom: "2rpx solid #ecedef"
})

const userInfo = reactive(uni.getStorageSync('userInfo'))
</script>

<style lang="scss" scoped>
.header {
	width: 100%;

	.personal {
		height: 140rpx;
		width: 92%;
		margin: auto;
		// background-color: red;
		display: flex;
		align-items: center;
		justify-content: space-between;
		// position: absolute;
		// z-index: 1;

		.picture {
			width: 120rpx;
			height: 120rpx;
			border-radius: 60rpx;
			background-color: #038CFF;
			color: white;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.center {
			width: 70%;
			height: 70%;
			// background-color: green;
			display: flex;
			flex-wrap: wrap;
			// align-items: center;


			.classname {
				width: 100%;
				font-size: 32rpx;
				font-weight: bold;
			}

			.text {
				color: #98A4B2;
				font-size: 24rpx;
			}
		}
	}

}


.content {
	width: 95%;
	margin: 20rpx auto;
	font-weight: bold;

	.cell {
		height: 120rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 95%;
		margin: 0 auto;
		border-bottom: 2rpx solid #ecedef;
	}

	.box {
		display: flex;
		align-items: center;
		padding: 20rpx 0;
	}

	.img {
		width: 40rpx;
		height: 40rpx;
		margin-right: 20rpx;
	}
}
</style>