fix
This commit is contained in:
parent
6416bcf4b9
commit
597c6c6139
@ -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>
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user