index.vue 677 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="container">
  3. <view class="one">
  4. <rich-text :nodes="config.agreement"></rich-text>
  5. </view>
  6. </view>
  7. </template>
  8. <script setup lang="ts">
  9. import { ref } from 'vue';
  10. //该依赖已内置不需要单独安装
  11. import { onShow } from "@dcloudio/uni-app";
  12. // 基本信息
  13. const config = ref({ agreement: '' });
  14. onShow(() => {
  15. searchConfig();
  16. })
  17. // config信息
  18. const searchConfig = async () => {
  19. config.value = uni.getStorageSync('config');
  20. };
  21. </script>
  22. <style lang="scss" scoped>
  23. .content {
  24. .one {
  25. padding: 2vw;
  26. .rich-img {
  27. width: 100% !important;
  28. display: block;
  29. }
  30. }
  31. }
  32. </style>