policy.vue 442 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <view class="wrap">
  3. <rich-text :nodes="policy"></rich-text>
  4. </view>
  5. </template>
  6. <script setup>
  7. import { ref } from 'vue'
  8. import { getPolicy } from '@/services/common'
  9. const policy = ref({})
  10. const fetchPolicy = () => {
  11. getPolicy().then(res => {
  12. policy.value = res.data.content
  13. })
  14. }
  15. fetchPolicy()
  16. </script>
  17. <style lang="scss" scoped>
  18. .wrap {
  19. min-height: 100vh;
  20. background-color: #fff;
  21. padding: 0 30rpx;
  22. }
  23. </style>