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

31 lines
533 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. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. article_id: 0,
  12. detail: {}
  13. }
  14. },
  15. onLoad(options){
  16. this.article_id = options.id;
  17. this.getData();
  18. },
  19. methods: {
  20. getData(){
  21. this.$http(this.API.API_ARTICLE_DETAIL, {article_id: this.article_id}).then(res => {
  22. this.detail = res.data;
  23. })
  24. }
  25. }
  26. }
  27. </script>
  28. <style>
  29. </style>