搜索功能的完善

This commit is contained in:
952108534@qq.com 2022-01-19 18:21:25 +08:00
parent b2470f5da9
commit a38c7b6ba9

View File

@ -836,6 +836,9 @@ export default {
this.usetmessage(item.title);
},
selectage(item, index) {
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
// debugger;
// this.userishwo1 = !this.userishwo1;
let tagUsedAge = {};
@ -868,6 +871,9 @@ export default {
this.activeIndexc = index;
},
selectagc(item, index) {
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
// let tagFunction = {
// petType: this.activeIndex1,
// tagFunction: item.tagName,
@ -891,6 +897,9 @@ export default {
this.activeIndexd = index;
},
selectagd(item, index) {
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
let tagBreed = {};
if (item.checked == false) {
item.checked = true;
@ -921,6 +930,10 @@ export default {
},
selectproduct(item, index) {
this.activeIndexb = index;
console.log(this.activeIndex);
if(this.activeIndex=='-1'){
this.activeIndex=0;
}
if (item.checked == false) {
item.checked = true;
this.$refs.chosebox[index].className = "active";