This commit is contained in:
sexygoat
2026-03-31 18:41:52 +08:00
commit 3c62cc1cd1
527 changed files with 96725 additions and 0 deletions

41
src/App.vue Normal file
View File

@@ -0,0 +1,41 @@
<script setup lang="ts">
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app';
import { useAppStore } from '@/store';
// #ifdef MP-WEIXIN
import { mpUpdate } from '@/utils/index';
// #endif
const appStore = useAppStore();
onLaunch(() => {
console.log('App Launch');
// 初始化系统信息
appStore.initSystemInfo();
// #ifdef H5
// 隐藏加载动画
setTimeout(() => {
document.body.classList.add('app-loaded');
}, 100);
// #endif
// #ifdef MP-WEIXIN
mpUpdate();
// #endif
});
onShow(() => {
console.log('App Show');
});
onHide(() => {
console.log('App Hide');
});
</script>
<style lang="scss">
/* 每个页面公共css */
@import 'uview-plus/index.scss';
@import '@/static/styles/common.scss';
</style>