41 lines
667 B
Vue
41 lines
667 B
Vue
<script setup>
|
|
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
|
|
|
|
onLaunch(async () => {
|
|
console.log("App Launch");
|
|
});
|
|
|
|
onShow(() => {
|
|
console.log("App Show");
|
|
});
|
|
|
|
onHide(() => {
|
|
console.log("App Hide");
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import "@/static/fonts/iconfont.css";
|
|
@import "@/static/scss/index.scss";
|
|
|
|
/* 添加全局样式 */
|
|
page,
|
|
body,
|
|
#app {
|
|
font-family: PingFang SC, PingFang SC;
|
|
background-color: #f5f7fa;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
}
|
|
|
|
/*每个页面公共css */
|
|
::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: znicons;
|
|
src: url("https://oss.nianxx.cn/mp/static/fonts/znicons.ttf");
|
|
}
|
|
</style>
|