|
@@ -17,14 +17,6 @@ import { useCountStore } from '@/store/count'
|
|
|
|
|
|
|
|
const countStore = useCountStore()
|
|
const countStore = useCountStore()
|
|
|
const title = ref('Hello')
|
|
const title = ref('Hello')
|
|
|
-
|
|
|
|
|
-// 获取屏幕边界到安全区域距离
|
|
|
|
|
-const { safeAreaInsets } = uni.getSystemInfoSync()
|
|
|
|
|
-console.log(safeAreaInsets)
|
|
|
|
|
-const rect = {
|
|
|
|
|
- top: `${safeAreaInsets.top}px`,
|
|
|
|
|
- bottom: `${safeAreaInsets.bottom}px`,
|
|
|
|
|
-}
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
<style>
|
|
@@ -33,7 +25,6 @@ const rect = {
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
- padding-top: v-bind('rect.top');
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
.logo {
|