|
@@ -84,8 +84,8 @@ export default defineComponent({
|
|
|
const name: string = this.$route.query.name as string;
|
|
|
let src = window.location.origin + `/pdf/${name}.pdf`;
|
|
|
tt.miniProgram.navigateTo({
|
|
|
- url:'/otherPages/download/index?src='+src+'&name='+name
|
|
|
- })
|
|
|
+ url: '/otherPages/download/index?src=' + src + '&name=' + name,
|
|
|
+ });
|
|
|
},
|
|
|
send() {
|
|
|
let reg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
|
|
@@ -96,7 +96,7 @@ export default defineComponent({
|
|
|
dictCode: Number(this.$route.query.code),
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- this.sendEamilVisible =false
|
|
|
+ this.sendEamilVisible = false;
|
|
|
Toast.success('成功发送');
|
|
|
});
|
|
|
} else {
|
|
@@ -112,6 +112,7 @@ export default defineComponent({
|
|
|
for (let index = 1; index <= pdfDoc.numPages; index++) {
|
|
|
that.showPdfs(pdfDoc, index);
|
|
|
}
|
|
|
+ Toast.clear()
|
|
|
});
|
|
|
},
|
|
|
showPdfs(pdfDoc: PDFDocumentProxy, pageNum: number) {
|
|
@@ -151,6 +152,11 @@ export default defineComponent({
|
|
|
const token: string = this.$route.query.token as string;
|
|
|
window.localStorage.setItem('token', token);
|
|
|
const name: string = this.$route.query.name as string;
|
|
|
+ Toast.loading({
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: false,
|
|
|
+ overlay: true,
|
|
|
+ });
|
|
|
this.getPdf(`./pdf/${name}.pdf`);
|
|
|
},
|
|
|
});
|