<template>
	<view class="privacyPolicy">
		<view class="content" v-html="con"></view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				con:''
			}
		},
		mounted() {
			this.getArticleList(2);
		},
		methods:{
			async getArticleList(type) {
				const { code, data, msg } = await this.$api.articleList({type:type})
				if(code == 200){
					this.con = (data.length == 0?[]:data[0].content)
				}else{
					uni.showToast({
						icon: "none",
						title: msg
					})
				}
			},
		},
	}
</script>

<style lang="scss" scoped>
	.privacyPolicy{
		width: 100%;
		overflow: hidden;
		.content{
			padding: 25rpx 25rpx;
			font-size: 28rpx;
			line-height: 50rpx;
			color: #212121;
		}
	}
</style>