|
|
|
@ -1,5 +1,18 @@ |
|
|
|
<template> |
|
|
|
<view class="lf-m-l-32 lf-m-r-32"> |
|
|
|
<view> |
|
|
|
<view class="lf-font-32 lf-color-333 lf-row-center 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="content"></rich-text> |
|
|
|
<lf-nocontent v-else></lf-nocontent> |
|
|
|
<!-- 回到顶部 --> |
|
|
|
@ -12,17 +25,21 @@ |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
content: '', |
|
|
|
notice_id: 0 |
|
|
|
notice_id: 0, |
|
|
|
title_content: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(e){ |
|
|
|
this.notice_id = e.notice_id |
|
|
|
this.getData(); |
|
|
|
this.notice_id = e.notice_id; |
|
|
|
if(this.notice_id) { |
|
|
|
this.getData(); |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getData(){ |
|
|
|
this.$http(this.API.API_NOTICEDETAILS,{id:this.notice_id}).then(res => { |
|
|
|
this.content = res.data?.content; |
|
|
|
this.title_content = res.data |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|