From 016fef50aa3322a08d4a4beb919be1b2170042bd Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 8 Apr 2024 23:46:32 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E6=90=9C=E7=B4=A2):=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/store.js | 5 + pages.json | 8 +- pages/home/index.vue | 2 +- pages/shop/GoodSearch/index.vue | 2 +- pages/shop/GoodsClass/index.vue | 21 - pages/shop/GoodsList/index.vue | 652 +++++++++++++++++++------------- wenwan/views/goodsClass.vue | 9 - 7 files changed, 391 insertions(+), 308 deletions(-) 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 @@