忽略 unpackage 目录
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="top-bg-content" :style="{marginTop: marginContentTop + 'px'}">
|
||||
<view class="top-bg-content">
|
||||
<view class="top-item1">
|
||||
<view class="top-item1-left">
|
||||
<image src="/static/hello_xiaomu_icon@2x.png"></image>
|
||||
@@ -13,20 +13,6 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
|
||||
const statusBarHeight = ref(20);
|
||||
const marginContentTop = ref(44)
|
||||
|
||||
onLoad(() => {
|
||||
uni.getSystemInfo({
|
||||
success: (res) => {
|
||||
statusBarHeight.value = res.statusBarHeight || 20;
|
||||
marginContentTop.value += statusBarHeight.value;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user