Merge branch 'hotfix_店铺商品分类性能优化_1114' into grey
Showing
3 changed files
with
12 additions
and
1 deletions
@@ -55,6 +55,9 @@ module.exports = function (app){ | @@ -55,6 +55,9 @@ module.exports = function (app){ | ||
55 | //店铺销售类目列表 | 55 | //店铺销售类目列表 |
56 | app.post("/shops/shopCategory/list","shopCategory_shopsCategoryList"); | 56 | app.post("/shops/shopCategory/list","shopCategory_shopsCategoryList"); |
57 | 57 | ||
58 | + //店铺商品分类列表,仅用于装修页面,下拉选择商品分类的场景 | ||
59 | + app.post("/shops/shopCategory/categoryList", "shopCategory_selectCategoryList"); | ||
60 | + | ||
58 | //新增店铺销售类目 | 61 | //新增店铺销售类目 |
59 | app.post("/shops/shopCategory/add","shopCategory_insertShopsAndLinkCategory"); | 62 | app.post("/shops/shopCategory/add","shopCategory_insertShopsAndLinkCategory"); |
60 | 63 |
@@ -25,6 +25,14 @@ module.exports={ | @@ -25,6 +25,14 @@ module.exports={ | ||
25 | ] | 25 | ] |
26 | }, | 26 | }, |
27 | 27 | ||
28 | + selectCategoryList:{ | ||
29 | + title:"店铺商品分类列表,仅用于装修页面,下拉选择商品分类场景", | ||
30 | + url:"/ShopsSalesCategoryRest/selectCategoryList", | ||
31 | + params:[ | ||
32 | + {name:"shopId",type:"Number"} | ||
33 | + ] | ||
34 | + }, | ||
35 | + | ||
28 | insertShopsAndLinkCategory:{ | 36 | insertShopsAndLinkCategory:{ |
29 | title:"新增店铺销售类目", | 37 | title:"新增店铺销售类目", |
30 | url:"/ShopsSalesCategoryRest/insertShopsAndLinkCategory", | 38 | url:"/ShopsSalesCategoryRest/insertShopsAndLinkCategory", |
@@ -330,7 +330,7 @@ function findDecoration(){ | @@ -330,7 +330,7 @@ function findDecoration(){ | ||
330 | //Ajax查询店铺下销售类目 | 330 | //Ajax查询店铺下销售类目 |
331 | function findShopCategory() { | 331 | function findShopCategory() { |
332 | common.util.__ajax({ | 332 | common.util.__ajax({ |
333 | - url:'/shops/shopCategory/list', | 333 | + url:'/shops/shopCategory/categoryList', |
334 | data: { | 334 | data: { |
335 | shopId: jsonMain.shopsId | 335 | shopId: jsonMain.shopsId |
336 | } | 336 | } |
-
Please register or login to post a comment