Feat(搜索):接口对接

This commit is contained in:
lifizer
2024-04-08 23:46:32 +08:00
parent 2fde80fc1d
commit 016fef50aa
7 changed files with 391 additions and 308 deletions
-21
View File
@@ -263,15 +263,6 @@
goGoodSearch() {
this.$yrouter.push("/pages/shop/GoodSearch/index");
},
goGoodsList(child) {
this.$yrouter.push({
path: "/pages/shop/GoodsList/index",
query: {
id: child.id,
title: child.cateName
}
});
},
activeCateId(n) {
let index = 0;
n = parseInt(n);
@@ -314,18 +305,6 @@
});
});
},
submitForm: function() {
var val = trim(this.search);
if (val) {
this.$yrouter.push({
path: "/pages/shop/GoodsList/index",
query: {
s: val
}
});
setTimeout(() => (this.search = ""), 500);
}
},
asideTap(index) {
this.navActive = index;