Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
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
e5fbf6c1
authored
Jul 11, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
85076827
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
6 deletions
Application/Home/View/public/top.html
dist/images/default.jpg
dist/js/global/global.min.js
Application/Home/View/public/top.html
View file @
e5fbf6c1
<div
class=
"right_header clr"
>
<div
class=
"user_logo fr"
>
<a
href=
""
>
<img
src=
"__PUBLIC__/images/
test.jpg"
alt=
"IClogo
"
>
<a
href=
"
javascript:;"
id=
"head_pic
"
>
<img
src=
"__PUBLIC__/images/
default.jpg"
alt=
"IC"
title=
"IC
"
>
</a>
</div>
<a
class=
"message_icon fr"
href=
"/notice"
>
<span
class=
"icon iconfont iconjuxing1"
></span>
<span
class=
"num"
>
23
</span>
<span
class=
"num"
id=
"count_num"
>
0
</span>
</a>
<div
class=
"input_div fr"
>
<input
type=
"text"
placeholder=
"请输入要搜索的内容"
>
...
...
dist/images/default.jpg
0 → 100644
View file @
e5fbf6c1
2.38 KB
dist/js/global/global.min.js
View file @
e5fbf6c1
!
function
()
{
window
.
IcController
=
{
init
:
function
()
{
this
.
mounted
(
this
).
handleBind
(
this
);
this
.
created
(
this
).
mounted
(
this
).
handleBind
(
this
);
},
getData
:
function
(
url
,
type
,
param
,
callback
,
isload
,
isheader
)
{
...
...
@@ -46,7 +46,7 @@
layer
.
msg
(
'登录已失效,请重新登录'
,
{
time
:
600
},
function
()
{
window
.
location
.
href
=
home
_url
+
'/login'
;
window
.
location
.
href
=
passport
_url
+
'/login'
;
});
}
else
{
...
...
@@ -65,6 +65,32 @@
}
});
},
created
:
function
(
opt
)
{
if
(
$
(
'#head_pic'
).
length
>
0
)
{
//获取用户信息
this
.
getData
(
apis
.
userInfo
,
'GET'
,
{
token
:
Util
.
getCookie
(
'token'
)
||
''
},
function
(
res
)
{
if
(
res
.
errcode
==
0
)
{
//消息数量
$
(
"#count_num"
).
empty
().
html
(
res
.
data
[
'msg_notification'
]);
//设置头像
if
(
res
.
data
.
avatar
)
{
$
(
"#head_pic"
).
find
(
'img'
).
attr
(
'src'
,
res
.
data
[
'avatar'
]);
}
}
});
}
return
this
;
},
mounted
:
function
(
opt
)
{
//导航栏
...
...
@@ -113,7 +139,7 @@
Util
.
delCookie
(
'token'
,
cookieHostname
);
window
.
location
.
href
=
home
_url
;
window
.
location
.
href
=
index
_url
;
}
else
{
...
...
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