Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
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
448820c9
authored
Dec 26, 2025
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
滚动公告
parent
cdef6f05
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
public/js/public_notice.js
public/js/public_notice.js
View file @
448820c9
...
...
@@ -18,11 +18,17 @@ layui.use([], function () {
if
(
$
(
".layui-layout.layui-layout-admin"
).
hasClass
(
"admin-nav-mini"
))
{
left
=
240
}
let
right1
=
300
let
right2
=
200
if
(
window
.
location
.
origin
.
indexOf
(
"wms."
)
!=-
1
||
window
.
location
.
origin
.
indexOf
(
"order."
)
!=-
1
){
right1
=
450
right2
=
365
}
const
css
=
`
.nrtx{line-height:38px;}
.noticeitemxo{margin-right:30px;cursor: pointer;}
.fbggank{position:fixed;top:0;right:
365
px;z-index:9999;top:9px;}
#ann_box{position:fixed;top:0;left:
${
left
}
px;right:
450
px;height:50px;line-height:50px;background:rgba(0,0,0,0);color:#333;overflow:hidden;z-index:9999;font-size:14px;}
.fbggank{position:fixed;top:0;right:
${
right2
}
px;z-index:9999;top:9px;}
#ann_box{position:fixed;top:0;left:
${
left
}
px;right:
${
right1
}
px;height:50px;line-height:50px;background:rgba(0,0,0,0);color:#333;overflow:hidden;z-index:9999;font-size:14px;}
#ann_txt{white-space:nowrap;display:inline-block;padding-left:100%;animation:ann_scroll 200s linear infinite;}
@keyframes ann_scroll{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}`
;
const
html
=
`<div id="ann_box"><div id="ann_txt"></div></div><a class="layui-btn layui-btn-sm fbggank" href="http://message.ichunt.net/manage/businessNotice" target="_blank">发布公告</a>`
;
...
...
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