Commit 8889361b7e7dd46c78374dc4ab46d4cc8b08d10e
1 parent
2627d2d8
分类推荐商品默认改变按序数降序
Showing
1 changed file
with
3 additions
and
3 deletions
pages/goods/categoryList/categoryList.js
... | ... | @@ -52,7 +52,7 @@ Page({ |
52 | 52 | currentPage: 1, |
53 | 53 | allData: null, |
54 | 54 | openFilterModal: !1, |
55 | - baseUrl: "api/weshop/goods/page?1=1&cat_id=1&parent_id=0&orderField=goods_id&orderType=desc&page=1&is_mainshow=1&isonsale=1&store_id="+oo.stoid+"&is_recommend=1", | |
55 | + baseUrl: "api/weshop/goods/page?1=1&cat_id=1&parent_id=0&orderField=sort&orderType=asc&page=1&is_mainshow=1&isonsale=1&store_id="+oo.stoid+"&is_recommend=1", | |
56 | 56 | requestUrl: "", |
57 | 57 | tabname: "goods_id", //排序的字段 |
58 | 58 | adname: "desc", //升降的字段 |
... | ... | @@ -791,7 +791,7 @@ Page({ |
791 | 791 | var that = this; |
792 | 792 | that.data.requestUrl = t; |
793 | 793 | e.get("/api/weshop/goods/page?1=1", { |
794 | - data: { page: that.data.stylePage, cat_id: that.data.cat_id, parent_id: 0, orderField: 'goods_id', orderType: 'desc', is_mainshow: 1, isonsale: 1, store_id: oo.stoid, is_recommend: 1 }, | |
794 | + data: { page: that.data.stylePage, cat_id: that.data.cat_id, parent_id: 0, orderField: 'sort', orderType: 'asc', is_mainshow: 1, isonsale: 1, store_id: oo.stoid, is_recommend: 1 }, | |
795 | 795 | success: function (data) { |
796 | 796 | console.log(data.data.data.pageData) |
797 | 797 | that.setData({ |
... | ... | @@ -853,7 +853,7 @@ Page({ |
853 | 853 | console.log("page:=" + page) |
854 | 854 | var s = this |
855 | 855 | e.get("/api/weshop/goods/page?1=1", { |
856 | - data: { page: page, cat_id: cid, parent_id: 0, orderField: 'goods_id', orderType: 'desc', is_mainshow: 1, isonsale: 1, store_id: oo.stoid, is_recommend: 1 }, | |
856 | + data: { page: page, cat_id: cid, parent_id: 0, orderField: 'sort', orderType: 'asc', is_mainshow: 1, isonsale: 1, store_id: oo.stoid, is_recommend: 1 }, | |
857 | 857 | success: function (e) { |
858 | 858 | console.log(e.data.data.pageData) |
859 | 859 | s.setData({ | ... | ... |