App.vue 1.0 KB

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