Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-resume
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c943811b
authored
Oct 14, 2025
by
钟乾明
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u: 水印调淡
parent
e0bc5a5c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
src/config/test.js
src/js/index.js
src/js/lib/app.js
src/js/lib/wmSVG.js
src/config/test.js
View file @
c943811b
import
common
from
'./common'
;
const
testToken
=
'yzj_7f8dcbbe6ac747367a4c2ace97e5f92c'
// const config = {
// product: false,
// ssoToken: 'token',
...
...
@@ -62,7 +62,7 @@ const config = {
loginuserid
:
'46000011'
,
appkey
:
'd504275e'
,
uid
:
'hqhuang@cndrealty.com'
,
token
:
'yzj_
c4502b75af9870b2db5a87ac4b05c3e9
'
,
token
:
'yzj_
7f8dcbbe6ac747367a4c2ace97e5f92c
'
,
baseUrl
:
'https://staging.jffctest.com/'
,
};
...
...
src/js/index.js
View file @
c943811b
...
...
@@ -75,7 +75,8 @@ app.ready(() => {
$mas
.
token
=
token
;
mount
();
//todo 开发环境调试添加水印
setWaterMark
(
`黄华强hqhuang@cndrealty.com`
,
''
);
// setWaterMark(`黄华强hqhuang@cndrealty.com`, '');
createWatermark
({
content
:
`黄华强hqhuang@cndrealty.com`
});
// createWatermark({ content: '黄华强hqhuang@cndrealty.com' });
});
// 取消延迟响应
...
...
src/js/lib/app.js
View file @
c943811b
...
...
@@ -35,7 +35,7 @@ const app = {
doReady(fn)
}, false)
*/
qing
.
ready
(
function
()
{
window
.
qing
&&
qing
.
ready
(
function
()
{
doReady
(
fn
)
})
}
else
{
...
...
src/js/lib/wmSVG.js
View file @
c943811b
...
...
@@ -4,12 +4,13 @@ const createWatermark = ({
container
=
document
.
body
,
width
=
"240px"
,
height
=
"150px"
,
fontSize
=
"1
4
px"
,
fontSize
=
"1
3
px"
,
opacity
=
"0.4"
,
rotate
=
-
14
,
color
=
"#
999
"
,
color
=
"#
d8d6d6
"
,
zIndex
=
9999
,
})
=>
{
console
.
log
(
'话水印>>'
);
// 创建水印svg
const
svgStr
=
`<svg xmlns="http://www.w3.org/2000/svg" width="
${
width
}
" height="
${
height
}
">
<text x="50%" y="50%" dy="12px"
...
...
@@ -19,9 +20,8 @@ const createWatermark = ({
stroke-opacity="
${
opacity
}
"
fill="none"
transform="rotate(
${
rotate
}
,
${
parseFloat
(
width
)
/
2
}
,
${
parseFloat
(
height
)
/
2
}
)"
style="font-size:
${
fontSize
}
;">
parseFloat
(
height
)
/
2
}
)"
style="font-size:
${
fontSize
}
;letter-spacing: 1px;">
${
content
}
</text>
</svg>`
;
...
...
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