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

5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <rich-text :nodes="content" v-if="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. article_id: 0
  15. }
  16. },
  17. onLoad(e){
  18. this.article_id = e.article_id
  19. if(this.article_id) {
  20. this.getData();
  21. }
  22. },
  23. methods: {
  24. getData(){
  25. this.$http(this.API.API_FINDARTICLEDETAILS,{id: this.article_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>