<script setup>
import {
onMounted,
ref
} from 'vue';
let url = ref('');
onMounted(() => {
const windowInfo = wx.getWindowInfo();
let safe_left = 0; //屏幕左边安全距离
let safe_bottom = 0; //屏幕底部安全距离
safe_left = ((windowInfo.safeArea.left / windowInfo.screenWidth) * 750);
safe_bottom = (6 + (windowInfo.screenHeight - windowInfo.safeArea.bottom));
url.value = 'https://saas.carned.cn/Carned-Car2/static/index.html?safe_left=' + safe_left +
'px&safe_bottom=' + safe_bottom + 'px';
console.log(url.value)
})
</script>