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
a69af574
authored
Dec 23, 2025
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
log
parent
80c850e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
14 deletions
public/js/Message/MessageList.js
public/js/public_notice.js
public/js/Message/MessageList.js
View file @
a69af574
...
...
@@ -223,13 +223,15 @@ layui.use(['form', 'table', 'laydate', 'layedit'], function () {
success
:
function
(
layero
,
dIndex
)
{
table
.
render
({
elem
:
'#logList'
,
url
:
'/
api/log/getCustomerUser
Logs'
,
url
:
'/
sync/get
Logs'
,
method
:
'GET'
,
size
:
'sm'
,
page
:
false
,
where
:
{
obj_type
:
1613
,
obj_id
:
data
.
id
obj_type
:
100
,
obj_id
:
data
.
business_notice_id
,
page
:
1
,
limit
:
1000000
,
},
cols
:
[[
{
type
:
'numbers'
,
title
:
'序号'
},
...
...
@@ -238,14 +240,14 @@ layui.use(['form', 'table', 'laydate', 'layedit'], function () {
{
field
:
'content'
,
title
:
'内容'
}
]],
limit
:
1000000
,
parseData
:
function
(
res
)
{
return
{
code
:
res
.
code
,
msg
:
res
.
msg
,
count
:
res
.
data
?
res
.
data
.
length
:
0
,
data
:
res
.
data
}
},
//
parseData: function (res) {
//
return {
//
code: res.code,
//
msg: res.msg,
//
count: res.data ? res.data.length : 0,
//
data: res.data
//
}
//
},
done
:
function
(
res
,
curr
,
count
)
{
}
...
...
public/js/public_notice.js
View file @
a69af574
...
...
@@ -20,7 +20,7 @@ layui.use([], function () {
const
css
=
`
.nrtx{line-height:38px;}
.noticeitemxo{margin-right:30px;cursor: pointer;}
#ann_box{position:fixed;top:0;left:
${
left
}
px;right:400px;height:50px;line-height:50px;background:rgba(
255,255,255,0
);color:#333;overflow:hidden;z-index:9999;font-size:14px;}
#ann_box{position:fixed;top:0;left:
${
left
}
px;right:400px;height:50px;line-height:50px;background:rgba(
0,0,0,0.1
);color:#333;overflow:hidden;z-index:9999;font-size:14px;}
#ann_txt{white-space:nowrap;display:inline-block;padding-left:100%;animation:ann_scroll 300s 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>`
;
...
...
@@ -80,6 +80,13 @@ layui.use([], function () {
node
.
style
.
animation
=
''
;
},
handle
:
function
()
{
$
(
'.layui-header .layui-icon-shrink-right'
).
closest
(
'.layui-nav-item'
).
on
(
'click'
,
function
()
{
setTimeout
(
function
(){
$
(
"#ann_box"
).
css
({
"left"
:
`
${
$
(
".layui-layout.layui-layout-admin"
).
hasClass
(
"admin-nav-mini"
)?
'240px'
:
'400px'
}
`
})
},
500
)
});
document
.
getElementById
(
'ann_box'
).
addEventListener
(
'mouseenter'
,
()
=>
{
document
.
getElementById
(
'ann_txt'
).
style
.
animationPlayState
=
'paused'
;
});
...
...
@@ -110,14 +117,14 @@ layui.use([], function () {
</div>
</div>
<div style="padding-left:39px;">公告详情</div>
<div class="noticedetailcs" style="padding-left:39px;padding-top:15px;width:1060px;overflow-x: auto;"></div>
<div class="noticedetailcs" style="padding-left:39px;padding-top:15px;
max-
width:1060px;overflow-x: auto;"></div>
</div>
`
layer
.
open
({
type
:
1
,
title
:
'公告详情'
,
offset
:
'50px'
,
area
:
[
'1100px'
,
'450'
],
area
:
[
'1100px'
,
'450
px
'
],
shadeClose
:
false
,
resize
:
false
,
move
:
false
,
...
...
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