This commit is contained in:
Aiden 2024-10-09 15:43:03 +08:00
parent 6416bcf4b9
commit 597c6c6139
2 changed files with 10 additions and 5 deletions

View File

@ -1,15 +1,15 @@
<script>
export default {
onLaunch: function () {
console.log('App Launch')
console.log("App Launch");
},
onShow: function () {
console.log('App Show')
console.log("App Show");
},
onHide: function () {
console.log('App Hide')
console.log("App Hide");
},
}
};
</script>
<style>

View File

@ -42,11 +42,16 @@ const backhandle = () => {
if (pages.length === 1) return;
uni.navigateBack();
};
const root = document.documentElement;
root.style.setProperty(
"--statusBarHeight",
`${plus.navigator.getStatusbarHeight()}px`
);
</script>
<style lang="scss" scoped>
.status_bar {
height: var(--status-bar-height);
margin-top: var(--statusBarHeight);
}
@mixin flex($direction: row) {
/* #ifndef APP-NVUE */