时空网前端
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.

33 lines
666 B

  1. <template>
  2. <view class="padding-lr">
  3. <rich-text :nodes="detail.content" v-if="detail.content"></rich-text>
  4. <my-nocontent v-else></my-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. article_id: 0,
  14. detail: {}
  15. }
  16. },
  17. onLoad(options){
  18. this.article_id = options.id;
  19. this.getData();
  20. },
  21. methods: {
  22. getData(){
  23. this.$http(this.API.API_ARTICLE_DETAIL, {article_id: this.article_id}).then(res => {
  24. this.detail = res.data;
  25. })
  26. }
  27. }
  28. }
  29. </script>
  30. <style>
  31. </style>