<template>
	<view>
		<!-- #ifdef MP-ALIPAY -->
		<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们" leftIconSize="0"></u-navbar>
		<!-- #endif -->
		<!-- #ifdef MP-WEIXIN -->
		<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们"></u-navbar>
		<!-- #endif -->
		<!-- #ifndef MP-WEIXIN || MP-ALIPAY -->
		<view v-if="pagesNum > 1">
			<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们" />
		</view>
		<view v-else>
			<u-navbar leftIconSize="0" :placeholder="true" bgColor="#fff" :border="true" title="关于我们">
				<view class="nav-left flex" slot="left" @click="$toIndex()">
					<u-icon name="arrow-left" size="20" color="#333"></u-icon>
				</view>
			</u-navbar>
		</view>
		<!-- #endif -->
		<view class="about">
			<view class="flex about-logo">
				<image src="../../static/public/logo.png" mode="scaleToFill"></image>
				<!-- #ifndef MP-ALIPAY -->
				<view class="edition">v 1.1.4</view>
				<!-- #endif -->
				<!-- #ifdef MP-ALIPAY -->
				<view class="edition">v 2.2.6</view>
				<!-- #endif -->
			</view>
			<view class="about-action">
				<u-cell-group :border="false">
					<u-cell title="隐私保护声明" :isLink="true" :url="'/packageOther/about/conceal'"></u-cell>
					<u-cell title="用户使用协议" :isLink="true" :url="'/packageOther/about/protect'"></u-cell>
				</u-cell-group>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pagesNum: '',
			};
		},
		onShow() {
			this.pagesNum = getCurrentPages().length
		},
	}
</script>
<style lang="scss" scoped>
	::v-deep .u-cell__body {
		padding: 20rpx 0;
	}
</style>
<style lang="scss" scoped>
	.about {
		min-height: calc(100vh - 44px - var(--status-bar-height));
		background-color: #FFFFFF;

		&-logo {
			flex-direction: column;

			image {
				width: 164rpx;
				height: 164rpx;
				line-height: 164rpx;
				border-radius: 10rpx;
				margin-top: 88rpx;
			}
			
			.edition{
				line-height: 40rpx;
				margin-top: 18rpx;
			}
		}
		
		&-action{
			padding: 20rpx 34rpx;
		}
	}
</style>
