agreement.vue 462 B

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