Commit a6162f6a authored by Junling Bu's avatar Junling Bu
Browse files

chore: 简化无用代码。

parent 01c18313
......@@ -36,14 +36,10 @@ public class WxCatalogController {
* @param id 分类类目ID。
* 如果分类类目ID是空,则选择第一个分类类目。
* 需要注意,这里分类类目是一级类目
* @param page 分页页数
* @param size 分页大小
* @return 分类详情
*/
@GetMapping("index")
public Object index(Integer id,
@RequestParam(defaultValue = "1") Integer page,
@RequestParam(defaultValue = "10") Integer size) {
public Object index(Integer id) {
// 所有一级分类目录
List<LitemallCategory> l1CatList = categoryService.queryL1();
......
......@@ -65,15 +65,6 @@ Page({
onUnload: function() {
// 页面关闭
},
getList: function() {
var that = this;
util.request(api.ApiRootUrl + 'api/catalog/' + that.data.currentCategory.catId)
.then(function(res) {
that.setData({
categoryList: res.data,
});
});
},
switchCate: function(event) {
var that = this;
var currentTarget = event.currentTarget;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment