| | |
| | | * 2025-09-28 09:31:16 |
| | | --> |
| | | <script setup> |
| | | import { onHide, onLaunch, onShow } from "@dcloudio/uni-app" |
| | | import { useAppStore } from "@/store" |
| | | import { mpUpdate } from "@/utils/index" |
| | | import { onHide, onLaunch, onShow } from "@dcloudio/uni-app"; |
| | | import { useAppStore } from "@/store"; |
| | | import { mpUpdate } from "@/utils/index"; |
| | | |
| | | const appStore = useAppStore() |
| | | const appStore = useAppStore(); |
| | | |
| | | onLaunch(() => { |
| | | console.log("App Launch") |
| | | console.log("App Launch"); |
| | | |
| | | // 初始化系统信息 |
| | | appStore.initSystemInfo() |
| | | appStore.initSystemInfo(); |
| | | |
| | | // #ifdef MP-WEIXIN |
| | | mpUpdate() |
| | | mpUpdate(); |
| | | // #endif |
| | | }) |
| | | }); |
| | | |
| | | onShow(() => { |
| | | console.log("App Show") |
| | | }) |
| | | console.log("App Show"); |
| | | }); |
| | | |
| | | onHide(() => { |
| | | console.log("App Hide") |
| | | }) |
| | | |
| | | console.log("App Hide"); |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | /* 每个页面公共css */ |
| | | @import 'uview-plus/index.scss'; |
| | | @import '@/static/styles/common.scss'; |
| | | @import "uview-plus/index.scss"; |
| | | @import "@/static/styles/common.scss"; |
| | | </style> |