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
d4ed1189
authored
2021-01-06 15:21:24 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻图片
1 parent
4d3e205b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
staticJs/flfg.js
staticJs/gsgg.js
staticJs/xwdt.js
staticJs/xyzc.js
staticViews/xwdt.html
staticJs/flfg.js
View file @
d4ed118
...
...
@@ -79,8 +79,8 @@ function HotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
cover
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
li
+=
'<span class="tj-title">'
+
result
.
data
[
i
].
headline
+
'</span>'
;
li
+=
'<span class="tj-date">'
+
result
.
data
[
i
].
deadtime
+
'</span>'
;
...
...
staticJs/gsgg.js
View file @
d4ed118
...
...
@@ -71,8 +71,8 @@ function HotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
cover
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
li
+=
'<span class="tj-title">'
+
result
.
data
[
i
].
headline
+
'</span>'
;
li
+=
'<span class="tj-date">'
+
result
.
data
[
i
].
deadtime
+
'</span>'
;
...
...
staticJs/xwdt.js
View file @
d4ed118
...
...
@@ -52,8 +52,8 @@ function HotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
cover
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
li
+=
'<span class="tj-title">'
+
result
.
data
[
i
].
headline
+
'</span>'
;
li
+=
'<span class="tj-date">'
+
result
.
data
[
i
].
deadtime
+
'</span>'
;
...
...
staticJs/xyzc.js
View file @
d4ed118
...
...
@@ -81,8 +81,8 @@ function HotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
cover
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
li
+=
'<h3>'
+
result
.
data
[
i
].
headline
+
'</h3>'
;
li
+=
'<p class="recommend_date">'
+
result
.
data
[
i
].
deadtime
+
'</p>'
;
...
...
staticViews/xwdt.html
View file @
d4ed118
...
...
@@ -53,8 +53,8 @@
<
a
class
=
"xw"
href
=
'./xwxq.html?id={{item.id}}'
target
=
"_blank"
>
<
div
class
=
"newsCon"
>
<
div
class
=
"xw-left"
>
{{
#
if
(
item
.
cover
!=
null
){
}}
<
img
src
=
"{{ item.
cover
}}"
>
{{
#
if
(
item
.
preViewUrl
!=
null
){
}}
<
img
src
=
"{{ item.
preViewUrl
}}"
>
{{
#
}
}}
<
/div
>
<
div
class
=
"xw-right"
>
...
...
Please
register
or
sign in
to post a comment