2025-08-10 16:44:02 +08:00
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
|
|
|
|
|
|
import { useShareStore } from "@/stores/shareStore";
|
|
|
|
|
|
|
|
|
|
|
|
const stores = useShareStore();
|
|
|
|
|
|
|
|
|
|
|
|
onLaunch(() => {
|
|
|
|
|
|
console.log("App Launch");
|
|
|
|
|
|
stores.initWxConfig();
|
|
|
|
|
|
});
|
2025-08-20 13:30:34 +08:00
|
|
|
|
onShow(() => {});
|
2025-08-10 16:44:02 +08:00
|
|
|
|
onHide(() => {
|
|
|
|
|
|
console.log("App Hide");
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
|
|
|
|
|
@import "@/uni_modules/uview-plus/index.scss";
|
2025-08-18 09:49:28 +08:00
|
|
|
|
|
2025-08-10 16:44:02 +08:00
|
|
|
|
#app,
|
|
|
|
|
|
uni-app,
|
|
|
|
|
|
uni-page,
|
|
|
|
|
|
uni-page-wrapper {
|
|
|
|
|
|
height: calc(100vh - 131rpx);
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|