notice.vue 554 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="u-content">
  3. <u-parse :html="content" ></u-parse>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. content: ''
  11. }
  12. },
  13. onLoad() {
  14. this.fetchDetail()
  15. },
  16. methods: {
  17. fetchDetail() {
  18. let params = {
  19. title: '投票须知'
  20. }
  21. this.$api.notice.detail(params).then(res => {
  22. this.content = res.data.data.content
  23. })
  24. },
  25. }
  26. }
  27. </script>
  28. <style>
  29. page {
  30. background-color: #FFFFFF;
  31. }
  32. .u-content {
  33. padding: 30rpx;
  34. line-height: 50rpx;
  35. color: #505050;
  36. }
  37. </style>