userAgreement.vue 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="notice.content">
  7. </rich-text>
  8. </view>
  9. </scroll-view>
  10. </view>
  11. </template>
  12. <script>
  13. import {getNoticeByType, getArticle} from '@/api/groupon.js'
  14. export default {
  15. data() {
  16. return {
  17. height:"",
  18. notice:{}
  19. };
  20. },
  21. created(){
  22. let sysInfo=uni.getSystemInfoSync();
  23. this.height= sysInfo.windowHeight - sysInfo.windowBottom +'px';
  24. console.log("获取到的高度",this.height)
  25. this.getNoticeByType();
  26. },
  27. methods: {
  28. getNoticeByType(){
  29. // getNoticeByType(2).then(res =>{
  30. // this.notice = res.data
  31. // })
  32. getArticle("1676237032362483713").then(res => {
  33. this.notice = res.data;
  34. });
  35. }
  36. },
  37. };
  38. </script>
  39. <style>
  40. @import '/static/css/common.css';
  41. @import './index.rpx.css';
  42. </style>