<template>
	<view class="content">
		<view class="cell-group">
			<view class="hflex acenter jbetween cell" @click="toPersonal">
				<view class="left">个人设置</view>
				<u-icon name="arrow-right" color="#000" size="10"></u-icon>
			</view>
			<view class="hflex acenter jbetween cell" @click="toAccount">
				<view class="left">账号信息</view>
				<u-icon name="arrow-right" color="#000" size="10"></u-icon>
			</view>
			<view class="hflex acenter jbetween cell" @click="toWallet">
				<view class="left">提现账号管理</view>
				<u-icon name="arrow-right" color="#000" size="10"></u-icon>
			</view>
			<view class="hflex acenter jbetween cell" @click="toAddress">
				<view class="left">地址管理</view>
				<u-icon name="arrow-right" color="#000" size="10"></u-icon>
			</view>
		</view>
		<view class="cell-group">
			<view class="hflex acenter jbetween cell" @click="about">
				<view class="left">关于我们</view>
				<u-icon name="arrow-right" color="#000" size="10"></u-icon>
			</view>
		</view>
		<view class="cell-group hflex acenter jcenter">
			<view class="button" @click="quit">退出登录</view>
		</view>
	</view>
</template>

<script>
	import $api from '@/static/js/api.js'
	var that = ''
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			that = this
		},
		methods: {
			// 个人信息
			toPersonal() {
				$api.jump('/pages/mine/service/setting/personal')
			},
			// 账号信息
			toAccount() {
				$api.jump('/pages/mine/service/setting/account_info')
			},
			toWallet() {
				$api.jump('/pages/mine/wallet/bankList')
			},
			toAddress() {
				$api.jump('/pages/mine/service/address/address')
			},
			// 关于我们
			about() {
				$api.jump('/pages/mine/service/setting/about')
			},
			// 平台规则
			rules() {
				$api.jump('/pages/mine/setting/rules')
			},
			// 退出登录
			quit() {
				uni.removeStorageSync("token")
				uni.removeStorageSync("myUsername")
				uni.removeStorageSync("id")
				uni.WebIM.conn.close();
				$api.jump('/pages/tabbar/mine/mine',2)
			}
		},
	}
</script>

<style lang="scss" scoped>
	.content {
		background-color: #f5f5f5;
		.cell-group {
			width: 100%;
			background-color: #fff;
			margin-top: 20rpx;
			padding: 0 30rpx;
			box-sizing: border-box;
			.cell {
				box-sizing: border-box;
				padding: 36rpx 0;
				border-bottom: 1rpx solid #f5f5f5;
				.left {
					font-size: 30rpx;
					color: #222;
				}
			}
			.button {
				font-size: 36rpx;
				color: #506dff;
				padding: 20rpx 0;
			}
		}
	}
</style>