船员公众号
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/aboutUs.vue

44 lines
704 B

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