更改搜索页面样式功能的调整

This commit is contained in:
952108534@qq.com
2022-01-19 18:11:14 +08:00
parent 2de58d6dc1
commit b2470f5da9
2 changed files with 45 additions and 17 deletions

View File

@@ -34,7 +34,7 @@
v-for="(item, index) in searchdata"
:key="index"
@click="selectsearch(item, index)"
:class="activeIndexa == index ? 'active' : 'unactive'"
:class="activeIndexa == index"
>
{{ item.title }}
</li>
@@ -595,9 +595,13 @@ export default {
if (element.name == "品种") {
pinzhong.push(element);
this.catageb = pinzhong;
this.catageb=this.catageb.sort((n1,n2)=>{
return n1.sort-n2.sort;
})
this.catageb.forEach((element) => {
element.checked = false;
});
// console.log(this.catageb);
}
if (element.name == "功能") {
gonneg.push(element);
@@ -605,6 +609,7 @@ export default {
this.catagea.forEach((element) => {
element.checked = false;
});
console.log(this.catagea);
}
if (element.name == "年龄") {
age.push(element);