<template>
	<view class="user-info-wrap">
		<uni-list>
			<uni-list-item :to="item.to" :title="item.title" showArrow  thumb-size="sm"  v-for="(item,index) in list" :key="index" />
		</uni-list>
	</view>
</template>

<script>

export default {
	data() {
		return {
			list:[
				{title:'关于我们',to:'/myPages/TermsOfService/index?name='+'关于我们'+'&type=' + 0},
				{title:'服务对象协议',to:'/myPages/TermsOfService/index?name='+'服务对象协议'+'&type=' + 1},
				{title:'隐私条款',to:'/myPages/TermsOfService/index?name='+'隐私条款'+'&type=' + 2},
				{title:'加盟合作',to:'/myPages/TermsOfService/index?name='+'加盟合作'+'&type=' + 3},
				{title:'常见问题',to:'/myPages/TermsOfService/index?name='+'常见问题'+'&type=' + 4}
			],
		};
	},
	mounted() {
	},
	onLoad(e) {

	},
	methods: {
		// 获取服务条款信息
		gotoTermOfService(name){
			uni.navigateTo({
				url: '/myPages/TermsOfService/index?name='+name,
			})
		},
	}
};
</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;
			border-bottom: 1px solid #f7f7f7;
			.nav-info{
				display: flex;
				padding-left: 10px;
				.logo {
					width: 12%;
					text-align: center;
					image{
						width: 24px;
						height: 24px;
					}
				}
				.nav-desc{
					width: 60%;
					display: flex;
					line-height: 30px;
					.nav-name{
						font-size: 16px;
						width: 60%;
					}
					.change-store{
						text-align: right;
						width: 40%;
						font-size: 12px;
						color: #666;
					}
				}

				.arrow-right{
					width:40%;
					text-align: right;
					margin: 0 auto;
					cursor: pointer;
					padding-top: 3px;
					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>
