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
4c130183
authored
2020-11-26 14:28:57 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻详情
1 parent
7d769f21
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
7 deletions
staticCss/xwxq.css
staticJs/xwxq.js
staticViews/xwdt.html
staticViews/xwxq.html
staticCss/xwxq.css
View file @
4c13018
...
...
@@ -134,7 +134,7 @@ div.navigation {
.title
{
height
:
30px
;
font-size
:
30px
;
padding
:
4
0px
0
;
padding
:
3
0px
0
;
font-weight
:
500
;
color
:
#4A4A4A
;
line-height
:
30px
;
...
...
@@ -609,7 +609,7 @@ div.navigation {
.right
{
width
:
200px
;
margin-left
:
15px
;
margin-top
:
20
px
;
margin-top
:
5
px
;
}
.right-top
{
...
...
staticJs/xwxq.js
View file @
4c13018
...
...
@@ -8,7 +8,30 @@ $(function () {
$
(
'.date div:first-child'
).
text
(
year
)
$
(
'.date div:nth-child(2)'
).
text
(
month
+
1
+
"/"
+
date
)
$
(
'.date div:last-child'
).
text
(
hour
+
":"
+
minutes
)
LawsData
()
})
// 新闻详情数据
function
LawsData
()
{
var
newsList
=
$
(
"#newsList"
);
newsList
.
empty
();
var
li
;
$
.
ajax
({
type
:
"get"
,
//提交方式
url
:
portal
.
api_url
+
"/hlwj/MhNews/getDetailById"
,
//路径
data
:{
"id"
:
GetQueryString
(
'id'
),
},
dataType
:
"json"
,
//数据,这里使用的是Json格式进行传输
success
:
function
(
result
)
{
//返回数据根据结果进行相应的处理
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
console
.
log
(
result
.
data
)
$
(
'.newsTitle'
).
html
(
result
.
data
.
title
)
newsList
.
append
(
result
.
data
.
content
)
}
}
});
}
$
(
window
).
scroll
(
function
()
{
let
juli
=
$
(
document
).
scrollTop
();
if
(
juli
>
360
)
{
...
...
@@ -24,4 +47,10 @@ layui.use('element', function () {
//console.log(elem)
layer
.
msg
(
elem
.
text
());
});
});
\ No newline at end of file
});
function
GetQueryString
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
return
decodeURIComponent
(
r
[
2
]);
return
null
;
}
\ No newline at end of file
...
...
staticViews/xwdt.html
View file @
4c13018
...
...
@@ -90,7 +90,7 @@
<script
id=
"demo"
type=
"text/html"
>
{{
#
layui
.
each
(
d
.
list
,
function
(
index
,
item
){
}}
<
li
>
<
a
class
=
"left-top"
title
=
" {{ item.headline }}"
href
=
'./xwxq.html?id=
"{{item.id}}"
'
target
=
"_blank"
>
<
a
class
=
"left-top"
title
=
" {{ item.headline }}"
href
=
'./xwxq.html?id=
{{item.id}}
'
target
=
"_blank"
>
{{
item
.
headline
}}
<
/a
>
<
a
class
=
"xw"
href
=
'./xwxq.html?id="{{item.id}}"'
target
=
"_blank"
>
...
...
staticViews/xwxq.html
View file @
4c13018
...
...
@@ -24,8 +24,8 @@
<div
class=
"mainbody"
>
<div
class=
"left"
>
<div
class=
"title"
>
<div>
<span>
党的十八大以来双拥工作综述:为实现中国梦强军梦凝聚强大力量
</span>
<div
class=
"newsTitle"
>
党的十八大以来双拥工作综述:为实现中国梦强军梦凝聚强大力量
</div>
</div>
<div
class=
"left2"
>
...
...
@@ -84,7 +84,7 @@
</div>
</div>
<div
class=
"left-right"
>
<div
class=
"body"
>
<div
class=
"body"
id=
"newsList"
>
近日,自然资源部印发《自然资源统计工作管理办法》,旨在规范自然资源统计管理工作,建立健全统计数据质量控制体系,提高自然资源统计数据的真实性,发挥统计在自然资源管理中的重要基础性作用,该办法将于2020年8月1日起施行。
《自然资源统计工作管理办法》 一、明确自然资源统计主要任务
对7大类自然资源对象(土地、矿产、森林、草原、湿地、水、海域海岛),以及其他统计对象(海洋经济、地质勘查、地质灾害、测绘地理信息、自然资源督察、行政管理)开展统计调查和统计分析,提供统计数据,实施统计监督。
...
...
Please
register
or
sign in
to post a comment