更换贺报下载的方法23

This commit is contained in:
xuxingjun
2024-12-30 15:24:11 +08:00
parent d336d52d0b
commit f1f9fad596
2 changed files with 15 additions and 11 deletions

View File

@@ -193,7 +193,7 @@ function appCallBack() {}
document.documentElement.appendChild(WVJBIframe) document.documentElement.appendChild(WVJBIframe)
setTimeout(function() { setTimeout(function() {
document.documentElement.removeChild(WVJBIframe) document.documentElement.removeChild(WVJBIframe)
}, 0) }, 1000)
} }
} }
@@ -248,6 +248,6 @@ function appCallBack() {}
//notation: js file can only use this kind of comments //notation: js file can only use this kind of comments
//since comments will cause error when use in webview.loadurl, //since comments will cause error when use in webview.loadurl,
//comments will be remove by java use regexp //comments will be remove by java use regexp
setTimeout(function() { // setTimeout(function() {
document.documentElement.removeChild(WVJBIframe) // document.documentElement.removeChild(WVJBIframe)
}, 100) // }, 3000)

View File

@@ -111,10 +111,9 @@ export default {
}, 'image/png') }, 'image/png')
}) })
EWebBridge.webCallAppInJs('bridge', { setTimeout(() => {
flag: '', document.documentElement.removeChild(this.$refs.xingdownLoad)
extra: {} }, 3000);
})
}, },
// 生成图片并下载 // 生成图片并下载
domToImage() { domToImage() {
@@ -204,9 +203,14 @@ export default {
name: '', name: '',
url: '' url: ''
}); });
// setTimeout(() => {
// document.documentElement.removeChild(WVJBIframe)
// }, 2500);
setTimeout(() => { setTimeout(() => {
this.$refs.xingdownLoad.innerHTML = ''; // 清空内容 this.close()
}, 2500); }, 3000);
return false return false
}, 500); }, 500);
}, },
@@ -230,7 +234,7 @@ export default {
}) })
}, },
close() { close() {
this.$refs.xingdownLoad.innerHTML = ''; // 清空内容 // this.$refs.xingdownLoad.innerHTML = ''; // 清空内容
setTimeout(() => { setTimeout(() => {
this.$emit('child-colse', '1') this.$emit('child-colse', '1')
}, 200); }, 200);