海南旅游项目 前端仓库
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.

51 lines
1.2 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view class="lf-m-l-32 lf-m-r-32">
  3. <view>
  4. <view class="lf-font-32 lf-color-333 lf-m-t-30 lf-m-b-20">
  5. {{title_content.title}}
  6. </view>
  7. <view class="lf-flex lf-m-b-24">
  8. <view class="lf-color-999 lf-font-24" v-if="title_content.updated_at">
  9. 发布于<text class="lf-m-l-10">{{title_content.updated_at}}</text>
  10. </view>
  11. <view class="lf-color-999 lf-font-24 lf-m-l-30" v-if="title_content.author">
  12. 作者<text class="lf-m-l-10">{{title_content.author}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. <rich-text :nodes="content" v-if="content"></rich-text>
  17. <lf-nocontent v-else></lf-nocontent>
  18. <!-- 回到顶部 -->
  19. <u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data(){
  25. return {
  26. content: '',
  27. notice_id: 0,
  28. title_content: ''
  29. }
  30. },
  31. onLoad(e){
  32. this.notice_id = e.notice_id;
  33. if(this.notice_id) {
  34. this.getData();
  35. }
  36. },
  37. methods: {
  38. getData(){
  39. this.$http(this.API.API_NOTICEDETAILS,{id:this.notice_id}).then(res => {
  40. this.content = res.data?.content;
  41. this.title_content = res.data
  42. })
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped="scoped">
  48. </style>