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> <script>
export default { export default {
onLaunch: function () { onLaunch: function () {
console.log('App Launch') console.log("App Launch");
}, },
onShow: function () { onShow: function () {
console.log('App Show') console.log("App Show");
}, },
onHide: function () { onHide: function () {
console.log('App Hide') console.log("App Hide");
}, },
} };
</script> </script>
<style> <style>

View File

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