<template>
	<view class="user-info-wrap">
		<view class="nav-bar">
			<view class="nav-content">
				<view @click="gotoSettingtelphone(0)" class="nav-info">
					<view class="nav-desc">
						<view class="nav-name">
							<view class="">手机号</view>
						</view>
					</view>
					<view class="arrow-right">
						<u-icon name="arrow-right" color="#666" size="18"></u-icon>
					</view>
				</view>
			</view>
			<view class="custom-line"></view>
			<view class="nav-content">
				<view @click="gotoSettingWechat()" class="nav-info">
					<view class="nav-desc">
						<view class="nav-name">
							<view class="">微信号</view>
						</view>
					</view>
					<view class="arrow-right">
						<u-icon name="arrow-right" color="#666" size="18"></u-icon>
					</view>
				</view>
			</view>
			<view class="custom-line"></view>
			<view class="nav-content">
				<view @click="gotoSettingAccountPassword()" class="nav-info">
					<view class="nav-desc">
						<view class="nav-name">
							<view class="">修改登录交易密码</view>
						</view>
					</view>
					<view class="arrow-right">
						<u-icon name="arrow-right" color="#666" size="18"></u-icon>
					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
export default {
	data() {
		return {
			userInfo: {
				telphone: '',
				code: '',
			},
		}
	},
	onReady() {
	},
	methods: {
		// 去设置手机号
		gotoSettingtelphone(){
			uni.navigateTo({
				url: '/myPages/setting/setting-telphone',
			})
		},
		// 去设置微信号
		gotoSettingWechat(){
			uni.navigateTo({
				url: '/myPages/setting/setting-wechat',
			})
		},
		// 去设置账号密码
		gotoSettingAccountPassword(){
			uni.navigateTo({
				url: '/myPages/setting/setting-account-password',
			})
		},
		// 去设置交易密码页面
		gotoSettingTransactionPassword(){
			uni.navigateTo({
				url: '/myPages/setting/setting-transaction-password',
			})
		}
	}
}
</script>

<style lang="scss">
.user-info-wrap{
	margin-left: 12px;
	margin-right: 12px;
	/* 导航菜单 */
	.nav-bar{
		background: #fff;
		border-radius: 10px;
		margin-top: 12px;
		/* 商店信息 */
		.nav-content{
			padding-top: 10px;
			padding-bottom: 6px;
			.nav-info{
				display: flex;
				padding-left: 10px;
				.logo {
					width: 12%;
					text-align: center;
					image{
						width: 24px;
						height: 24px;
					}
				}
				.nav-desc{
					width: 68%;
					display: flex;
					line-height: 30px;
					.nav-name{
						font-size: 14px;
						width: 60%;
					}
					.change-store{
						text-align: right;
						width: 40%;
						font-size: 12px;
						color: #666;
					}
				}

				.arrow-right{
					width:32%;
					text-align: right;
					margin: 0 auto;
					cursor: pointer;
					padding-top: 3px;
					padding-right: 6px;
					display: flex;
					justify-content: flex-end;
					align-items: center;
					image{
						width: 18px;
						height: 18px;
					}
					.head-img {
						text-align: center;
						image{
							width: 24px;
							height: 24px;
						}
					}
				}
			}
		}
	}

	.sure-btn{
		margin-top: 20px;
		width: 100%;
		.btn{
			background: #FF6C7B;
			text-align: center;
			border-radius: 14px;
			height: 36px;
			line-height: 36px;
			color: #fff;
			font-size: 16px;
		}
	}
}

</style>
