Compare commits

...

47 Commits

Author SHA1 Message Date
xuxingjun
c77447537d 更换贺报下载的方法37 2025-01-02 10:36:12 +08:00
xuxingjun
3845ebcf06 更换贺报下载的方法36 2025-01-02 10:33:44 +08:00
xuxingjun
b800a31588 更换贺报下载的方法36 2025-01-02 10:18:17 +08:00
xuxingjun
b2bec98056 更换贺报下载的方法35 2025-01-02 09:33:08 +08:00
xuxingjun
60471f2eec 更换贺报下载的方法34 2024-12-31 17:29:00 +08:00
xuxingjun
dfee590fab 更换贺报下载的方法33 2024-12-31 16:15:07 +08:00
xuxingjun
0aebcc2276 更换贺报下载的方法32 2024-12-31 15:20:56 +08:00
xuxingjun
7973e6b342 更换贺报下载的方法31 2024-12-31 14:38:03 +08:00
xuxingjun
92cb1c466a 更换贺报下载的方法30 2024-12-31 13:58:49 +08:00
xuxingjun
2adaa0aa17 更换贺报下载的方法29 2024-12-31 11:15:02 +08:00
xuxingjun
af8395ca86 更换贺报下载的方法28 2024-12-31 10:26:11 +08:00
xuxingjun
b0af7de83c 更换贺报下载的方法27 2024-12-30 17:45:04 +08:00
xuxingjun
4fc151fb3b 更换贺报下载的方法26 2024-12-30 17:28:33 +08:00
xuxingjun
e82d9823be 更换贺报下载的方法25 2024-12-30 16:18:44 +08:00
xuxingjun
a3a1b50e1a 更换贺报下载的方法24 2024-12-30 15:35:15 +08:00
xuxingjun
f1f9fad596 更换贺报下载的方法23 2024-12-30 15:24:11 +08:00
xuxingjun
d336d52d0b 更换贺报下载的方法22 2024-12-30 14:41:46 +08:00
xuxingjun
f4a3ac8e18 更换贺报下载的方法21 2024-12-30 09:17:35 +08:00
xuxingjun
ae74bca743 更换贺报下载的方法20 2024-12-26 17:36:59 +08:00
xuxingjun
ad421be13c 更换贺报下载的方法19 2024-12-26 17:16:08 +08:00
xuxingjun
9403667ece 更换贺报下载的方法18 2024-12-26 16:35:04 +08:00
xuxingjun
f0e264b016 更换贺报下载的方法18 2024-12-26 16:26:50 +08:00
xuxingjun
607117ebef 更换贺报下载的方法17 2024-12-26 16:07:41 +08:00
xuxingjun
1bece27866 更换贺报下载的方法16 2024-12-26 15:24:29 +08:00
xuxingjun
13739a7530 更换贺报下载的方法15 2024-12-26 15:05:28 +08:00
xuxingjun
77cc861e52 更换贺报下载的方法14 2024-12-26 14:55:15 +08:00
xuxingjun
bc34e0591d 更换贺报下载的方法13 2024-12-26 09:49:44 +08:00
xuxingjun
9e381e7510 更换贺报下载的方法12 2024-12-26 09:29:01 +08:00
xuxingjun
0d835a55b3 更换贺报下载的方法11 2024-12-25 18:19:10 +08:00
xuxingjun
24cc1190fc 更换贺报下载的方法11 2024-12-25 18:15:45 +08:00
xuxingjun
4b7ab5acfc 更换贺报下载的方法10 2024-12-25 18:00:12 +08:00
xuxingjun
30f42c3a3c 更换贺报下载的方法9 2024-12-25 17:45:51 +08:00
xuxingjun
0f44179953 更换贺报下载的方法8 2024-12-25 17:29:48 +08:00
xuxingjun
5ce940a3d3 更换贺报下载的方法8 2024-12-25 17:25:40 +08:00
xuxingjun
6a652b5603 更换贺报下载的方法7 2024-12-25 16:42:49 +08:00
xuxingjun
af8ca16185 更换贺报下载的方法6 2024-12-25 16:11:23 +08:00
xuxingjun
c265166e83 更换贺报下载的方法5 2024-12-25 15:33:00 +08:00
xuxingjun
cc9d93b3ae 更换贺报下载的方法4 2024-12-25 14:09:02 +08:00
xuxingjun
816afd12e2 更换贺报下载的方法3 2024-12-25 10:36:35 +08:00
xuxingjun
a36dd38fad 更换贺报下载的方法2 2024-12-25 10:10:46 +08:00
xuxingjun
ba7ee05264 更换贺报下载的方法 2024-12-25 09:31:26 +08:00
xuxingjun
ee4be9e6f4 优化贺报下载与分享6 2024-12-20 17:37:29 +08:00
xuxingjun
7437aa2759 优化贺报下载与分享5 2024-12-20 15:26:11 +08:00
xuxingjun
0e7bd792c7 优化贺报下载与分享4 2024-12-18 18:02:05 +08:00
xuxingjun
001541e38e 优化贺报下载与分享 2024-12-18 15:32:45 +08:00
XING\23806
373cefdfda 优化贺报下载 2024-12-16 13:55:23 +08:00
XING\23806
7b4a1cd07b 下载贺报添加防抖 2024-12-16 11:59:30 +08:00
4 changed files with 30 additions and 7 deletions

