Commit dfd37d8c3eed9ce002783cd3655165043eb35a4e

Authored by yvan.ni
1 parent 4a1b1113

自定义模板的优化

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