Commit 96d0f02c007e888fdf10eb4e0b575533ad005f6a
1 parent
202437c3
store_id 显示修改
Showing
1 changed file
with
4 additions
and
5 deletions
pages/goods/categoryList/categoryList.js
... | ... | @@ -47,14 +47,13 @@ Page({ |
47 | 47 | is_pl_time:0, |
48 | 48 | requestData:null, //风格三的商品数据列表 分页 |
49 | 49 | stylePage:1, //商品列表分页标识 |
50 | - | |
51 | 50 | //风格三使用 |
52 | 51 | url: t.globalData.setting.imghost, |
53 | 52 | currentPage: 1, |
54 | 53 | requestData: null, |
55 | 54 | allData: null, |
56 | 55 | openFilterModal: !1, |
57 | - 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=1&is_recommend=1", | |
56 | + baseUrl: "api/weshop/goods/page?1=1&orderField=goods_id&orderType=desc&is_mainshow=1&isonsale=1&store_id="+oo.stoid+"&is_recommend=1", | |
58 | 57 | requestUrl: "", |
59 | 58 | tabname: "goods_id", //排序的字段 |
60 | 59 | adname: "desc", //升降的字段 |
... | ... | @@ -643,7 +642,7 @@ Page({ |
643 | 642 | var that = this; |
644 | 643 | that.data.requestUrl = t; |
645 | 644 | e.get("/api/weshop/goods/page?1=1", { |
646 | - 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: 1, is_recommend: 1 }, | |
645 | + 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 }, | |
647 | 646 | success: function (data) { |
648 | 647 | console.log(data.data.data.pageData) |
649 | 648 | that.setData({ |
... | ... | @@ -705,7 +704,7 @@ Page({ |
705 | 704 | console.log("page:=" + page) |
706 | 705 | var s = this |
707 | 706 | e.get("/api/weshop/goods/page?1=1", { |
708 | - data: { page: page, cat_id: cid, parent_id: 0, orderField: 'goods_id', orderType: 'desc', is_mainshow: 1, isonsale: 1, store_id: 1, is_recommend: 1 }, | |
707 | + 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 }, | |
709 | 708 | success: function (e) { |
710 | 709 | console.log(e.data.data.pageData) |
711 | 710 | s.setData({ |
... | ... | @@ -767,7 +766,7 @@ Page({ |
767 | 766 | requestData: [] |
768 | 767 | }); |
769 | 768 | s.setData({ |
770 | - timer: setInterval(function () { | |
769 | + timer:setInterval(function () { | |
771 | 770 | if (countDownNum == 0) { |
772 | 771 | clearInterval(s.data.timer); |
773 | 772 | //关闭定时器之后,可作其他处理 | ... | ... |