耀实惠小程序
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.

41 lines
646 B

  1. <template>
  2. <view class="pages">
  3. <view>
  4. <rich-text :nodes="content"></rich-text>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. content: {}
  13. }
  14. },
  15. onLoad(options) {
  16. this.getNoticeDetail(options.id);
  17. },
  18. methods: {
  19. getNoticeDetail(id){
  20. this.$api('noticeOne',{id}).then(res => {
  21. let {code, result, message} = res;
  22. if(code == 200) {
  23. this.content = result.content;
  24. }else {
  25. this.$Toast(message);
  26. }
  27. }).catch(err => {
  28. this.$Toast(err.message);
  29. })
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .pages{
  36. width: 92%;
  37. margin: 0 auto;
  38. }
  39. </style>