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

37 lines
744 B

4 years ago
4 years ago
4 years ago
4 years ago
  1. <template>
  2. <view class="lf-m-l-32 lf-m-r-32">
  3. <rich-text :nodes="content" v-if="$isRight(content)"></rich-text>
  4. <lf-nocontent v-else></lf-nocontent>
  5. <!-- 回到顶部 -->
  6. <u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data(){
  12. return {
  13. content: '',
  14. news_id: 0
  15. }
  16. },
  17. onLoad(e){
  18. this.news_id = e.news_id
  19. if(this.news_id) {
  20. this.getData();
  21. }
  22. },
  23. methods: {
  24. getData(){
  25. this.$http(this.API.API_MESSAGEDETAILS,{id: this.news_id}).then(res => {
  26. this.content = res.data?.content;
  27. console.log(this.content)
  28. })
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped="scoped">
  34. </style>