Commit f2a11095 authored by Mac's avatar Mac

1

parent 5e62647c
...@@ -125,14 +125,14 @@ ...@@ -125,14 +125,14 @@
<template> <template>
<div id="proToCol" <div id="proToCol"
style="display: flex;flex-direction: column;align-items: center; padding: 15px;"> style="display: flex;flex-direction: column;align-items: center; padding: 15px;">
<img :src="imgurl" alt="" style="width:100%;" ref='imgcode'/> <img :src="imgurl" alt="" style="width:100%;" ref='imgcode' crossOrigin = "anonymous"/>
<div style="margin-top: 25px;width: 100%; display: flex; flex-direction: column; align-items: center;"> <div style="margin-top: 25px;width: 100%; display: flex; flex-direction: column; align-items: center;">
<div>成都市锦江区甲鹤外语培训学校</div> <div>成都市锦江区甲鹤外语培训学校</div>
<div>发送给您了一个财务收据</div> <div>发送给您了一个财务收据</div>
<div>请长按识别二维码查收</div> <div>请长按识别二维码查收</div>
</div> </div>
</div> </div>
<div style="width: 100%;text-align: center;">码:{{data && data.ClaimCode?data.ClaimCode:''}}</div> <div style="width: 100%;text-align: center;">码:{{data && data.ClaimCode?data.ClaimCode:''}}</div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="sharedialog=false">关闭</button> <button class="hollowFixedBtn" @click="sharedialog=false">关闭</button>
<button class="normalBtn" type="primary" @click="download()">下载</button> <button class="normalBtn" type="primary" @click="download()">下载</button>
...@@ -334,9 +334,9 @@ ...@@ -334,9 +334,9 @@
let a = document.createElement("a"); let a = document.createElement("a");
html2canvas(canvasID, { html2canvas(canvasID, {
useCORS: true, //【重要】开启跨域配置 useCORS: true, //【重要】开启跨域配置
allowTaint: true, //允许跨域图片 allowTaint: false, //允许污染
backgroundColor: "#FFFFFF", backgroundColor: "#FFFFFF",
scale: 1.3, scale: 1,
taintTest: false //是否在渲染前测试图片 taintTest: false //是否在渲染前测试图片
}).then(canvas => { }).then(canvas => {
let dom = document.body.appendChild(canvas); let dom = document.body.appendChild(canvas);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment