<template>
	<view>
		<view style="width: 100%;height: 64rpx;background-color: #FFFFFF;"></view>
		<view class="u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30">
			<view class="u-m-r-10">
				<u-avatar :src="pic" size="140"></u-avatar>
			</view>
			<view class="u-flex-1">
				<view class="u-font-18 u-p-b-20">{{username}}</view>
				<view class="u-font-14 u-tips-color">云仓号:暂无</view>
			</view>
			<view class="u-m-l-10 u-p-10">
				<u-icon name="scan" color="#969799" size="28"></u-icon>
			</view>
			<view class="u-m-l-10 u-p-10">
				<u-icon name="arrow-right" color="#969799" size="28"></u-icon>
			</view>
		</view>
		<view class="u-m-t-20">
			<u-cell-group>
				<!-- <u-cell-item icon="star" title="我的积分"></u-cell-item> -->
				<u-cell-item icon="photo" title="我的客服"></u-cell-item>
				<!-- <u-cell-item icon="coupon" title="我的推广"></u-cell-item> -->
				<u-cell-item icon="heart" title="我的待办"></u-cell-item>
			</u-cell-group>
		</view>

		<view class="u-m-t-20">
			<u-cell-group>
				<u-cell-item icon="setting" title="我的设置" @tap="$u.debounce(setUp, 500)"></u-cell-item>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pic: 'https://uviewui.com/common/logo.png',
				show: true,
				username:''
			}
		},
		onShow() {
			this.username = uni.getStorageSync('lifeData').vuex_user
		},
		methods: {
			setUp(){
				//保留当前页面跳转
				this.$u.route('/pages/personalCenter/setUp');
			}
		}
	}
</script>

<style>
	page {
		background-color: #f0f0f0;
	}
</style>
<style lang="scss" scoped>
	.camera {
		width: 54px;
		height: 44px;
		&:active {
			background-color: #ededed;
		}
	}

	.user-box {
		background-color: #fff;
	}
</style>
