main
liudan 2 years ago
parent 6bdc61c950
commit 7540d83b1b
  1. 5
      pages/index/searchPage.vue

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

Loading…
Cancel
Save