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 @@