Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c327a35b
authored
2021-01-26 15:28:04 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:业务列表
1 parent
2070623f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
11 deletions
index.html
staticCss/pageHome.css
staticJs/pageHome.js
index.html
View file @
c327a35
...
...
@@ -220,20 +220,20 @@
</li>
</ul>
<div
class=
"business-list-rightItem"
>
<ul>
<li>
<ul
class=
"business-search"
>
<li
url-id=
"archives"
>
<img
src=
"/staticImages/idanganchaxun.png"
/>
档案查询
</li>
<li>
<li
url-id=
"progress"
>
<img
src=
"/staticImages/jinduchaxun.png"
/>
进度查询
</li>
<li>
<li
url-id=
"appointment"
>
<img
src=
"/staticImages/zaixianyuyue.png"
/>
在线预约
</li>
<li>
<li
url-id=
"certificate"
>
<img
src=
"/staticImages/zhenghuheyan.png"
/>
证书核验
</li>
...
...
staticCss/pageHome.css
View file @
c327a35
...
...
@@ -452,6 +452,9 @@ div.c_five ul li a img {
.news-title
.hot-focus
{
margin-right
:
100px
;
}
.news-module-box
.item-list
li
:hover
a
{
color
:
#0091FF
;
}
/* 选中样式 */
.news-active
{
font-size
:
24px
!important
;
...
...
@@ -717,6 +720,7 @@ div.c_five ul li a img {
box-sizing
:
border-box
;
padding-top
:
46px
;
position
:
relative
;
cursor
:
pointer
;
}
.business-list-rightItem
ul
:nth-of-type
(
1
)
li
::after
{
content
:
''
;
...
...
staticJs/pageHome.js
View file @
c327a35
...
...
@@ -37,7 +37,7 @@ $(function () {
function
initData
()
{
// 在这里处理置顶的头部
let
topTitle
=
$
(
'.top-title'
).
html
();
if
(
strLength
(
topTitle
)
>
7
)
{
if
(
strLength
(
topTitle
)
>
7
)
{
let
html
=
topTitle
.
slice
(
0
,
7
)
+
'<br/>'
+
topTitle
.
slice
(
7
);
$
(
'.top-title'
).
html
(
html
)
}
...
...
@@ -52,29 +52,51 @@ function initData() {
}
})
// 新闻头部切换
$
(
'.news-title .item-title'
).
click
(
function
()
{
$
(
'.news-title .item-title'
).
click
(
function
()
{
$
(
'.news-title .item-title'
).
removeClass
(
'news-active'
);
$
(
this
).
addClass
(
'news-active'
);
let
indexId
=
$
(
this
).
attr
(
'data-id'
);
$
(
'.item-list'
).
hide
();
if
(
indexId
==
'1'
)
{
if
(
indexId
==
'1'
)
{
$
(
'.hotspot-list'
).
show
();
}
else
{
}
else
{
$
(
'.news-information-list'
).
show
();
}
})
// 便民服务
$
(
".convenient-service-list li"
).
mouseover
(
function
()
{
$
(
".convenient-service-list li"
).
mouseover
(
function
()
{
$
(
this
).
find
(
'img'
).
attr
(
'src'
,
$
(
this
).
find
(
'img'
).
attr
(
'url'
));
})
$
(
".convenient-service-list li"
).
mouseout
(
function
()
{
$
(
".convenient-service-list li"
).
mouseout
(
function
()
{
$
(
this
).
find
(
'img'
).
attr
(
'src'
,
$
(
this
).
find
(
'img'
).
attr
(
'pre'
));
})
if
(
getItem
(
'myCookie'
)
&&
getItem
(
'myCookie'
).
username
)
{
$
(
'.login-list a'
).
hide
();
$
(
'.login-list-subtitle'
).
show
();
}
// 业务列表进行跳转
$
(
'.business-list-rightItem .business-search li'
).
click
(
function
()
{
let
urlId
=
$
(
this
).
attr
(
'url-id'
);
if
(
urlId
==
'appointment'
)
{
if
(
isLogin
())
{
window
.
open
(
getSearchUrl
(
urlId
),
'_self'
)
}
}
else
{
window
.
open
(
getSearchUrl
(
urlId
),
'_self'
)
}
})
}
function
getSearchUrl
(
level
)
{
const
resultMap
=
{
archives
:
'/staticViews/convenienceService/fileQuery.html'
,
progress
:
'/staticViews/convenienceService/progressInquiry.html'
,
appointment
:
'/staticViews/yyxz.html'
,
certificate
:
'/staticViews/convenienceService/certificateVerification.html'
,
default
:
'gologin'
,
}
return
resultMap
[
level
]
||
resultMap
.
default
;
}
// 获取汉字长度
function
strLength
(
str
)
{
///<summary>获得字符串实际长度,中文2,英文1</summary>
...
...
Please
register
or
sign in
to post a comment