From 9f29e72035fdde4ecf3a1d53c9e984bdf333d587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Sun, 29 Jan 2023 10:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/ProductList/ProductList.js | 12 +- api/shopping/shopping.js | 4 +- pages.json | 11 +- pages/ProductList/ProductList.vue | 68 +++++++++-- pages/information/information.scss | 3 + pages/information/information.vue | 7 -- pages/m-city/m-city.vue | 2 + pages/modifyAddress/modifyAddress.vue | 62 +++++----- pages/toptabbar/toptabbar.vue | 168 ++++++++++++++++++++++++++ static/fenlei.png | Bin 0 -> 2460 bytes 10 files changed, 288 insertions(+), 49 deletions(-) create mode 100644 pages/toptabbar/toptabbar.vue create mode 100644 static/fenlei.png diff --git a/api/ProductList/ProductList.js b/api/ProductList/ProductList.js index b750720..13c6ea1 100644 --- a/api/ProductList/ProductList.js +++ b/api/ProductList/ProductList.js @@ -1,8 +1,16 @@ import request from "../request.js" -export function goodsList(pageSize,pageNum,goodsCategoryId,goodsName) { +export function goodsList(pageSize, pageNum, goodsCategoryId, goodsName) { return request({ url: `/nurseApplet/nursingStationGoods/goodsList?pageSize=${pageSize}&pageNum=${pageNum}&goodsCategoryId=${goodsCategoryId}&goodsName=${goodsName}`, method: 'GET' }) -} \ No newline at end of file +} + +//查询商品分类二级分类上边列表 小程序 +export function getGoodsCategoryNameList(goodsCategoryId) { + return request({ + url: `/nurseApplet/nursingStationGoods/getGoodsCategoryNameList?goodsCategoryId=${goodsCategoryId}`, + method: 'GET' + }) +} diff --git a/api/shopping/shopping.js b/api/shopping/shopping.js index 6202c1f..4f273ad 100644 --- a/api/shopping/shopping.js +++ b/api/shopping/shopping.js @@ -1,8 +1,8 @@ import request from "../request.js" -export function goodsCategoryList(pageSize,pageNum) { +export function goodsCategoryList(pageSize, pageNum) { return request({ - url: `/nurseApplet/nursingStationGoods/goodsCategoryList?pageSize=${pageSize}&pageNum=${pageNum}`, + url: `/nurseApplet/nursingStationGoods/goodsCategoryList?pageSize=${pageSize}&pageNum=${pageNum}&categoryLevel=${1}`, method: 'GET' }) } diff --git a/pages.json b/pages.json index c43abb9..3b0b8b2 100644 --- a/pages.json +++ b/pages.json @@ -332,7 +332,16 @@ "navigationBarBackgroundColor": "#ffffff" } } - ], + ,{ + "path" : "pages/toptabbar/toptabbar", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "", diff --git a/pages/ProductList/ProductList.vue b/pages/ProductList/ProductList.vue index 11d2acd..c9bd2e5 100644 --- a/pages/ProductList/ProductList.vue +++ b/pages/ProductList/ProductList.vue @@ -1,5 +1,8 @@