richTextTemplate.vue 465 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view class="content"> <mp-html :content="html" :tag-style="tagStyle" /> </view>
  3. </template>
  4. <script>
  5. import { articleTagStyle } from '@/plugins/mp-html/config.js'
  6. export default {
  7. data() {
  8. return {
  9. serverUrl: '',
  10. type: '',
  11. html: '',
  12. tagStyle: articleTagStyle
  13. }
  14. },
  15. created() {},
  16. methods: {}
  17. }
  18. </script>
  19. <style lang="scss">
  20. page {
  21. background: #ffffff;
  22. border-top: 1px solid #ebebeb;
  23. }
  24. .content {
  25. padding: 40rpx 24rpx;
  26. }
  27. </style>