船员公众号
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.
 
 
 
 
 
gzh_chuanyuan/pages/user/userAgreement.vue

45 lines
742 B

<template>
<view class="userAgreement">
<view class="content" v-html="con"></view>
</view>
</template>
<script>
export default{
data(){
return{
con:''
}
},
mounted() {
this.getArticleList(1);
},
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>
.userAgreement{
width: 100%;
overflow: hidden;
box-sizing: border-box;
.content{
padding: 25rpx 25rpx;
font-size: 28rpx;
line-height: 50rpx;
color: #212121;
}
}
</style>