<template>
	<view class="bg">
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="item.id" @click="goInfo(item)">
				{{item.name}}
			</view>
		</view>		
	</view>
</template>
<script>
	export default{
		data(){
			return {
				list:[{name:'用户协议',id:'10001'},{name:'隐私协议',id:'9999'},{name:'个人信息收集清单',id:'10202	'}],
			}
		},
		onShow() {
			// this.Post({
			// 	id: 9999
			// },'/api/article/getArticleById').then(res => {
			// 	this.content = res.data.content
			// })
		},
			
		methods:{
			goInfo(item){
				uni.navigateTo({
					url:'/subPackages/user/privacyInfo?id='+item.id
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	view{
		box-sizing: border-box;
	}
	.list{
		width: 698rpx;
		background: #FFFFFF;
		box-shadow: 0px 4rpx 12rpx 0px rgba(150,149,149,0.3);
		border-radius: 18rpx;
		margin: 0 auto;
		margin-top: 20rpx;
		padding:0 20rpx ;
	}
	.item{
		width: 100%;
		height: 93rpx;
		border-bottom: 1rpx solid #EEEFF7;
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
		line-height: 93rpx;
	}
</style>