@ -37,7 +37,7 @@
<view class="tagList">
<view :class="active==index?'tagItem active':'tagItem'"
v-for="(item,index) in tagList"
@click="clickSearchItem(item)"
@click="clickSearchItem(item,index)"
:key="index">
{{item.name}}
</view>
@ -125,7 +125,8 @@ export default{
}
})
},
clickSearchItem(item){
clickSearchItem(item,index){
this.active=index;
this.contentList.filter(i=>{
return i.wx_category_id == item.id