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
e81d96e3
authored
2021-01-27 14:21:03 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:新闻头部切换
1 parent
6f75c1ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
index.html
staticJs/pageHome.js
index.html
View file @
e81d96e
...
...
@@ -117,31 +117,31 @@
<a
class=
"newest"
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
...
...
@@ -155,7 +155,7 @@
<a
class=
"newest"
href=
""
>
1创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
<li>
<li
url=
"/staticImages/default-news.png"
>
<a
href=
""
>
1创新技术体系引领事业发展事实预计创新技术体系引领事业发展事实预计
</a>
<span>
2020-06-19
</span>
</li>
...
...
staticJs/pageHome.js
View file @
e81d96e
...
...
@@ -35,8 +35,8 @@ $(function () {
});
function
initData
()
{
// 新闻模块
if
(
$
(
'.
news-module-box .
hotspot-list li'
).
eq
(
0
).
attr
(
'url'
))
{
$
(
'.news-img'
).
attr
(
'src'
,
$
(
'
#ulNews
li'
).
eq
(
0
).
attr
(
'url'
));
if
(
$
(
'.hotspot-list li'
).
eq
(
0
).
attr
(
'url'
))
{
$
(
'.news-img'
).
attr
(
'src'
,
$
(
'
.hotspot-list
li'
).
eq
(
0
).
attr
(
'url'
));
}
else
{
$
(
'.news-img'
).
attr
(
'src'
,
'/staticImages/default-news.png'
);
}
...
...
Please
register
or
sign in
to post a comment