Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HTML5-李恒逸
sunac-quanmin
Commits
14799930
Commit
14799930
authored
Jun 29, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复:小红点数量不变问题
parent
dc8e2ca7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
leftbar.php
html/application/views/admin/leftbar.php
+4
-4
No files found.
html/application/views/admin/leftbar.php
View file @
14799930
...
...
@@ -72,7 +72,7 @@
</div>
</div>
</div>
<script>
<script>
var
red_count
=
"
<?php
echo
isset
(
$red_count
)
?
$red_count
:
0
;
?>
"
;
var
_url
=
document
.
location
.
href
;
var
_menu_bar
=
$
(
".menu-bar"
);
...
...
@@ -91,7 +91,7 @@
$
(
_menu_bar
).
eq
(
i
).
parents
(
".sub-menu"
).
parent
(
"li"
).
find
(
"span"
).
eq
(
1
).
removeClass
(
"arrow"
).
addClass
(
"selected"
);
$
(
_menu_bar
).
eq
(
i
).
parents
(
".sub-menu"
).
css
(
"display"
,
"block"
);
break
;
}
}
}
//小红点
...
...
@@ -114,6 +114,7 @@
setInterval
(
function
()
{
$
.
ajax
({
type
:
'GET'
,
cache
:
false
,
url
:
"
<?php
echo
site_url
(
'admin/index/getCount'
);
?>
"
,
dataType
:
'json'
,
success
:
function
(
retdat
)
{
...
...
@@ -128,4 +129,4 @@
}
});
},
5000
);
</script>
\ No newline at end of file
</script>
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