<template>
	<div class="content">
		<div class="cell-group">
			<div class="cell-item">
				<span>用户名</span>
				<span>{{userInfo.name || '用户' + userInfo.mobile.slice(7, 11)}}</span>
			</div>
			<div class="cell-item">
				<span>登录手机号</span>
				<span>{{userInfo.mobile}}</span>
			</div>
		</div>
		<div class="login-btn" @click="login()">退出登录</div>
	</div>
</template>

<script>
import methods from './methods.js';
export default {
	data() {
		return {
			userInfo: '',
		};
	},
	onLoad(options) {
		this.userInfo = uni.getStorageSync('userInfo');
	},
	mounted() {},
	methods: {
		...methods
	}
};
</script>

<style lang="scss" scoped>
@import './style.scss';
</style>
