scan.page.vue 984 B

1234567891011121314151617181920212223242526272829303132
  1. <script setup lang="ts">
  2. import { useRequest } from 'alova/client';
  3. import { copyrightMethod } from '@/request/api';
  4. import { Dialog } from '@/platform';
  5. const title = import.meta.env.SIX_APP_TITLE;
  6. const { data: copyright, send: load } = useRequest(copyrightMethod).onError(async ({ error }) => {
  7. await Dialog.show({
  8. message: error.message,
  9. theme: 'round-button',
  10. showCancelButton: false,
  11. confirmButtonText: '刷新',
  12. width: '350px',
  13. });
  14. await load();
  15. });
  16. </script>
  17. <template>
  18. <div class="wrapper flex flex-col">
  19. <div class="flex-none h-[106px]">
  20. <div class="h-full flex justify-center items-center text-4xl" style="letter-spacing: 0.2em">{{ title }}</div>
  21. </div>
  22. <div class="flex-auto"></div>
  23. <div class="flex-none text-xl p-2 text-center tracking-widest" v-html="copyright"></div>
  24. </div>
  25. </template>
  26. <style scoped lang="scss">
  27. .wrapper {
  28. background: url("@/assets/images/screen.scan.png") no-repeat center / 100%;
  29. }
  30. </style>