index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="page flex-col" :style="{'height':height}">
  3. <scroll-view scroll-y="true" class="scroll-y ">
  4. <view class="content-box flex-col">
  5. <!-- <web-view src="http://www.gzqcdj.cn/doc/2.html"></web-view>-->
  6. <rich-text v-html="name">
  7. </rich-text>
  8. </view>
  9. </scroll-view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. name: '',
  17. height: '',
  18. type:''
  19. };
  20. },
  21. mounted() {
  22. },
  23. onLoad(option) {
  24. let sysInfo = uni.getSystemInfoSync();
  25. this.height = sysInfo.windowHeight + 'px';
  26. console.log("获取到的高度", this.height)
  27. uni.setNavigationBarTitle({
  28. title: option.name
  29. })
  30. this.type = option.type
  31. this.AboutByType(this.type)
  32. },
  33. methods: {
  34. AboutByType(type) {
  35. this.$api.AboutByType({type:type}).then(res => {
  36. this.name = res.data.data.aboutContent
  37. console.log(res,'333333333333')
  38. })
  39. }
  40. }
  41. };
  42. </script>
  43. <style lang="scss">
  44. @import '/common/css/common.css';
  45. @import './index.rpx.css';
  46. </style>