You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
716 B
44 lines
716 B
<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> |