|
@@ -12,10 +12,13 @@ const menu2Items = [
|
|
|
]
|
|
]
|
|
|
const progress = ref(1)
|
|
const progress = ref(1)
|
|
|
const webviewSrc = ref('')
|
|
const webviewSrc = ref('')
|
|
|
-const isLoading = ref(true)
|
|
|
|
|
|
|
+var isLoading = ref(true)
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
webviewSrc.value = router.query().src
|
|
webviewSrc.value = router.query().src
|
|
|
progress.value = router.query().progress
|
|
progress.value = router.query().progress
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ isLoading.value = false
|
|
|
|
|
+ }, 20000) // 6000毫秒 = 6秒
|
|
|
})
|
|
})
|
|
|
function handleMessage(e) {
|
|
function handleMessage(e) {
|
|
|
var pages = getCurrentPages();
|
|
var pages = getCurrentPages();
|
|
@@ -24,7 +27,6 @@ function handleMessage(e) {
|
|
|
}
|
|
}
|
|
|
function handleLoad() {
|
|
function handleLoad() {
|
|
|
console.log('handleLoad')
|
|
console.log('handleLoad')
|
|
|
- isLoading.value = false
|
|
|
|
|
}
|
|
}
|
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
var pages = getCurrentPages();
|
|
var pages = getCurrentPages();
|
|
@@ -33,8 +35,9 @@ onShow(() => {
|
|
|
})
|
|
})
|
|
|
</script>
|
|
</script>
|
|
|
<template>
|
|
<template>
|
|
|
- <Loading v-show="isLoading" />
|
|
|
|
|
|
|
+ <!-- <Loading v-show="isLoading"/> -->
|
|
|
<web-view :src="webviewSrc + '?' + Math.random()" class="w-full h-full" @message="handleMessage"
|
|
<web-view :src="webviewSrc + '?' + Math.random()" class="w-full h-full" @message="handleMessage"
|
|
|
@load="handleLoad"></web-view>
|
|
@load="handleLoad"></web-view>
|
|
|
</template>
|
|
</template>
|
|
|
-<style lang="less" scoped></style>
|
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
|
+</style>
|