This commit is contained in:
路 范
2021-09-18 17:16:05 +08:00
21 changed files with 234 additions and 59 deletions

View File

@@ -50,7 +50,7 @@ export default {
id: "C655515B-FD91-48F2-BD79-EAABAFB7077C",
},
appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: (result) => {
onSuccess: result => {
console.log("pdf.vue页面请求pdf文件:", result);
if (result.data && result.data.success == true) {
console.log("result.data.data:", result.data.data);
@@ -60,9 +60,9 @@ export default {
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);
});
});
},
},
}
}
};
</script>
<style lang="less" scoped>
@@ -103,6 +103,7 @@ export default {
line-height: 200px;
font-size: 30px;
margin-bottom: 20px;
height: 200px;
}
.bottom {
text-align: center;