1、链接:/pages/goods/goods_list/index.vue
方便复制:
v-if="(promotionList.length || where.promotions_id) && !cateSearch"
方便复制:
parseInt(options.sid)
查找函数getSearchFilter()删除如下图所示:
查找函数:promotionTap(); 注:记得删除原函数里面的第一条;函数内容如下图所示:
方便复制:
if(this.where.promotions_id == item.id){
this.where.promotions_id = 0;
}else{
this.where.promotions_id = item.id;
}
2、链接:/pages/goods/components/filterDrwer/index.vue
方便复制:
promotions_id: 0
promotionId:{
handler(val){
this.promotions_id = val;
},
immediate:true
},
查找函数checkPromotion();
方便复制:
if(this.promotions_id == item.id){
this.promotions_id = 0
}else{
this.promotions_id = item.id;
}
查找函数:confirmFilter()和 resetFilter()
方便复制:
promotions_id: this.promotions_id,
this.promotions_id = 0;
方便复制:
:class="{active: promotions_id==item.id}"
3、修改完之后,记得打包上传
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}