更换贺报下载的方法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)
setTimeout(function() {
document.documentElement.removeChild(WVJBIframe)
}, 0)
}, 1000)
}
}
@@ -248,6 +248,6 @@ function appCallBack() {}
//notation: js file can only use this kind of comments
//since comments will cause error when use in webview.loadurl,
//comments will be remove by java use regexp
setTimeout(function() {
document.documentElement.removeChild(WVJBIframe)
}, 100)
// setTimeout(function() {
// document.documentElement.removeChild(WVJBIframe)
// }, 3000)

View File

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