Commit 037486e4 authored by chenqikuai's avatar chenqikuai

fix

parent c60acfd1
...@@ -217,6 +217,7 @@ const hidden = (v: boolean) => { ...@@ -217,6 +217,7 @@ const hidden = (v: boolean) => {
const handleClickNagigate = () => { const handleClickNagigate = () => {
console.log(`${props.longitude},${props.latitude}`, 'show lola');
new jsBridge().bridge_navigate(`${props.longitude},${props.latitude}`, () => { new jsBridge().bridge_navigate(`${props.longitude},${props.latitude}`, () => {
show.value = false; show.value = false;
}) })
......
...@@ -40,7 +40,16 @@ ...@@ -40,7 +40,16 @@
v-if="occupyPosition" v-if="occupyPosition"
></div> ></div>
</div> </div>
<div v-else> <div v-else class="navbar w-full">
<div
class="h-full theBar flex items-end px-5 justify-center relative"
style="background:rgb(237,237,237); "
v-bind="$attrs"
:style="{
'height': heightOfNotch + 'px',
}"
v-if="isBangs"
></div>
<div :style="{ <div :style="{
'height': heightOfNotch + 'px' 'height': heightOfNotch + 'px'
}" v-if="isBangs"></div> }" v-if="isBangs"></div>
...@@ -89,7 +98,7 @@ export default defineComponent({ ...@@ -89,7 +98,7 @@ export default defineComponent({
default: false default: false
} }
}, },
mounted(){ mounted() {
console.log(document.documentElement.clientWidth, window.screen.width, 'show width'); console.log(document.documentElement.clientWidth, window.screen.width, 'show width');
console.log(window.devicePixelRatio, 'show window.devicePixelRatio'); console.log(window.devicePixelRatio, 'show window.devicePixelRatio');
}, },
...@@ -99,7 +108,7 @@ export default defineComponent({ ...@@ -99,7 +108,7 @@ export default defineComponent({
}, },
heightOfNotch() { // 刘海屏的刘海高度 单位px heightOfNotch() { // 刘海屏的刘海高度 单位px
return notchHeight.value / window.devicePixelRatio; return notchHeight.value / window.devicePixelRatio;
// return 103; return 103;
} }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment