Skip to content

Commit a6162f6

Browse files
committed
chore: 简化无用代码。
1 parent 01c1831 commit a6162f6

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxCatalogController.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,10 @@ public class WxCatalogController {
3636
* @param id 分类类目ID。
3737
* 如果分类类目ID是空,则选择第一个分类类目。
3838
* 需要注意,这里分类类目是一级类目
39-
* @param page 分页页数
40-
* @param size 分页大小
4139
* @return 分类详情
4240
*/
4341
@GetMapping("index")
44-
public Object index(Integer id,
45-
@RequestParam(defaultValue = "1") Integer page,
46-
@RequestParam(defaultValue = "10") Integer size) {
42+
public Object index(Integer id) {
4743

4844
// 所有一级分类目录
4945
List<LitemallCategory> l1CatList = categoryService.queryL1();

litemall-wx/pages/catalog/catalog.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,6 @@ Page({
6565
onUnload: function() {
6666
// 页面关闭
6767
},
68-
getList: function() {
69-
var that = this;
70-
util.request(api.ApiRootUrl + 'api/catalog/' + that.data.currentCategory.catId)
71-
.then(function(res) {
72-
that.setData({
73-
categoryList: res.data,
74-
});
75-
});
76-
},
7768
switchCate: function(event) {
7869
var that = this;
7970
var currentTarget = event.currentTarget;

0 commit comments

Comments
 (0)