App.vue 825 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <script>
  2. import { useAppStore } from '@/store/appStore';
  3. export default {
  4. onLaunch: function () {
  5. console.log('App Launch')
  6. const appStore = useAppStore();
  7. appStore.init();
  8. },
  9. onShow: function () {
  10. console.log('App Show')
  11. },
  12. onHide: function () {
  13. console.log('App Hide')
  14. }
  15. }
  16. </script>
  17. <style lang="scss">
  18. /*每个页面公共css */
  19. @import '@/static/theme/theme.module.scss';
  20. ::-webkit-scrollbar {
  21. width: 0 !important;
  22. height: 0 !important;
  23. color: transparent !important;
  24. display: none !important;
  25. }
  26. image {
  27. will-change: transform, width, height;
  28. }
  29. .uni-toast {
  30. z-index: 9999;
  31. }
  32. .uni-modal {
  33. border-radius: 6px;
  34. }
  35. .uni-modal__title {
  36. font-weight: bold;
  37. }
  38. .uni-modal__bd {
  39. padding-top: 50rpx;
  40. padding-bottom: 50rpx;
  41. }
  42. .uni-modal__btn {
  43. font-size: 16px;
  44. }
  45. </style>