index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="user_about" :data-theme="theme">
  3. <view>
  4. <view class="text cancelTxt">
  5. <jyf-parser :html="agreementData?agreementData.replace(/<br\/>/ig, ''):''" ref="article" :tag-style="tagStyle"></jyf-parser>
  6. </view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. // +----------------------------------------------------------------------
  12. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  13. // +----------------------------------------------------------------------
  14. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  15. // +----------------------------------------------------------------------
  16. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  17. // +----------------------------------------------------------------------
  18. // | Author: CRMEB Team <admin@crmeb.com>
  19. // +----------------------------------------------------------------------
  20. import {
  21. userLevelRuleApi
  22. } from '@/api/user.js'
  23. import parser from "../components/jyf-parser/jyf-parser";
  24. let app = getApp();
  25. export default {
  26. name: 'user_about',
  27. components: {
  28. "jyf-parser": parser
  29. },
  30. data() {
  31. return {
  32. theme: app.globalData.theme,
  33. agreementData: '',
  34. loaded: false,
  35. tagStyle: {
  36. img: 'width:100%;display:block;'
  37. },
  38. }
  39. },
  40. onLoad: function() {
  41. this.getCacheinfo();
  42. },
  43. methods: {
  44. getCacheinfo() {
  45. this.loaded = false;
  46. userLevelRuleApi().then(res => {
  47. this.agreementData = res.data
  48. this.loaded = true;
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. .user_about {
  56. .text {
  57. font-size: 30rpx;
  58. font-weight: 400;
  59. padding: 30rpx;
  60. color: #282828;
  61. }
  62. .cancelTxt {
  63. overflow: hidden;
  64. overflow-y: auto;
  65. image {
  66. max-width: 100%;
  67. }
  68. }
  69. }
  70. </style>