<template>
	<view id="setting">
		<view class="update-btn" @click="jumpinfo">
			<view class="left-item">修改资料</view>
			<view class="iconfont icon-jiantou"></view>
		</view>
		<view class="update-btn" @click="jumplogout">
			<view class="left-item">退出登陆</view>
			<view class="iconfont icon-jiantou"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			jumplogout(){
				this.$cookieStorage.clear('user_token');
				setTimeout(function(){
					wx.navigateBack({})
				},1500)
				
			},
			jumpinfo(){
			 wx.navigateTo({
			 	url:'/pages/user/usersetting/usersetting'
			 })
			}
				
			
		}
	}
</script>

<style rel="stylesheet/less" lang="less">
	@import "setting.less";
</style>
