Disclaimer.vue 857 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <script setup>
  2. import { ref } from 'vue'
  3. import { apiBaseConfig } from '@/api/hzyb/common'
  4. import {Popup} from 'vant'
  5. const show = defineModel('show', { type: Boolean, default: false })
  6. const disclaimer = ref('')
  7. function getConfig() {
  8. apiBaseConfig().then(res => {
  9. if (res.code == 200) {
  10. disclaimer.value = res.data.disclaimer
  11. }
  12. })
  13. }
  14. getConfig()
  15. </script>
  16. <template>
  17. <Popup :show="show" @close="show = false" round closeable>
  18. <div class="disclaimers-box">
  19. <div
  20. style="
  21. text-align: center;
  22. font-size: 16px;
  23. font-weight: bold;
  24. margin-bottom: 20px;
  25. "
  26. >
  27. 免责声明
  28. </div>
  29. <div v-html="disclaimer"></div>
  30. </div>
  31. </Popup>
  32. </template>
  33. <style lang="scss" scoped>
  34. .disclaimers-box{
  35. width: 94vw;
  36. padding: 32px;
  37. }
  38. </style>