Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
99afed68
Commit
99afed68
authored
Feb 10, 2023
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
水印增加银盾保经
parent
70fff34b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/assets/pdfjs/web/viewer.js
+2
-1
No files found.
src/assets/pdfjs/web/viewer.js
View file @
99afed68
...
...
@@ -12555,7 +12555,8 @@ var PDFPageView = /*#__PURE__*/function () {
if
(
isNeedCover
==
'true'
){
var
cover
=
document
.
createElement
(
'div'
);
cover
.
className
=
"cover"
;
cover
.
innerText
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
name
;
//这里就是水印内容,如果要按照不同的文件显示不同的水印,可参考pdf文件路径的传值方式,在viewer.jsp中head部位接收后台传值并在这里使用
var
html
=
`<div>银盾保经</div><div>
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
name
}
<div>`
;
cover
.
innerHTML
=
html
;
//这里就是水印内容,如果要按照不同的文件显示不同的水印,可参考pdf文件路径的传值方式,在viewer.jsp中head部位接收后台传值并在这里使用
if
(
this
.
annotationLayer
)
{
// annotationLayer needs to stay on top
div
.
insertBefore
(
textLayerDiv
,
this
.
annotationLayer
.
div
);
...
...
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