<template>
	<view class="content">
		<view class="line"></view>
		<view class="list">
			<view class="item" @click="logout()">
				<view class="left">
					<view class="icon">
						<image src="./icon/list_2.png" mode=""></image>
					</view>
					<view class="name">退出登录</view>
				</view>
				<view class="right">
					<uni-icons type="arrowright"></uni-icons>
				</view>
			</view>
			<view class="item" @click="go_m_download()">
				<view class="left">
					<view class="icon">
						<image src="./icon/list_3.png" mode=""></image>
					</view>
					<view class="name">下载二维码</view>
				</view>
				<view class="right">
					<uni-icons type="arrowright"></uni-icons>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"t-m-list",
		data() {
			return {
				
			};
		},
		methods:{
			// 退出登录
			logout(){
				uni.clearStorageSync('Authorization');
				uni.showToast({
					icon:"none",
					title:"退出登录"
				})
				
				// 跳转登录页
				uni.redirectTo({
					url:"../../my/login/login"
				})
			},
			// 下载二维码
			go_m_download(){
				uni.navigateTo({
					url:"../../my/download/download"
				})
			}
		}
	}
</script>

<style lang="scss">
	.content{
		margin-top: 17px;
		box-sizing: border-box;
		padding: 0 24rpx;
	}
	.line{
		height: 4px;
		background: #009FE8;
	}
	.list{
		.item{
			height: 48px;
			
			display: flex;
			justify-content: space-between;
			align-items: center;
			
			box-sizing: border-box;
			padding-right: 2px;
			padding-left: 10px;
			.left{
				display: flex;
				align-items: center;
				.icon{
					width: 19px;
					height: 17px;
					image{
						width: 19px;
						height: 19px;
					}
				}
				.name{
					margin-left: 4px;
					font-size: 17px;
					font-weight: 500;
					color: #333333;
					line-height: 23px;
				}
			}
			.right{
				
			}
		}
	}
</style>
