<template>
	<view class="head">
		<!-- <u-navbar :autoBack="true" title="设置" bgColor="#fd5003" leftIconColor="#fff" titleStyle="color:#fff"></u-navbar> -->
		<view class="content">
			<view style="text-align: center;">
				<image src="https://td.echepei.com/file/applets/resources/parts/images/logo/logo.png" mode=""
					style="width: 500rpx;height: 160rpx;border-radius: 40rpx;"></image>
				<!-- <h3>{{name}}</h3> -->
				<view>version：{{versionNumber}}</view>
			</view>
			<!-- <view class="u-m-t-20" style="margin-top: 100rpx;">
				<u-cell-group>
					<u-cell icon="setting-fill" :isLink="true" title="检查更新" @click="checkVersion"
						:iconStyle="{color: '#fd5003'}"></u-cell>
				</u-cell-group>
			</view> -->
		</view>
		<view style="width: 100%;position:fixed; bottom:200rpx;padding: 0;">
			<view style="width: 92%;margin: 0 auto;">
				<u-button type="primary" @click="logOut" text="退出登录" color="#fd5003"></u-button>
			</view>
			<view style="width: 100%;position:fixed;bottom:20rpx;text-align: center;">
				<!-- <view>
					{{name}}软件许可及服务协议
				</view> -->
				<!-- <view style="color: #fd5003;">
					《隐私保护指引》
				</view> -->
				<!-- <web-view src="http://www.turbosoft.net/privacyPolicy.html" bindload="bindload" binderror="binderror"></web-view> -->
				<!-- <a href="http://www.turbosoft.net/privacyPolicy.html" style="color: #fd5003;">《隐私保护指引》</a> -->
			</view>
		</view>
		</u-modal>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: '获取失败',
				versionNumber: '获取失败'
			}
		},
		created() {
			// #ifdef MP-WEIXIN
			let _this = this
			const accountInfo = wx.getAccountInfoSync();
			if (accountInfo.miniProgram) {
				_this.versionNumber = accountInfo.miniProgram.version?accountInfo.miniProgram.version:'获取失败' // 小程序 版本号
			}
			// #endif
		},
		methods: {
			logOut() {
				uni.clearStorageSync();
				uni.redirectTo({
					url: '/pages/login/login'
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 96%;
		margin: 140rpx auto;
	}
	.head{
		padding-top: var(--status-bar-height);
	}
	.head ::v-deep.u-navbar-inner {
		z-index: -99999;
	}
</style>
