<template>
	<view style="background: #03803B;height: 100vh;">
		<view style="display: flex;justify-content: center;padding-top: 180rpx;">
			<image src="/static/images/me/setting (2).png" style="width:360rpx;height: 286rpx;" mode="scaleToFill">
			</image>
		</view>
		<view style="margin-top: 200rpx;">
			<view style="text-align: center;">
				<image src="/static/images/me/setting (1).png" style="width:518rpx;height: 144rpx;" mode="scaleToFill">
				</image>
				<view style="color: #fff;font-size: 26rpx;margin-top: 55rpx;">version：{{versionNumber}}</view>
			</view>
		</view>
		<view style="width: 100%;position:fixed; bottom:200rpx;padding: 0;">
			<view style="width:468rpx;margin: 0 auto;">
				<debounce-button type="primary" @click="logOut" text="退出登录" bgColor="#0F974C"></debounce-button>
			</view>
		</view>
		</u-modal>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: '获取失败',
				versionNumber: '获取失败'
			}
		},
		created() {
			const systemInfo = uni.getSystemInfoSync();
			this.versionNumber = systemInfo.appVersion ? systemInfo.appVersion : '获取失败'
		},
		methods: {
			logOut() {
				uni.clearStorageSync();
				uni.navigateTo()
				uni.reLaunch({
					url: '/pages/login/index'
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.head {
		padding-top: var(--status-bar-height);
	}

	.head ::v-deep.u-navbar-inner {
		z-index: -99999;
	}
</style>