App.vue 536 B

123456789101112131415161718192021222324252627282930313233
  1. <script setup lang="ts">
  2. import { onHide, onLaunch, onShow } from '@dcloudio/uni-app'
  3. import { usePageAuth } from '@/hooks/usePageAuth'
  4. import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'
  5. usePageAuth()
  6. onLaunch(() => {
  7. console.log('App Launch')
  8. })
  9. onShow(() => {
  10. console.log('App Show')
  11. })
  12. onHide(() => {
  13. console.log('App Hide')
  14. })
  15. </script>
  16. <style lang="scss">
  17. swiper,
  18. scroll-view {
  19. flex: 1;
  20. height: 100%;
  21. overflow: hidden;
  22. }
  23. image {
  24. width: 100%;
  25. height: 100%;
  26. vertical-align: middle;
  27. }
  28. </style>