22 lines
435 B
Vue
22 lines
435 B
Vue
<template>
|
|
<web-view class="yxg-webview" :src="h5Url"></web-view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { computed } from 'vue'
|
|
import { YXG_H5_BASE, YXG_H5_VERSION } from '@/util/yxgConfig.js'
|
|
|
|
const sys = uni.getSystemInfoSync()
|
|
const sbh = sys.statusBarHeight || 0
|
|
const h5Url = computed(
|
|
() => `${YXG_H5_BASE}?mp=1&v=${YXG_H5_VERSION}&sbh=${sbh}`,
|
|
)
|
|
</script>
|
|
|
|
<style scoped>
|
|
.yxg-webview {
|
|
width: 100%;
|
|
height: 100vh;
|
|
}
|
|
</style>
|