Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
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
e8d3b086
authored
Feb 23, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
消息通知
parent
2a369707
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
src/components/menu.vue
src/views/User/login.vue
src/components/menu.vue
View file @
e8d3b086
...
...
@@ -20,7 +20,7 @@
<a
class=
"el-icon-s-cooperation"
style=
"font-size: 27px;"
href=
"/#/notice"
title=
"系统公告"
></a>
<div
class=
"line"
></div>
<i
class=
"el-icon-message-solid message-num"
@
click=
"showMsg"
title=
"消息通知"
>
<el-badge
class=
"mark"
:value=
"
3
"
/>
<el-badge
class=
"mark"
:value=
"
not_read_count
"
/>
</i>
<div
class=
"line"
></div>
<a
class=
"msgh row verCenter"
href=
"javascript:history.go(0)"
>
...
...
@@ -300,6 +300,7 @@ export default {
tabSure
:
""
,
tabs
:
""
,
width
:
""
,
not_read_count
:
''
,
//未读消息
isIndeterminate
:
false
,
//对el-checkbox控制不完整的全选状态
checkAll
:
false
,
//标记是否全选
dialogVisible
:
false
,
//改密码
...
...
@@ -427,6 +428,7 @@ export default {
let
htmlArr
=
[];
if
(
res
.
data
.
list
.
length
>
0
)
{
let
data
=
JSON
.
parse
(
res
.
data
.
list
[
0
].
msg_data
);
this
.
not_read_count
=
res
.
data
.
not_read_count
;
sessionStorage
.
removeItem
(
'msg_id'
);
sessionStorage
.
setItem
(
'msg_id'
,
res
.
data
.
list
[
0
].
id
);
//存储最新id
//判断是不是最新的消息
...
...
src/views/User/login.vue
View file @
e8d3b086
...
...
@@ -131,6 +131,7 @@ export default {
this
.
errorClass1
=
true
;
return
false
;
}
if
(
!
myreg
.
test
(
this
.
form
.
mobile
))
{
this
.
errror_text
=
'请输入正确的手机号'
;
this
.
errorClass1
=
true
;
...
...
@@ -142,6 +143,7 @@ export default {
this
.
errorClass2
=
true
;
return
false
;
}
if
(
!
this
.
form
.
captcha
)
{
this
.
errror_text
=
'请输入验证码'
;
this
.
errorClass3
=
true
;
...
...
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