<!-- 设置页面 -->
<template>
	<view class="body" :style="'padding-top:' + bottomHeight">
		<!-- 导航 -->
		<view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative">
			<view class="ss-flex-2 ss-col-center">
				<text class="textIcon icon-fanhui icon-navigation" @click="backPage"></text>
				<view style="margin-left: 15rpx; color: #3D444E; font-size: 28rpx">设置</view>
			</view>
			<view class="ss-flex-1"></view>
		</view>
		<!-- 各种设置 -->
		<view class="setting-box">
			<view class="ss-flex-2 ss-col-center hang-box">
				<view class="tit-box">关于应用</view>
				<view class="ss-flex-1"></view>
				<view style="color: #A1A1A1; font-size: 28rpx;">嘀咚到位</view>
				<text class="textIcon icon-gengduo icon-s"></text>
			</view>
			<view class="ss-flex-2 ss-col-center hang-box">
				<view class="tit-box">手机号</view>
				<view class="ss-flex-1"></view>
				<view style="color: #A1A1A1; font-size: 28rpx;">15527770417</view>
				<text class="textIcon icon-gengduo icon-s"></text>
			</view>
			<view class="ss-flex-2 ss-col-center hang-box">
				<view class="tit-box">用户协议</view>
				<view class="ss-flex-1"></view>
				<text class="textIcon icon-gengduo icon-s"></text>
			</view>
			<view class="ss-flex-2 ss-col-center hang-box">
				<view class="tit-box">隐私政策</view>
				<view class="ss-flex-1"></view>
				<text class="textIcon icon-gengduo icon-s"></text>
			</view>
			<view class="ss-flex-2 ss-col-center hang-box">
				<view class="tit-box">注销账户</view>
				<view class="ss-flex-1"></view>
				<text class="textIcon icon-gengduo icon-s"></text>
			</view>
			<view class="ss-flex-2 ss-col-center hang-box" style="border:none;padding:0rpx;margin:0rpx;">
				<view class="tit-box">清除缓存</view>
				<view class="ss-flex-1"></view>
				<text class="textIcon icon-gengduo icon-s"></text>
			</view>
		</view>
		<view class="out-box">退出登录</view>
	</view>
</template>
<script setup>
	import {
		reactive,
		ref
	} from 'vue';
	import {
		computed
	} from 'vue';
	import {
		onLoad,
		onPageScroll,
		onPullDownRefresh,
		onReady,
		onReachBottom,
		onShow,
	} from '@dcloudio/uni-app';
	import sheep from '@/sheep';
	import $share from '@/sheep/platform/share';
	// 隐藏原生tabBar
	// uni.hideTabBar();

	// 返回首页
	const backPage = async () => {
		uni.reLaunch({
			url:'/pages/XDHome/myHome/myHome'
		})
	};

	const bottomHeight = ref('0rpx');
	// #ifdef APP-PlUS
	//获取顶部安全距离
	const app = uni.getSystemInfoSync();
	const bottomHeightOne = app.statusBarHeight + 'rpx';
	bottomHeight.value = bottomHeightOne
	// #endif
</script>
<style scoped lang="scss">
	.out-box{
		width:95%;
		margin-left:2.5%;
		box-sizing:border-box;
		padding:20rpx 0rpx;
		text-align:center;
		background-color: #36AFCA;
		color:#fff;
		font-size:30rpx;
		margin-top:40rpx;
		border-radius:10rpx;
	}
	.icon-s {
		color: #333;
		font-size: 50rpx;
		font-weight: 600;
		margin-left: 30rpx;
	}

	.tit-box {
		margin-left: 30rpx;
		color: #333;
		font-size: 32rpx;
		font-weight:500;
	}

	.hang-box {
		padding-bottom: 20rpx;
		border-bottom: 1rpx solid #ACAEB4;
		margin-bottom: 20rpx;
	}

	.setting-box {
		width: 100%;
		background-color: #fff;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
		margin-top: 20rpx
	}

	.icon-navigation {
		font-size: 32rpx;
		color: #3D444E;
		font-weight: 700;
	}

	.body {
		display: flex;
		flex-direction: column;
		background-color: #EEEEF0;
		height: 100vh;
		box-sizing: border-box;
	}

	.head {
		text-align: center;
	}

	// 中部滚动
	.list-wrap {
		flex-grow: 1;
		position: relative;
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
	}

	.list {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 50rpx;
		padding: 10rpx;
		border-radius: 15rpx;
		box-sizing: border-box;
	}

	.list-scroll-view {
		width: 100%;
		margin-bottom: 20rpx;
		box-sizing: border-box;
	}

	.course-card {
		width: 47vw;
		margin-top: 10px;
		margin-bottom: 10px;
	}

	// 底部
	.tools {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.tools-item {
		width: 45px;
		text-align: center;
		font-size: 14px;
		padding: 20px;
	}
</style>