Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
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
front-end-dev
techbook
Commits
d66e10da
Commit
d66e10da
authored
Sep 27, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页相关功能
parent
54d5ace0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
index.vue
src/views/index/pages/index.vue
+4
-3
No files found.
src/views/index/pages/index.vue
View file @
d66e10da
...
...
@@ -66,7 +66,8 @@
<p
class=
"ellipsisFont2"
style=
"cursor: pointer;"
@
click=
"handleMore('detail',item.contentType == 'activity'?'/eventdetail':item.contentType == 'guess'?'/guessDetail':item.contentType== 'topic'?'/topicDetails':'/',item,true)"
>
<span
style=
"color: #FF5D5D;font-weight: normal;"
>
[
{{
item
.
contentType
==
'activity'
?
'活动'
:
item
.
contentType
==
'guess'
?
'竞猜'
:
item
.
contentType
==
'topic'
?
'话题'
:
''
}}
]
</span>
<span
style=
"background: #FF5D5D;color: #FFFFFF;padding: 0 5px;font-size: 12px;margin-right: 5px;border-radius: 3px;"
>
热门
</span>
<span
style=
"color: #1A1A1E;"
>
{{
item
.
contentType
==
'activity'
?
'活动'
:
item
.
contentType
==
'guess'
?
'竞猜'
:
item
.
contentType
==
'topic'
?
'话题'
:
''
}}
<i
style=
"margin: 0 3px;"
>
|
</i></span>
<span
style=
"color: #1A1A1E;"
>
{{
item
.
contentType
==
'activity'
?
item
.
contentDetail
.
channelTitle
:
item
.
contentType
==
'guess'
?
item
.
contentDetail
.
guessTitle
:
item
.
contentType
==
'topic'
?
'#'
+
item
.
contentDetail
.
topicTitle
+
'#'
:
''
}}
</span>
</p>
<div
class=
"gendisplay"
>
...
...
@@ -96,7 +97,7 @@
<p
v-else
class=
"ellipsisFont2 activity_state"
style=
"margin-top: 15px;line-height: 20px;"
>
{{
item
.
contentType
==
'guess'
?
item
.
contentDetail
.
guessIntroduction
:
item
.
contentType
==
'topic'
?
item
.
contentDetail
.
topicDescription
:
''
}}
</p>
<img
v-if=
"index == 0"
style=
"position: absolute;left: -15px;top: -15px;width: 48px;"
src=
"../../../assets/img/hotlive.png"
alt=
""
>
<!--
<img
v-if=
"index == 0"
style=
"position: absolute;left: -15px;top: -15px;width: 48px;"
src=
"../../../assets/img/hotlive.png"
alt=
""
>
--
>
</li>
</ul>
</div>
...
...
@@ -1805,7 +1806,7 @@
background
:
#F5F5F5
;
border-radius
:
3px
;
>
ul
{
padding
:
15px
0
15px
15px
;
padding
:
15px
0
;
height
:
165px
;
>
li
{
color
:
#7A7A7A
;
...
...
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