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.
52 lines
1.3 KiB
52 lines
1.3 KiB
<template>
|
|
<view class="lf-m-l-32 lf-m-r-32">
|
|
<view>
|
|
<view class="lf-font-32 lf-color-333 lf-m-t-30 lf-m-b-20">
|
|
{{title_content.title}}
|
|
</view>
|
|
<view class="lf-flex lf-m-b-24">
|
|
<view class="lf-color-999 lf-font-24" v-if="title_content.updated_at">
|
|
发布于<text class="lf-m-l-10">{{title_content.updated_at}}</text>
|
|
</view>
|
|
<view class="lf-color-999 lf-font-24 lf-m-l-30" v-if="title_content.author">
|
|
作者<text class="lf-m-l-10">{{title_content.author}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<rich-text :nodes="content" v-if="$isRight(content)"></rich-text>
|
|
<lf-nocontent v-else></lf-nocontent>
|
|
<!-- 回到顶部 -->
|
|
<u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return {
|
|
content: '',
|
|
news_id: 0,
|
|
title_content: ''
|
|
}
|
|
},
|
|
onLoad(e){
|
|
this.news_id = e.news_id
|
|
if(this.news_id) {
|
|
this.getData();
|
|
}
|
|
},
|
|
methods: {
|
|
getData(){
|
|
this.$http(this.API.API_MESSAGEDETAILS,{id: this.news_id}).then(res => {
|
|
this.content = res.data?.content;
|
|
this.title_content = res.data
|
|
console.log(this.content)
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped="scoped">
|
|
|
|
</style>
|