diff --git a/src/App.vue b/src/App.vue index 86eff1e..473e32b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,3 +4,8 @@ + diff --git a/src/components/AppBackground.vue b/src/components/AppBackground.vue index 3095318..52a94bf 100644 --- a/src/components/AppBackground.vue +++ b/src/components/AppBackground.vue @@ -10,56 +10,31 @@ const props = defineProps({ default: "#050b19", }, }); -const capsuleHeight = ref(0); -// onMounted(() => { -// const menuBtnInfo = uni.getMenuButtonBoundingClientRect(); -// capsuleHeight.value = menuBtnInfo.top + 50 - 9; -// }); diff --git a/src/components/Container.vue b/src/components/Container.vue index 5b3cfe4..9b3dd14 100644 --- a/src/components/Container.vue +++ b/src/components/Container.vue @@ -9,7 +9,7 @@ const props = defineProps({ }, bgType: { type: Number, - default: 0, + default: 2, }, onBack: { type: Function, @@ -25,18 +25,13 @@ const props = defineProps({ }, bgColor: { type: String, - default: "#050b19", + default: "#F5F5F5", }, }); const showHint = ref(false); const hintType = ref(0); -const capsuleHeight = ref(0); const isLoading = ref(false); - -onMounted(() => { - // const menuBtnInfo = uni.getMenuButtonBoundingClientRect(); - // capsuleHeight.value = menuBtnInfo.top - 9; -}); +const statusBarHeight = uni.getSystemInfoSync().statusBarHeight; const goBack = () => { uni.navigateBack(); @@ -44,13 +39,13 @@ const goBack = () => {