<template>
  <s-layout class="set-wrap" title="隐私管理" :bgStyle="{ color: '#fff' }">
    <view class="container-list">
      <uni-list :border="false">
				<uni-list-item
				  title="授权管理"
				  showArrow
				  clickable
				  :border="false"
				  class="list-border"
				  @tap="
				    sheep.$router.go('/pages/user/AuthorizaManage/index')
				  "
				/>
				<uni-list-item
				  title="用户协议"
				  showArrow
				  clickable
				  :border="false"
				  class="list-border"
				  @tap="
				    sheep.$router.go('/pages/public/richtext', {
				      title: '用户协议'
				    })
				  "
				/>
				<uni-list-item
				  title="隐私管理"
				  showArrow
				  clickable
				  :border="false"
				  class="list-border"
				  @tap="
				    sheep.$router.go('/pages/public/richtext', {
				      title: '隐私协议'
				    })
				  "
				/>
        <!-- 为了过审 只有 iOS-App 有注销账号功能  && sheep.$platform.os === 'ios' && sheep.$platform.name === 'App' -->
        <uni-list-item
          v-if="isLogin"
          title="注销账号"
          rightText=""
          showArrow
          clickable
          :border="false"
          class="list-border"
          @click="onLogoff"
        />
      </uni-list>
    </view>
  </s-layout>
</template>

<script setup>
import sheep from '@/sheep';
import { computed } from 'vue';

const isLogin = computed(() => sheep.$store('user').isLogin);



</script>

<style lang="scss" scoped>
	.container-list {
		padding-top: 15rpx;
		background: #fff;
	}
</style>
