Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
OF1706
2017-06-09 14:39:34 +0800
Commit
5027d403f9d7626782fb6a49d5c185305befeeb6
1 parent
e0f73770
isVideo
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletions
apps/guang/models/guang-service.js
apps/guang/views/partial/msg.hbs
public/img/guang/isVideo.png
public/scss/guang/_index.css
apps/guang/models/guang-service.js
View file @
5027d40
...
...
@@ -134,7 +134,8 @@ module.exports = class extends global.yoho.BaseModel {
pView
:
articleData
.
views_num
,
content
:
articleData
.
intro
,
showTags
:
showTag
,
comment
:
articleData
.
comment_num
comment
:
articleData
.
comment_num
,
isVideo
:
articleData
.
category_name
===
'视频'
?
true
:
false
};
if
(
showTag
&&
articleData
.
category_id
)
{
...
...
apps/guang/views/partial/msg.hbs
View file @
5027d40
...
...
@@ -20,6 +20,7 @@
{{/
isSpecialTopic
}}
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
<img
class=
"lazy
{{#if
isSquareImg
}}
square
{{/if}}
"
data-original=
"
{{
image2
img
}}
"
>
{{#if
isVideo
}}
<i
class=
"video-icon"
></i>
{{/if}}
</a>
</div>
<div
class=
"msg-info"
>
...
...
public/img/guang/isVideo.png
0 → 100644
View file @
5027d40
11.5 KB
public/scss/guang/_index.css
View file @
5027d40
...
...
@@ -178,6 +178,19 @@
z-index
:
99
;
}
.video-icon
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
width
:
54px
;
height
:
54px
;
margin-top
:
-27px
;
margin-left
:
-27px
;
background
:
resolve
(
"guang/isVideo.png"
)
no-repeat
;
background-size
:
100%
100%
;
z-index
:
120
;
}
.type-icon
{
position
:
absolute
;
top
:
0
;
...
...
Please
register
or
login
to post a comment