ソースを参照

chore: 简化无用代码。

Junling Bu 6 年 前
コミット
a6162f6a85

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

@@ -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();

+ 0 - 9
litemall-wx/pages/catalog/catalog.js

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