搜索功能的完善

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