index.vue 1011 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="content">
  3. <!-- <jyf-parser :html="content" ref="article" :tag-style="tagStyle"></jyf-parser> -->
  4. <web-view :src="docUrl"></web-view>
  5. <!-- <text class="html-text-box" v-html="noticeList.noticeContent" ></text> -->
  6. </view>
  7. </template>
  8. <script>
  9. import {
  10. HTTP_REQUEST_URL
  11. } from '@/config/app';
  12. import parser from "@/components/jyf-parser/jyf-parser";
  13. import {
  14. getDoc,
  15. } from '@/api/home.js';
  16. import {
  17. getUserAgreement,
  18. } from '@/api/user.js';
  19. export default {
  20. components: {
  21. "jyf-parser": parser
  22. },
  23. data() {
  24. return {
  25. tagStyle: {
  26. img: 'width:100%;display:block;',
  27. table: 'width:100%',
  28. video: 'width:100%'
  29. },
  30. docUrl: '',
  31. content: ``
  32. }
  33. },
  34. onLoad(options) {
  35. uni.setNavigationBarTitle({
  36. title: options.title
  37. });
  38. this.docUrl = HTTP_REQUEST_URL + '/doc/'+ options.type
  39. },
  40. }
  41. </script>
  42. <style scoped>
  43. page {
  44. background-color: #fff;
  45. }
  46. .content {
  47. padding: 40rpx 30rpx;
  48. line-height: 2;
  49. }
  50. </style>