Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7da29c91
authored
Jan 09, 2025
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换qrcode
parent
77610e9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
public/static/js/sq.js
+6
-4
No files found.
public/static/js/sq.js
View file @
7da29c91
...
@@ -6,10 +6,12 @@ function replace_logo(){
...
@@ -6,10 +6,12 @@ function replace_logo(){
console
.
log
(
"Replace logo"
);
console
.
log
(
"Replace logo"
);
}
}
function
replaceQrCode
(){
function
replaceQrCode
(){
var
element
=
document
.
querySelector
(
'.store-qrcode'
);
var
elements
=
document
.
querySelectorAll
(
'.store-qrcode'
);
if
(
element
)
{
// 遍历这些元素
elements
.
forEach
(
function
(
element
)
{
// 将每个元素的 HTML 内容替换为空字符串
element
.
innerHTML
=
''
;
element
.
innerHTML
=
''
;
}
}
);
}
}
function
replaceKeywords
(
keyword
,
replacement
)
{
function
replaceKeywords
(
keyword
,
replacement
)
{
// 获取整个文档的body元素
// 获取整个文档的body元素
...
@@ -38,7 +40,7 @@ function traverseNodes(node, keyword, replacement) {
...
@@ -38,7 +40,7 @@ function traverseNodes(node, keyword, replacement) {
}
}
}
}
window
.
onload
=
function
()
{
window
.
onload
=
function
()
{
//
replaceQrCode();
replaceQrCode
();
replaceKeywords
(
'新橙科技'
,
'同知堂科技'
);
replaceKeywords
(
'新橙科技'
,
'同知堂科技'
);
replaceKeywords
(
'粤ICP备15024370号-7'
,
'苏ICP备2023017636号-1'
);
replaceKeywords
(
'粤ICP备15024370号-7'
,
'苏ICP备2023017636号-1'
);
};
};
...
...
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