|
@@ -103,6 +103,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
created() {},
|
|
created() {},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
+ this.toastLoading(0, '生成中...', true);
|
|
|
// 二维码
|
|
// 二维码
|
|
|
this.creatQrCode();
|
|
this.creatQrCode();
|
|
|
getReportImg({ reportId: this.reportId }).then((res) => {
|
|
getReportImg({ reportId: this.reportId }).then((res) => {
|
|
@@ -113,7 +114,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- // this.toastLoading(0, '生成中...', true);
|
|
|
|
|
// 使用Promise.all确保所有图片加载完成
|
|
// 使用Promise.all确保所有图片加载完成
|
|
|
// const photos = this.reportTarget.photos;
|
|
// const photos = this.reportTarget.photos;
|
|
|
// const photoPromises = [];
|
|
// const photoPromises = [];
|
|
@@ -192,7 +192,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
htmlToCanvas() {
|
|
htmlToCanvas() {
|
|
|
html2canvas(this.$refs.shareContent, {
|
|
html2canvas(this.$refs.shareContent, {
|
|
|
- scale: 1,
|
|
|
|
|
|
|
+ scale: window.devicePixelRatio || 1,
|
|
|
useCORS: true,
|
|
useCORS: true,
|
|
|
allowTaint: false,
|
|
allowTaint: false,
|
|
|
backgroundColor: null,
|
|
backgroundColor: null,
|