5
package-lock.json generated
View File

@@ -6896,6 +6896,11 @@
}
}
},
"file-saver": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz",
"integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA=="
},
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",

View File

@@ -26,6 +26,7 @@
"crypto-js": "^4.1.1",
"echarts": "^4.2.1",
"fastclick": "^1.0.6",
"file-saver": "^2.0.5",
"html2canvas": "^1.4.1",
"js-base64": "^2.5.1",
"js-md5": "^0.7.3",

View File

@@ -255,11 +255,12 @@
@cancel="cancelChange"
/>
</van-popup>
<div class="hebao" v-if="hebaoShow">
<!-- <div class="hebao" > -->
<generateImg
v-if="hebaoShow"
@child-colse="closeHebao"
></generateImg>
</div>
<!-- </div> -->
<van-popup v-model="xiangqingShow" position="right" :style="{ width: '100%', height: '100%' }">
<policyDetails
v-if="xiangqingShow"

View File

@@ -1,7 +1,7 @@
<template>
<div>
<div class="contents">
<div id="capture" ref="generateImg" style="height: 100vh; overflow: hidden">
<img src="@/assets/images/list_img.png" alt="" />
<img src="@/assets/images/list_img.png" crossorigin="anonymous" alt="" />
<div class="box">
<div class="title">
<p class="organ">{{ orderList.manageComNameFull }}</p>
@@ -10,7 +10,10 @@
<div class="pName">{{ orderList.productNameFull }}</div>
<div class="type">{{ orderList.outOrderType == 'accept' ? '承保规保' : '预收规保' }}</div>
<div class="yuan">{{ orderList.prem }}<span style="color: #333333"></span></div>
<div class="time">{{ orderList.outOrderType == 'accept' ? '承保时间:' : '预收时间:' }}{{ orderList.appntDate }}</div>
<div class="time">{{ orderList.outOrderType == 'accept' ? '承保时间:' : '预收时间:' }}
<span v-if="orderList.outOrderType == 'accept'">{{ orderList.signDate }}</span>
<span v-if="orderList.outOrderType != 'accept'">{{ orderList.appntDate }}</span>
</div>
</div>
</div>
<div class="flex justify-content-s bottom-btn border-color">
@@ -53,6 +56,7 @@ export default {
methods: {
getList() {
this.orderList = JSON.parse(localStorage.getItem('orderList'))
console.log('页面数据',this.orderList);
},
// 将 Blob转base64
blobToBase64(blob) {
@@ -72,7 +76,9 @@ export default {
height: this.$refs.generateImg.offsetHeight,
backgroundColor: '#fff',
scale: 2,
dpi: 300
dpi: 300,
useCORS: true,
allowTaint: true,
}).then((canvas) => {
// 将 canvas 转换为 Blob
canvas.toBlob((blob) => {
@@ -98,7 +104,9 @@ export default {
height: domElement.offsetHeight,
backgroundColor: '#fff',
scale: 1,
dpi: 300
dpi: 300,
useCORS: true,
allowTaint: true,
}).then((canvas) => {
// 转换canvas为PNG图片并压缩
canvas.toBlob(
@@ -148,6 +156,14 @@ export default {
</script>
<style lang="scss" scoped>
.contents {
width: 100%;
height: 100vh;
background-color: #fff;
position: fixed;
top: 0;
left: 0;
}
img {
height: 100%;
width: 100%;