index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view>
  3. <view class="content">
  4. <jyf-parser :html="content" ref="article" :tag-style="tagStyle"></jyf-parser>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import parser from '@/components/jyf-parser/jyf-parser';
  10. import { getDistributionInfo } from '@/api/user.js';
  11. export default {
  12. components: {
  13. 'jyf-parser': parser
  14. },
  15. data() {
  16. return {
  17. tagStyle: {
  18. img: 'width:100%;display:block;',
  19. table: 'width:100%',
  20. video: 'width:100%'
  21. },
  22. content: ``
  23. };
  24. },
  25. computed: {
  26. },
  27. onLoad(e) {
  28. this.distributionInfo();
  29. },
  30. mounted() {},
  31. methods: {
  32. distributionInfo(){
  33. getDistributionInfo().then(res=>{
  34. this.content = res.data.member_explain.content;
  35. }).catch((err) => {
  36. this.$util.Tips({
  37. title: err.msg
  38. });
  39. });
  40. }
  41. }
  42. };
  43. </script>
  44. <style scoped lang="scss">
  45. page {
  46. background-color: #fff;
  47. }
  48. .content {
  49. padding: 15px 30rpx 40rpx 30rpx;
  50. }
  51. .sys-head {
  52. position: fixed;
  53. width: 100%;
  54. background-color: #fff;
  55. top: 0;
  56. left: 0;
  57. z-index: 9;
  58. .sys-title {
  59. height: 43px;
  60. line-height: 43px;
  61. text-align: center;
  62. position: relative;
  63. .iconfont {
  64. position: absolute;
  65. left: 20rpx;
  66. }
  67. }
  68. }
  69. </style>