diff --git a/api/store.js b/api/store.js index 4cf9f04..cc981d5 100644 --- a/api/store.js +++ b/api/store.js @@ -210,3 +210,8 @@ export function storeListApi(data) { login: false }); } + +// 商品列表 +export function getHotels(param) { + return request.get('/api/hotelMain/search', param, { login: false }) +} diff --git a/pages.json b/pages.json index 27cd12c..49bc633 100644 --- a/pages.json +++ b/pages.json @@ -58,7 +58,7 @@ { "path": "pages/shop/GoodSearch/index", "style": { - "navigationBarTitleText": "搜索商品" + "navigationBarTitleText": "搜索" } }, { @@ -78,7 +78,7 @@ { "path": "pages/shop/GoodsList/index", "style": { - "navigationBarTitleText": "商品列表" + "navigationBarTitleText": "搜索" } }, { @@ -871,8 +871,8 @@ "query": "" }, { - "name": "积分", - "path": "pages/user/Points/index", + "name": "搜索", + "path": "pages/shop/GoodsList/index", "query": "" } ] diff --git a/pages/home/index.vue b/pages/home/index.vue index 69e42e6..54a59b5 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -54,7 +54,7 @@ - 搜索商品 + 搜索 diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue index 70af129..76cdd54 100644 --- a/pages/shop/GoodSearch/index.vue +++ b/pages/shop/GoodSearch/index.vue @@ -5,7 +5,7 @@ diff --git a/pages/shop/GoodsClass/index.vue b/pages/shop/GoodsClass/index.vue index 854dddc..a5b415d 100644 --- a/pages/shop/GoodsClass/index.vue +++ b/pages/shop/GoodsClass/index.vue @@ -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; diff --git a/pages/shop/GoodsList/index.vue b/pages/shop/GoodsList/index.vue index 1763cd3..a69c776 100644 --- a/pages/shop/GoodsList/index.vue +++ b/pages/shop/GoodsList/index.vue @@ -1,64 +1,77 @@