Commit ab2fe306 by amateur

添加今日热点点击事件

1 parent f98841fc
......@@ -11,7 +11,7 @@
:show-indicators="false"
>
<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="content">{{ item.scrollTitle }}</span>
</div>
......@@ -33,6 +33,10 @@ export default {
tagStyle (item) {
const { backgroundColor = 'red' } = item || {}
return { backgroundColor: 'red' }
},
clickItem (item) {
const { id } = item
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!