<!--设置页-->
<template>
	<view class="assemble">
		<view style="height: 30rpx;"></view>
		<view class="option" @click="update_pass()">修改密码</view>
		<view class="option" @click="privacy_agreement(1)">用户协议</view>
		<view class="option" @click="privacy_agreement(2)">隐私策略</view>
		<view class="option">清空缓存</view>
		
		<view style="width:90%;margin: 60rpx auto;">
			<fui-button background="#29d3b4" @click="loginOut()">退出账号</fui-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
      //退出登陆
      loginOut(){
        this.$util.loginOut()
      },

			privacy_agreement(type){
				uni.navigateTo({
					url: '/pages/common/privacy_agreement?type='+type
				})
			},
			update_pass(){
				uni.navigateTo({
					url: '/pages/coach/my/update_pass'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.assemble{
		width: 100%;
		height: 100vh;
		background: #333333; 
	}
	.option{
		margin-bottom: 20rpx;
		background: #404045;
		width: 100%;
		font-size: 28rpx;
		color: #fff;
		line-height: 56rpx;
		padding: 20rpx 0 20rpx 100rpx;
	}
</style>
