diff --git a/rc-busness/pages/usersearch/search.vue b/rc-busness/pages/usersearch/search.vue index ae985e0b..75703042 100644 --- a/rc-busness/pages/usersearch/search.vue +++ b/rc-busness/pages/usersearch/search.vue @@ -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";