Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
microTT
9 years ago
Commit
d7e04013d6547ccf765ac8e74b63b9d3b31be19f
1 parent
581ba821
首页视频加载视频图标
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
res/js/channel.js
res/js/channel.js
View file @
d7e0401
...
...
@@ -80,7 +80,6 @@ define('channel', function(require, exports) {
}
}
for
(
i
=
0
,
len
=
$title
.
length
;
i
<
len
;
i
++
)
{
style
=
method
.
getComputedStyle
(
$title
[
i
]);
$textContent
=
$
(
$title
[
i
]).
next
(
".text-content"
);
...
...
@@ -700,8 +699,11 @@ define('channel', function(require, exports) {
for
(
i
=
0
,
len
=
data
.
length
;
i
<
len
;
i
++
)
{
result
+=
"<div class=\"fluid-item layout-item tiled\">"
+
"<div class=\"image-box\">"
+
"<a href=\"/news/detail/id/"
+
data
[
i
].
id
+
"\" target=\"_blank\" title=\""
+
data
[
i
].
title
+
"\">"
+
"<img src=\""
+
data
[
i
].
thumb
+
"\" alt=\"\">"
+
"</a>"
+
"<a href=\"/news/detail/id/"
+
data
[
i
].
id
+
"\" target=\"_blank\" title=\""
+
data
[
i
].
title
+
"\">"
;
if
(
parseInt
(
data
[
i
][
"is_video"
])
===
1
)
{
result
+=
"<i class=\"play-icon\"></i>"
;
}
result
+=
"<img src=\""
+
data
[
i
].
thumb
+
"\" alt=\"\">"
+
"</a>"
+
"</div>"
+
"<div class=\"item-info\">"
+
"<a class=\"fluid-tag item-tag "
;
switch
(
data
[
i
].
tag
)
{
...
...
@@ -745,7 +747,8 @@ define('channel', function(require, exports) {
// console.log("ajax请求成功");
// console.log("JSON数据");
// console.log(dataString);
var
data
=
JSON
.
parse
(
s
);
// console.log("JSON数据解析JS对象");
// console.log(data);
data
=
method
.
formatData
(
data
);
...
...
@@ -828,6 +831,7 @@ define('channel', function(require, exports) {
({
ajaxOption
:
{
url
:
"/default/LoadNews"
,
// url: "/",
type
:
"post"
,
data
:
{
page
:
(
function
()
{
...
...
Please
register
or
login
to post a comment