Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ab2fe306
authored
Jun 28, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加今日热点点击事件
1 parent
f98841fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/views/home/components/HotScrollBar.vue
src/views/home/components/HotScrollBar.vue
View file @
ab2fe30
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
:show-indicators=
"false"
:show-indicators=
"false"
>
>
<van-swipe-item
v-for=
"(item, idx) in data.scrollBarVOS"
:key=
"idx"
>
<van-swipe-item
v-for=
"(item, idx) in data.scrollBarVOS"
:key=
"idx"
>
<div
class=
"content-main"
>
<div
class=
"content-main"
@
click=
"clickItem(item)"
>
<span
class=
"tag"
:style=
"tagStyle(item)"
>
{{ item.scrollTag }}
</span>
<span
class=
"tag"
:style=
"tagStyle(item)"
>
{{ item.scrollTag }}
</span>
<span
class=
"content"
>
{{ item.scrollTitle }}
</span>
<span
class=
"content"
>
{{ item.scrollTitle }}
</span>
</div>
</div>
...
@@ -33,6 +33,10 @@ export default {
...
@@ -33,6 +33,10 @@ export default {
tagStyle
(
item
)
{
tagStyle
(
item
)
{
const
{
backgroundColor
=
'red'
}
=
item
||
{}
const
{
backgroundColor
=
'red'
}
=
item
||
{}
return
{
backgroundColor
:
'red'
}
return
{
backgroundColor
:
'red'
}
},
clickItem
(
item
)
{
const
{
id
}
=
item
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment