App.vue 675 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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>
  18. /*每个页面公共css */
  19. @import "@/uni_modules/uv-ui-tools/index.scss";
  20. @import '@/static/theme/theme.module.scss';
  21. @import "@/static/common.scss";
  22. .uni-modal {
  23. border-radius: 6px;
  24. }
  25. .uni-modal__title {
  26. font-weight: bold;
  27. }
  28. .uni-modal__bd {
  29. padding-top: 50rpx;
  30. padding-bottom: 50rpx;
  31. }
  32. .uni-modal__btn {
  33. font-size: 16px;
  34. }
  35. </style>