From 61d1b00c2062060e17d7513a4da0655cc08d89cd Mon Sep 17 00:00:00 2001 From: yanghao <781521347@qq.com> Date: Wed, 23 Feb 2022 18:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/store.js | 9 + pages.json | 7 - pages/life/index.vue | 86 ++-- pages/life/index2.vue | 560 -------------------------- pagesB/pages/shop/GoodsList/index.vue | 2 +- 5 files changed, 65 insertions(+), 599 deletions(-) delete mode 100644 pages/life/index2.vue diff --git a/api/store.js b/api/store.js index dce9e26..a24580e 100644 --- a/api/store.js +++ b/api/store.js @@ -65,6 +65,15 @@ export function getCategory() { }); } +/* + * 商品分类2 + * */ +export function getSecondCategory() { + return request.get("/secondCategory", {}, { + login: false + }); +} + /* * 商品详情 * */ diff --git a/pages.json b/pages.json index 7e9dd64..6cfafcd 100644 --- a/pages.json +++ b/pages.json @@ -334,13 +334,6 @@ "enablePullDownRefresh": true } }, - { - "path": "pages/life/index2", - "style": { - "navigationBarTitleText": "生活", - "enablePullDownRefresh": true - } - }, { "path": "pages/life/temp/index", "style": { diff --git a/pages/life/index.vue b/pages/life/index.vue index 4577976..b78a062 100644 --- a/pages/life/index.vue +++ b/pages/life/index.vue @@ -18,23 +18,16 @@ - - - 全部商品 - + + {{item.cateName}} + @@ -98,7 +91,7 @@ - - - diff --git a/pagesB/pages/shop/GoodsList/index.vue b/pagesB/pages/shop/GoodsList/index.vue index a470d6d..ebbd9f2 100644 --- a/pagesB/pages/shop/GoodsList/index.vue +++ b/pagesB/pages/shop/GoodsList/index.vue @@ -212,8 +212,8 @@ export default { var that = this this.setWhere() // if (to.name !== "GoodsList") return; - console.log(s,'ss') const { s = '', id = 0, title = '' } = this.$yroute.query + console.log(s,'ss') if (s !== this.where.keyword || id !== this.where.sid) { this.loadend = false this.loading = false