Browse Source

chore[litemall-wx]: 查询页面调整

Junling Bu 6 years ago
parent
commit
dd19dcd3c1
2 changed files with 4 additions and 4 deletions
  1. 1 1
      litemall-wx/pages/search/search.js
  2. 3 3
      renard-wx/pages/search/search.js

+ 1 - 1
litemall-wx/pages/search/search.js

@@ -104,7 +104,7 @@ Page({
         that.setData({
           searchStatus: true,
           categoryFilter: false,
-          goodsList: res.data.goodsList,
+          goodsList: res.data.list,
           filterCategory: res.data.filterCategoryList
         });
       }

+ 3 - 3
renard-wx/pages/search/search.js

@@ -17,7 +17,7 @@ Page({
     defaultKeyword: {},
     hotKeyword: [],
     page: 1,
-    size: 20,
+    limit: 10,
     categoryId: 0
   },
   //事件处理函数
@@ -99,7 +99,7 @@ Page({
     util.request(api.GoodsList, {
       keyword: that.data.keyword,
       page: that.data.page,
-      size: that.data.size,
+      limit: that.data.limit,
       sort: that.data.currentSort,
       order: that.data.currentSortOrder,
       categoryId: that.data.categoryId
@@ -108,7 +108,7 @@ Page({
         that.setData({
           searchStatus: true,
           categoryFilter: false,
-          goodsList: res.data.goodsList,
+          goodsList: res.data.list,
           filterCategory: res.data.filterCategoryList
         });
       }