This commit is contained in:
yanran200730
2022-05-27 16:43:10 +08:00
parent 0e8e82f321
commit 8c9c82cd81
3 changed files with 5 additions and 1 deletions

View File

@@ -201,6 +201,7 @@
} else { } else {
this.$u.toast(res.msg) this.$u.toast(res.msg)
} }
uni.hideLoading()
}) })
} }
}) })

View File

@@ -215,7 +215,8 @@
this.$nextTick(() => { this.$nextTick(() => {
html2canvas(this.$refs.waterMarker, { html2canvas(this.$refs.waterMarker, {
allowTaint: true, allowTaint: true,
useCORS: true useCORS: true,
dpi: 300
}).then((canvas) => { }).then((canvas) => {
let dataURL = canvas.toDataURL('image/png') let dataURL = canvas.toDataURL('image/png')
const file = this.dataURLtoFile(dataURL, 'photo.png') const file = this.dataURLtoFile(dataURL, 'photo.png')

View File

@@ -169,6 +169,8 @@
} else { } else {
this.$u.toast(res.msg) this.$u.toast(res.msg)
} }
uni.hideLoading()
}) })
} }
}) })