activityExplain.vue 823 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <zj-page-layout :bgColor="'#FFFFFF'" :hasFooter="false" :isScroll="false">
  3. <view class="content">
  4. <u-parse :content="content" :tagStyle="style"></u-parse>
  5. </view>
  6. </zj-page-layout>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. id: '',
  13. content: '',
  14. style: {
  15. p: 'font-size: 32rpx; line-height: 52rpx;',
  16. }
  17. }
  18. },
  19. onLoad({id}) {
  20. this.id = id;
  21. this.getDetail();
  22. },
  23. methods: {
  24. getDetail() {
  25. this.$api.post('/promotion/questionnaire/detail', {
  26. id: this.id
  27. }).then(res => {
  28. this.content = res.data.content;
  29. })
  30. },
  31. },
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .content {
  36. padding: 0 30rpx 30rpx;
  37. image {
  38. width: 100%;
  39. }
  40. }
  41. </style>