Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-site
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjihua
web-site
Commits
460ef7b0
Commit
460ef7b0
authored
Mar 31, 2020
by
汪婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门户网站地址修改
parent
a3b2551f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
articleList.html
website/src/articleList.html
+3
-3
detail.html
website/src/detail.html
+2
-2
index.html
website/src/index.html
+4
-4
main.js
website/src/js/main.js
+5
-4
No files found.
website/src/articleList.html
View file @
460ef7b0
...
...
@@ -67,7 +67,7 @@
<script
type=
"text/javascript"
>
$
(
function
()
{
var
id
=
getUrlParam
(
"typeId"
)
$
.
get
(
api_prefix
+
'/web/information
/getpagelist'
,
{
informationTypeId
:
id
,
size
:
3
},
function
(
res
)
{
$
.
get
(
api_prefix
+
'/web/information
s/page/open'
,
{
informationTypeId
:
id
,
size
:
3
,
terminal_data_key
:
dataKey
,
terminal_data_key
:
dataKey
},
function
(
res
)
{
if
(
res
&&
res
.
success
&&
res
.
data
.
result
.
length
>
0
)
{
renderList
(
res
.
data
)
var
pages
=
Math
.
ceil
(
res
.
data
.
totalCount
/
res
.
data
.
pageSize
)
...
...
@@ -80,7 +80,7 @@
ActiveClass
:
"paging-selecte"
,
EhCondition
:
10
,
PageOn
:
function
(
page
)
{
$
.
get
(
api_prefix
+
'/web/information
/getpagelist'
,
{
informationTypeId
:
id
,
page
:
page
-
1
,
size
:
3
},
function
(
res
)
{
$
.
get
(
api_prefix
+
'/web/information
s/page/open'
,
{
informationTypeId
:
id
,
page
:
page
-
1
,
size
:
3
,
terminal_data_key
:
dataKey
},
function
(
res
)
{
if
(
res
.
data
.
result
.
length
==
0
)
return
$
(
".information-item"
).
empty
();
renderList
(
res
.
data
)
...
...
@@ -92,7 +92,7 @@
$
(
'.no-data'
).
show
()
}
})
$
.
get
(
api_prefix
+
"/web/information
/querytypetree"
,
function
(
result
)
{
$
.
get
(
api_prefix
+
"/web/information
s/typetree/open"
,{
terminal_data_key
:
dataKey
},
function
(
result
)
{
if
(
result
&&
result
.
success
)
{
var
chanelArr
=
[];
result
.
data
.
forEach
(
item
=>
{
...
...
website/src/detail.html
View file @
460ef7b0
...
...
@@ -90,7 +90,7 @@
$
(
function
()
{
var
id
=
getUrlParam
(
"id"
);
var
typeId
=
null
$
.
get
(
api_prefix
+
'/web/information
/getinfordetails?'
,
{
id
:
id
},
function
(
res
)
{
$
.
get
(
api_prefix
+
'/web/information
s/infor/details/open?'
,
{
id
:
id
,
terminal_data_key
:
dataKey
},
function
(
res
)
{
if
(
res
&&
res
.
success
)
{
$
(
".article-text"
).
append
(
res
.
data
.
content
||
"文章暂无内容"
);
$
(
'.time>span'
).
text
(
res
.
data
.
updateDate
||
''
);
...
...
@@ -105,7 +105,7 @@
}
})
$
.
get
(
api_prefix
+
"/web/information
/querytypetree"
,
function
(
result
)
{
$
.
get
(
api_prefix
+
"/web/information
s/typetree/open"
,
{
terminal_data_key
:
dataKey
},
function
(
result
)
{
if
(
result
&&
result
.
success
)
{
var
chanelArr
=
[];
result
.
data
.
forEach
(
item
=>
{
...
...
website/src/index.html
View file @
460ef7b0
...
...
@@ -42,7 +42,7 @@
</ul>
<!-- <div class="tool clearfix">
<span><i class="icon icon-download"></i>资料下载</span>
<span><i class="icon icon-qualitfy"></i>资质申请 <b class="icon icon-arrow-down"></b> </span>
<span><i class="icon icon-qualitfy"></i>资质申请 <b class="icon icon-arrow-down"></b> </span>
</div> -->
</div>
</div>
...
...
@@ -101,7 +101,7 @@
getChennelInfo
();
});
function
getChennelInfo
()
{
$
.
get
(
api_prefix
+
"/web/information
/querytypetree"
,
function
(
result
)
{
$
.
get
(
api_prefix
+
"/web/information
s/typetree/open"
,{
terminal_data_key
:
dataKey
}
,
function
(
result
)
{
var
chanelId
=
null
;
var
chanelArr
=
[];
var
newChaneId
=
null
;
...
...
@@ -137,7 +137,7 @@
var
newTitStr
=
''
;
var
imgListStr
=
''
;
var
imgDotStr
=
''
;
$
.
get
(
api_prefix
+
'/web/information
/getinformationlist'
,
function
(
res
)
{
$
.
get
(
api_prefix
+
'/web/information
s/infor/list/open'
,{
terminal_data_key
:
dataKey
}
,
function
(
res
)
{
if
(
res
&&
res
.
success
)
{
chanelArr
.
forEach
(
function
(
item
)
{
if
(
item
.
navigation
){
...
...
@@ -185,7 +185,7 @@
res
.
data
.
forEach
(
function
(
list
)
{
if
(
list
.
informationTypeId
==
imgChaneId
)
{
imgDotStr
+=
"<li></li>"
imgListStr
+=
'<li><a href="detail.html?id='
+
list
.
informationId
+
'"target="_blank"><img src="'
+
IMGURL_PREFIX
+
api_prefix
+
list
.
titleImg
+
'" alt=""></a><p>'
+
list
.
title
+
'</p></li>'
imgListStr
+=
'<li><a href="detail.html?id='
+
list
.
informationId
+
'"target="_blank"><img src="'
+
IMGURL_PREFIX
+
list
.
titleImg
+
'" alt=""></a><p>'
+
list
.
title
+
'</p></li>'
}
})
$
(
'.slideTxtBox .hd>ul'
).
append
(
newTitStr
);
...
...
website/src/js/main.js
View file @
460ef7b0
var
IMGURL_PREFIX
=
''
;
var
api_prefix
=
'/zs-web'
;
//站点不同要改配置文件
var
IMGURL_PREFIX
=
'http://192.168.31.203:2021/plat'
;
var
api_prefix
=
'http://192.168.31.203:2021/plat/admin_api'
;
//站点不同要改配置文件
var
dataKey
=
"fwzs"
;
$
(
function
()
{
getTimeInfo
();
setInterval
(
getTimeInfo
,
500
);
if
(
sessionStorage
.
getItem
(
"webConfig"
))
{
renderConfig
(
JSON
.
parse
(
sessionStorage
.
getItem
(
"webConfig"
)))
}
else
{
$
.
get
(
api_prefix
+
"/web/information
/getWebConfig"
,
function
(
res
)
{
$
.
get
(
api_prefix
+
"/web/information
s/webconfig/open"
,
{
terminal_data_key
:
dataKey
}
,
function
(
res
)
{
if
(
res
&&
res
.
success
)
{
sessionStorage
.
setItem
(
"webConfig"
,
JSON
.
stringify
(
res
.
data
));
renderConfig
(
res
.
data
)
...
...
@@ -78,7 +79,7 @@ function renderConfig(data) {
$
(
'meta[name="author"]'
).
attr
(
'content'
,
data
.
author
);
$
(
"#seo"
).
text
(
data
.
htags
);
$
(
'title'
).
text
(
data
.
websiteTitle
);
var
imgSrc
=
IMGURL_PREFIX
+
api_prefix
+
data
.
coverImg
;
var
imgSrc
=
IMGURL_PREFIX
+
data
.
coverImg
;
$
(
".banner img"
).
attr
(
'src'
,
imgSrc
);
}
//获取url中的参数
...
...
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