index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="content">
  3. <jyf-parser :html="content" ref="article" :tag-style="tagStyle"></jyf-parser>
  4. </view>
  5. </template>
  6. <script>
  7. // +----------------------------------------------------------------------
  8. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  9. // +----------------------------------------------------------------------
  10. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  11. // +----------------------------------------------------------------------
  12. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  13. // +----------------------------------------------------------------------
  14. // | Author: CRMEB Team <admin@crmeb.com>
  15. // +----------------------------------------------------------------------
  16. import parser from "@/components/jyf-parser/jyf-parser";
  17. import {
  18. getAgreementApi,
  19. } from '@/api/user.js';
  20. export default {
  21. components: {
  22. "jyf-parser": parser
  23. },
  24. data() {
  25. return {
  26. tagStyle: {
  27. img: 'width:100%;display:block;',
  28. table: 'width:100%',
  29. video: 'width:100%'
  30. },
  31. content: ``
  32. }
  33. },
  34. mounted() {
  35. getAgreementApi('sys_user_agree').then(res => {
  36. this.content = res.data.sys_user_agree
  37. })
  38. }
  39. }
  40. </script>
  41. <style scoped>
  42. .content {
  43. padding: 40rpx 30rpx;
  44. line-height: 2;
  45. }
  46. </style>