Commit dfd37d8c3eed9ce002783cd3655165043eb35a4e

Authored by yvan.ni
1 parent 4a1b1113

自定义模板的优化

components/diy_goodsGroup/diy_goodsGroup.js
... ... @@ -31,7 +31,7 @@ Component({
31 31 is_hot: 0,
32 32 is_new: 0,
33 33 isyhgoods:0,
34   - baseUrl: "/api/weshop/goods/page",
  34 + baseUrl: "/api/weshop/goods/page?isnewwhere=1",
35 35 resourceUrl: t.globalData.setting.resourceUrl,
36 36 url: t.globalData.setting.imghost,
37 37 currentPage: 1,
... ... @@ -205,7 +205,7 @@ Component({
205 205 }
206 206 str = str.substring(0, str.length - 1);
207 207  
208   - await app.request.get("/api/weshop/goods/getgoodslistOrdby?store_id=" + os.stoid + "&goodsidlist=" + str, {
  208 + await app.request.get("/api/weshop/goods/getgoodslistOrdby?isnewwhere=1&store_id=" + os.stoid + "&goodsidlist=" + str, {
209 209 data: { user_id: user_id },
210 210 isShowLoading: false,
211 211 success: function (res) {
... ... @@ -242,7 +242,7 @@ Component({
242 242 if (!user_id) user_id = 0;
243 243 r_data.user_id = user_id;
244 244  
245   - await app.request.promiseGet("/api/weshop/goods/page", {
  245 + await app.request.promiseGet("/api/weshop/goods/page?isnewwhere=1", {
246 246 data: r_data
247 247 }).then(res => {
248 248 th.data.loading = 0;
... ... @@ -260,7 +260,7 @@ Component({
260 260 break;
261 261 case "3":
262 262 var item = {};
263   - await app.request.promiseGet("/api/weshop/goodsGroup/pageGoodsList", {
  263 + await app.request.promiseGet("/api/weshop/goodsGroup/pageGoodsList?isnewwhere=1", {
264 264 data: {
265 265 store_id: os.stoid,
266 266 gpid: wgroup,
... ...
components/goods_list/goods_list.js
... ... @@ -93,7 +93,7 @@ Component({
93 93 if (!user_id) user_id = 0;
94 94  
95 95 var curPage = that.data.curPage;
96   - getApp().request.get('/api/weshop/goods/page?page', {
  96 + getApp().request.get('/api/weshop/goods/page?isnewwhere=1', {
97 97 isShowLoading: false,
98 98 data: {
99 99 is_mainshow: 1,
... ...