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
1e867e08
authored
2020-11-12 14:57:20 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 首页
1 parent
610b6761
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
staticIndex.html
staticJs/staticIndex.js
staticJs/xzqy.js
staticIndex.html
View file @
1e867e0
...
...
@@ -107,7 +107,7 @@
</h2>
<a
class=
"news-img"
href=
""
title=
"图片新闻地信中心开展外业安全生产监控系统培训工作"
><img
src=
"staticImages/news_demo.jpg"
alt=
"图片新闻地信中心开展外业安全生产监控系统培训工作"
/></a>
<ul>
<ul
id=
'ulNews'
>
<li><a
href=
""
title=
"创新技术体系 引领事业发展"
><i>
最新
</i>
创新技术体系 引领事业发展
<span>
2020-06-19
</span></a></li>
<li><a
href=
""
title=
"创新技术体系 引领事业发展"
><i>
最新
</i>
创新技术体系 引领事业发展
<span>
2020-06-19
</span></a></li>
<li><a
href=
""
title=
"创新技术体系 引领事业发展"
>
创新技术体系 引领事业发展
<span>
2020-06-19
</span></a></li>
...
...
@@ -570,6 +570,7 @@
</body>
</html>
<script
src=
"./staticLib/jquery/jquery.min.js"
></script>
<script
src=
"./staticLib/layui/layui.js"
></script>
<script
src=
"./staticJs/staticIndex.js"
></script>
<script
src=
"https://at.alicdn.com/t/font_2174584_uxkon9mpq1.js"
></script>
\ No newline at end of file
...
...
staticJs/staticIndex.js
View file @
1e867e0
...
...
@@ -30,3 +30,20 @@ layui.use('util', function () {
}
});
});
//初始化方法
$
(
function
(){
NewsData
();
});
function
NewsData
(){
//$.ajax()
var
ulNews
=
$
(
"#ulNews"
);
ulNews
.
empty
();
var
str
=
''
;
for
(
var
i
=
0
;
i
<
6
;
i
++
){
str
=
'<li><a href="#" title="创新技术体系 引领事业发展"><i>最新</i>创新技术体系 引领事业发展<span>2020-06-19</span></a></li>'
;
ulNews
.
append
(
str
);
}
}
\ No newline at end of file
...
...
staticJs/xzqy.js
View file @
1e867e0
...
...
@@ -91,7 +91,7 @@ $(function () {
// 办事大厅标记
var
marker
=
new
BMap
.
Marker
(
new
BMap
.
Point
(
108.95346
,
34.265725
));
var
marker1
=
new
BMap
.
Marker
(
new
BMap
.
Point
(
108.953381
,
34.256923
));
var
marker1
=
new
BMap
.
Marker
(
new
BMap
.
Point
(
108.953381
,
34.256923
));
// 在地图上添加点标记
map
.
addOverlay
(
marker
);
map
.
addOverlay
(
marker1
);
...
...
Please
register
or
sign in
to post a comment