@@ -57,9 +53,9 @@ export default {
type: Boolean,
default: true
},
- store: { // 是否为店铺页面
- type: Boolean,
- default: false
+ storeId: { // 是否为店铺页面
+ type: String,
+ default: ""
},
hover: {
type: Boolean,
@@ -85,10 +81,14 @@ export default {
if(url == '/goodsList'){
this.$emit('search', this.searchData)
}else{
- this.$router.push({
- path: '/goodsList',
- query: { keyword: this.searchData }
- });
+ const pushData = {
+ path:'/goodsList',
+ query: { keyword: this.searchData },
+ }
+ if(this.storeId) pushData.query.storeId = this.storeId
+
+
+ this.$router.push(pushData);
}
},
searchStore() { // 店铺搜索商品
@@ -130,6 +130,10 @@ export default {
height: 113px;
background: #fff;
}
+.search-icon{
+ width: 100%;
+ height: 100%;
+}
.small-search-box{
height: 60px;
diff --git a/buyer/src/components/nav/CateNav.vue b/buyer/src/components/nav/CateNav.vue
index ae425c09..7c1ffa37 100644
--- a/buyer/src/components/nav/CateNav.vue
+++ b/buyer/src/components/nav/CateNav.vue
@@ -16,7 +16,7 @@
@click="linkTo(item.url)"
>
{{ item.name }}
-
+
diff --git a/buyer/src/pages/GoodsList.vue b/buyer/src/pages/GoodsList.vue
index 9c671ad7..746a8760 100644
--- a/buyer/src/pages/GoodsList.vue
+++ b/buyer/src/pages/GoodsList.vue
@@ -2,7 +2,7 @@