Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
f2a11095
Commit
f2a11095
authored
Oct 11, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5e62647c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mySJModule.vue
src/pages/financial/components/mySJModule.vue
+4
-4
No files found.
src/pages/financial/components/mySJModule.vue
View file @
f2a11095
...
...
@@ -125,14 +125,14 @@
<
template
>
<div
id=
"proToCol"
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>
成都市锦江区甲鹤外语培训学校
</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"
>
<button
class=
"hollowFixedBtn"
@
click=
"sharedialog=false"
>
关闭
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"download()"
>
下载
</button>
...
...
@@ -334,9 +334,9 @@
let
a
=
document
.
createElement
(
"a"
);
html2canvas
(
canvasID
,
{
useCORS
:
true
,
//【重要】开启跨域配置
allowTaint
:
true
,
//允许跨域图片
allowTaint
:
false
,
//允许污染
backgroundColor
:
"#FFFFFF"
,
scale
:
1
.3
,
scale
:
1
,
taintTest
:
false
//是否在渲染前测试图片
}).
then
(
canvas
=>
{
let
dom
=
document
.
body
.
appendChild
(
canvas
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment