From 06153f732cff010def03fdbf111b061b5f3347f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=20=E8=8C=83?= Date: Wed, 22 Sep 2021 10:32:55 +0800 Subject: [PATCH] =?UTF-8?q?pdf=E9=A2=84=E8=A7=88=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sunshine_levy/src/views/pdf/pdf.vue | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue b/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue index 3f51376..2918dcd 100644 --- a/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue +++ b/FrontCode2/sunshine_levy/src/views/pdf/pdf.vue @@ -7,7 +7,7 @@ :loading="isloading" >下载到手机 -
+
{ + onSuccess: (result) => { console.log("pdf.vue页面请求pdf文件:", result); if (result.data && result.data.success == true) { console.log("result.data.data:", result.data.data); this.apidata = result.data.data; - this.pic_width = "94%"; + this.pic_width = "100%"; this.pic_height = "100%"; this.isloading = false; } }, - onFail: err => { + onFail: (err) => { console.log("用户无数据,不展示"); - } + }, }); }, saveImages() { @@ -71,10 +71,10 @@ export default { ZWJSBridge.saveImage({ url: this.apidata.pdf, }) - .then(result => { + .then((result) => { console.log("saveImage()成功:" + JSON.stringify(result)); }) - .catch(error => { + .catch((error) => { console.log("saveImage()失败:" + JSON.stringify(result)); console.log(error); }); @@ -89,12 +89,12 @@ export default { .then((result) => { console.log("测试新开窗口():" + result); }) - .catch(error => { + .catch((error) => { console.log(error); }); }); - } - } + }, + }, };