<template>
	<view>
		<view class="profile_item ">
			<text>Country</text>
			<image src="../../static/img/right1.png" mode="" class="right_img"></image>
		</view>
		<view class="profile_item ">
			<text>Language</text>
			<image src="../../static/img/right1.png" mode="" class="right_img"></image>
		</view>
		<view class="profile_item ">
			<text>My account</text>
			<image src="../../static/img/right1.png" mode="" class="right_img"></image>
		</view>
		<view class="profile_item ">
			<text>Privacy policy</text>
			<image src="../../static/img/right1.png" mode="" class="right_img"></image>
		</view>
		<view class="profile_item ">
			<text>Legal</text>
			<image src="../../static/img/right1.png" mode="" class="right_img"></image>
		</view>
		<view class="set_button">
			<button @click="signOut">SIGN OUT</button>
		</view>
		<view class="edition">
			<view class="edition_title">CHIC BUYER</view>
			<text>Version 1.0</text>
		</view>
	</view>
</template>

<script>
	import {defaultRequest2} from '../../api/index.js'
	export default {
		data() {
			return {
				
			}
		},
		methods:{
			signOut(){
				let data={_action:'logout'}
				defaultRequest2(data).then(res=>{
					console.info(res)
					if(res.error==0){
						uni.clearStorageSync()
						uni.reLaunch({
							url:'../login/index'
						})
					}
				})
			}
		}
	}
</script>
<style lang="scss">
	page{
		border-top: 14.67rpx #F7F7F7 solid;
		padding-left: 26.67rpx;
		box-sizing: border-box;
		
	}
</style>
<style lang="scss" scoped>
	page{
		
	}
	.profile_item{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 24rpx;
		font-weight: bold;
		padding: 40rpx 0;
		padding-right: 33.33rpx;
		border-bottom: 1.33rpx #ECECEC solid;
		box-sizing: border-box;
		
		.right_img{
			width: 18.67rpx;
			height: 18.67rpx;
			margin-left: 20rpx;
		}
		
	}
	.profile_item:last-child{
		border-bottom: none;
	}
	.set_button{
		width: 686.67rpx;
		height: 73.33rpx;
		margin-top: 133.33rpx;
		
		button{
			background-color: #191919;
			font-size: 26.67rpx;
			color: white;
			font-weight: bold;
			height: 100%;
			line-height: 73.33rpx;
			border-radius: 0;
		}
	}
	.edition{
		position: fixed;
		bottom: 0;
		width: 100%;
		text-align: center;
		font-size: 20rpx;
		font-weight: bold;
		margin-bottom: 112rpx;
		.edition_title{
			font-size: 25.33rpx;
			margin-bottom: 16rpx;
		}
	}
</style>