@fonixtree/magic-design 0.0.153 → 0.0.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/es/common/ImageModal/index.js +5 -5
  2. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  3. package/es/common/LinkModal/CatgTable/index.js +1 -1
  4. package/es/common/LinkModal/CouponTable/index.js +1 -1
  5. package/es/common/LinkModal/CustomTable/index.js +1 -1
  6. package/es/common/LinkModal/FilteredProductModal/index.js +6 -6
  7. package/es/common/LinkModal/FunctionTable/index.js +1 -1
  8. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  9. package/es/common/LinkModal/index.js +1 -1
  10. package/es/common/ProductModal/index.js +5 -5
  11. package/es/common/ProductSource/index.js +1 -1
  12. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  13. package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -1
  14. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +2 -2
  15. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -2
  16. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
  17. package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -2
  18. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -2
  19. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  20. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +3 -3
  21. package/es/utils/coreUtil.js +1 -1
  22. package/lib/common/ImageModal/index.js +5 -5
  23. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  24. package/lib/common/LinkModal/CatgTable/index.js +1 -1
  25. package/lib/common/LinkModal/CouponTable/index.js +1 -1
  26. package/lib/common/LinkModal/CustomTable/index.js +1 -1
  27. package/lib/common/LinkModal/FilteredProductModal/index.js +6 -6
  28. package/lib/common/LinkModal/FunctionTable/index.js +1 -1
  29. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  30. package/lib/common/LinkModal/index.js +1 -1
  31. package/lib/common/ProductModal/index.js +5 -5
  32. package/lib/common/ProductSource/index.js +1 -1
  33. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  34. package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -1
  35. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +2 -2
  36. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -2
  37. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
  38. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -2
  39. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -2
  40. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  41. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +3 -3
  42. package/lib/utils/coreUtil.js +1 -1
  43. package/package.json +1 -1
@@ -311,7 +311,7 @@ function ImageModal(_a) {
311
311
 
312
312
  return [4
313
313
  /*yield*/
314
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/contents", __assign(__assign({
314
+ , (0, _commonUtil.commonFetch)('/designer/v1/contents', __assign(__assign({
315
315
  pageIndex: pageIndex,
316
316
  pageSize: pageSize,
317
317
  pageTotal: false,
@@ -351,7 +351,7 @@ function ImageModal(_a) {
351
351
  // extreParams.contentType = 'File';
352
352
  // }
353
353
  // return {
354
- // url: `${window.magicDesign.MBaseUrl}/contents`,
354
+ // url: `/designer/v1/contents`,
355
355
  // params: {
356
356
  // pageIndex,
357
357
  // pageSize,
@@ -395,7 +395,7 @@ function ImageModal(_a) {
395
395
  case 0:
396
396
  return [4
397
397
  /*yield*/
398
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/contentcatgs", {
398
+ , (0, _commonUtil.commonFetch)('/designer/v1/contentcatgs', {
399
399
  catgType: type === _const2.contentCatgTypeMap.PICTURE ? _const2.catgType.PICTURE : _const2.catgType.VIDEO
400
400
  }, 'GET')];
401
401
 
@@ -439,7 +439,7 @@ function ImageModal(_a) {
439
439
 
440
440
  return [4
441
441
  /*yield*/
442
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/pages/platforminfo")];
442
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/pages/platforminfo")];
443
443
 
444
444
  case 1:
445
445
  wapUrl_1 = _a.sent().wapUrl;
@@ -502,7 +502,7 @@ function ImageModal(_a) {
502
502
  };
503
503
 
504
504
  var onUpload = function onUpload(data) {
505
- return fetch(window.magicDesign.MBaseUrl + "/upload/contents", {
505
+ return fetch('/designer/v1/upload/contents', {
506
506
  method: 'POST',
507
507
  body: data,
508
508
  headers: headers
@@ -251,7 +251,7 @@ var BundleCampaign = function BundleCampaign(props) {
251
251
  case 0:
252
252
  return [4
253
253
  /*yield*/
254
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/bundle/list", params, 'GET')];
254
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/bundle/list", params, 'GET')];
255
255
 
256
256
  case 1:
257
257
  res = _a.sent();
@@ -284,7 +284,7 @@ var BundleCampaign = function BundleCampaign(props) {
284
284
  case 0:
285
285
  return [4
286
286
  /*yield*/
287
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
287
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
288
288
 
289
289
  case 1:
290
290
  res = _a.sent();
@@ -184,7 +184,7 @@ function CatgTable(props) {
184
184
  setLoading(true);
185
185
  return [4
186
186
  /*yield*/
187
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offercatgs/list", {}, 'GET')];
187
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offercatgs/list", {}, 'GET')];
188
188
 
189
189
  case 1:
190
190
  res = _a.sent();
@@ -250,7 +250,7 @@ function CouponTable(props) {
250
250
  setLoading(true);
251
251
  return [4
252
252
  /*yield*/
253
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/coupons/couponList/page?tableFlag=effective&isPublic=Y&state=A&pageTotal=false&couponLocation=Promotion", params, 'GET')];
253
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page?tableFlag=effective&isPublic=Y&state=A&pageTotal=false&couponLocation=Promotion", params, 'GET')];
254
254
 
255
255
  case 1:
256
256
  res = _a.sent();
@@ -182,7 +182,7 @@ function CustomTable(props) {
182
182
  setLoading(true);
183
183
  return [4
184
184
  /*yield*/
185
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/pages", params, 'GET')];
185
+ , (0, _commonUtil.commonFetch)('/designer/v1/pages', params, 'GET')];
186
186
 
187
187
  case 1:
188
188
  res = _a.sent();
@@ -346,7 +346,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
346
346
  case 0:
347
347
  return [4
348
348
  /*yield*/
349
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offercatgs/list", {}, 'GET')];
349
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offercatgs/list", {}, 'GET')];
350
350
 
351
351
  case 1:
352
352
  res = _a.sent();
@@ -368,7 +368,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
368
368
  case 0:
369
369
  return [4
370
370
  /*yield*/
371
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/brands/list", {}, 'GET')];
371
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/brands/list", {}, 'GET')];
372
372
 
373
373
  case 1:
374
374
  res = _a.sent();
@@ -390,7 +390,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
390
390
  case 0:
391
391
  return [4
392
392
  /*yield*/
393
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/labels/list", {}, 'GET')];
393
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list", {}, 'GET')];
394
394
 
395
395
  case 1:
396
396
  res = _a.sent();
@@ -412,7 +412,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
412
412
  case 0:
413
413
  return [4
414
414
  /*yield*/
415
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
415
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
416
416
 
417
417
  case 1:
418
418
  res = _a.sent();
@@ -468,10 +468,10 @@ var FilteredProductModal = function FilteredProductModal(props) {
468
468
  };
469
469
  return [4
470
470
  /*yield*/
471
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offers/es", params, 'POST')];
471
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offers/es", params, 'POST')];
472
472
 
473
473
  case 1:
474
- res = _a.sent(); // const res = await commonFetch(`${window.magicDesign.MBaseUrl}/products`, params, 'GET');
474
+ res = _a.sent(); // const res = await commonFetch(`/designer/v1/products`, params, 'GET');
475
475
 
476
476
  setLoading(false);
477
477
  paginationParams.total = res.total;
@@ -193,7 +193,7 @@ function FunctionTable(props) {
193
193
  setLoading(true);
194
194
  return [4
195
195
  /*yield*/
196
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/pages/functions", {}, 'GET')];
196
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/pages/functions", {}, 'GET')];
197
197
 
198
198
  case 1:
199
199
  res = _a.sent();
@@ -279,7 +279,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
279
279
  case 0:
280
280
  return [4
281
281
  /*yield*/
282
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/products", params, 'GET')];
282
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/products", params, 'GET')];
283
283
 
284
284
  case 1:
285
285
  res = _a.sent();
@@ -304,7 +304,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
304
304
  case 0:
305
305
  return [4
306
306
  /*yield*/
307
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/brands/list", {}, 'GET')];
307
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/brands/list", {}, 'GET')];
308
308
 
309
309
  case 1:
310
310
  res = _a.sent();
@@ -326,7 +326,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
326
326
  case 0:
327
327
  return [4
328
328
  /*yield*/
329
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
329
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
330
330
 
331
331
  case 1:
332
332
  res = _a.sent();
@@ -210,7 +210,7 @@ var LinkModal = function LinkModal(props) {
210
210
  case 0:
211
211
  return [4
212
212
  /*yield*/
213
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/linktypes")];
213
+ , (0, _commonUtil.commonFetch)('/designer/v1/linktypes')];
214
214
 
215
215
  case 1:
216
216
  types = _a.sent();
@@ -356,7 +356,7 @@ var ProductModal = function ProductModal(props) {
356
356
  case 0:
357
357
  return [4
358
358
  /*yield*/
359
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/products", data, 'GET')];
359
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/products", data, 'GET')];
360
360
 
361
361
  case 1:
362
362
  res = _a.sent();
@@ -381,7 +381,7 @@ var ProductModal = function ProductModal(props) {
381
381
  case 0:
382
382
  return [4
383
383
  /*yield*/
384
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/offers/catgs", {}, 'GET')];
384
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers/catgs', {}, 'GET')];
385
385
 
386
386
  case 1:
387
387
  res = _a.sent();
@@ -407,7 +407,7 @@ var ProductModal = function ProductModal(props) {
407
407
  case 0:
408
408
  return [4
409
409
  /*yield*/
410
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offerdiscatgs/brands", {}, 'GET')];
410
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offerdiscatgs/brands", {}, 'GET')];
411
411
 
412
412
  case 1:
413
413
  res = _a.sent();
@@ -429,7 +429,7 @@ var ProductModal = function ProductModal(props) {
429
429
  case 0:
430
430
  return [4
431
431
  /*yield*/
432
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/labels/list", {}, 'GET')];
432
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list", {}, 'GET')];
433
433
 
434
434
  case 1:
435
435
  res = _a.sent();
@@ -451,7 +451,7 @@ var ProductModal = function ProductModal(props) {
451
451
  case 0:
452
452
  return [4
453
453
  /*yield*/
454
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
454
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
455
455
 
456
456
  case 1:
457
457
  res = _a.sent();
@@ -193,7 +193,7 @@ function ProductSource(_a) {
193
193
  , 2];
194
194
  return [4
195
195
  /*yield*/
196
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/products", {
196
+ , (0, _commonUtil.commonFetch)('/designer/v1/products', {
197
197
  products: value
198
198
  }, 'GET')];
199
199
 
@@ -240,7 +240,7 @@ function (_super) {
240
240
  case 0:
241
241
  return [4
242
242
  /*yield*/
243
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
243
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/mywallet/list', {}, 'GET')];
244
244
 
245
245
  case 1:
246
246
  _a = _b.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues;
@@ -240,7 +240,7 @@ function (_super) {
240
240
  case 0:
241
241
  return [4
242
242
  /*yield*/
243
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
243
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/mywallet/list', {}, 'GET')];
244
244
 
245
245
  case 1:
246
246
  _a = _b.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues;
@@ -277,7 +277,7 @@ function (_super) {
277
277
  case 0:
278
278
  return [4
279
279
  /*yield*/
280
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/offer/page", {
280
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/offer/page', {
281
281
  campaignId: campaign.campaignId,
282
282
  sortType: this.sortType,
283
283
  pageIndex: 1,
@@ -329,7 +329,7 @@ function (_super) {
329
329
  case 0:
330
330
  return [4
331
331
  /*yield*/
332
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/next", {
332
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/next', {
333
333
  excludeExpireCmp: true
334
334
  }, 'GET')];
335
335
 
@@ -318,7 +318,7 @@ function (_super) {
318
318
  case 0:
319
319
  return [4
320
320
  /*yield*/
321
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/offer/page", {
321
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/offer/page', {
322
322
  campaignId: campaign.campaignId,
323
323
  sortType: this.sortType,
324
324
  pageIndex: 1,
@@ -370,7 +370,7 @@ function (_super) {
370
370
  case 0:
371
371
  return [4
372
372
  /*yield*/
373
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/next", {
373
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/next', {
374
374
  excludeExpireCmp: true
375
375
  }, 'GET')];
376
376
 
@@ -304,7 +304,7 @@ function (_super) {
304
304
 
305
305
  return [4
306
306
  /*yield*/
307
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/pages/buyer/displaycatgs", {
307
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/pages/buyer/displaycatgs', {
308
308
  terminalType: 'PC'
309
309
  }, 'GET')];
310
310
 
@@ -360,7 +360,7 @@ function (_super) {
360
360
 
361
361
  return [4
362
362
  /*yield*/
363
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/products", {
363
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/products', {
364
364
  products: prodIds,
365
365
  state: 'A'
366
366
  }, 'GET')];
@@ -378,7 +378,7 @@ function (_super) {
378
378
  , 5];
379
379
  return [4
380
380
  /*yield*/
381
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/offers", {
381
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
382
382
  pageIndex: 1,
383
383
  pageSize: maxProdNum,
384
384
  sortType: '1',
@@ -355,7 +355,7 @@ function (_super) {
355
355
 
356
356
  return [4
357
357
  /*yield*/
358
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/products", {
358
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/products', {
359
359
  products: prodIds,
360
360
  state: 'A'
361
361
  }, 'GET')];
@@ -373,7 +373,7 @@ function (_super) {
373
373
  , 5];
374
374
  return [4
375
375
  /*yield*/
376
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/offers", {
376
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
377
377
  pageIndex: 1,
378
378
  pageSize: maxProdNum,
379
379
  sortType: '1',
@@ -208,7 +208,7 @@ function (_super) {
208
208
  case 0:
209
209
  return [4
210
210
  /*yield*/
211
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/users/inbox/unread/num", {}, 'GET')];
211
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/users/inbox/unread/num', {}, 'GET')];
212
212
 
213
213
  case 1:
214
214
  num = _a.sent();
@@ -255,7 +255,7 @@ function (_super) {
255
255
  ];
256
256
  return [4
257
257
  /*yield*/
258
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offercatgs/list")];
258
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offercatgs/list")];
259
259
 
260
260
  case 1:
261
261
  res = _a.sent();
@@ -275,7 +275,7 @@ function (_super) {
275
275
  ];
276
276
  return [4
277
277
  /*yield*/
278
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/brands/list")];
278
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/brands/list")];
279
279
 
280
280
  case 3:
281
281
  res = _a.sent();
@@ -295,7 +295,7 @@ function (_super) {
295
295
  ];
296
296
  return [4
297
297
  /*yield*/
298
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/labels/list")];
298
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list")];
299
299
 
300
300
  case 5:
301
301
  res = _a.sent();
@@ -243,7 +243,7 @@ var getCoupon = function getCoupon(couponId) {
243
243
 
244
244
  return [4
245
245
  /*yield*/
246
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/coupons/usercoupon", {
246
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/coupons/usercoupon', {
247
247
  couponId: Number(couponId)
248
248
  }, 'POST')];
249
249
 
@@ -311,7 +311,7 @@ function ImageModal(_a) {
311
311
 
312
312
  return [4
313
313
  /*yield*/
314
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/contents", __assign(__assign({
314
+ , (0, _commonUtil.commonFetch)('/designer/v1/contents', __assign(__assign({
315
315
  pageIndex: pageIndex,
316
316
  pageSize: pageSize,
317
317
  pageTotal: false,
@@ -351,7 +351,7 @@ function ImageModal(_a) {
351
351
  // extreParams.contentType = 'File';
352
352
  // }
353
353
  // return {
354
- // url: `${window.magicDesign.MBaseUrl}/contents`,
354
+ // url: `/designer/v1/contents`,
355
355
  // params: {
356
356
  // pageIndex,
357
357
  // pageSize,
@@ -395,7 +395,7 @@ function ImageModal(_a) {
395
395
  case 0:
396
396
  return [4
397
397
  /*yield*/
398
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/contentcatgs", {
398
+ , (0, _commonUtil.commonFetch)('/designer/v1/contentcatgs', {
399
399
  catgType: type === _const2.contentCatgTypeMap.PICTURE ? _const2.catgType.PICTURE : _const2.catgType.VIDEO
400
400
  }, 'GET')];
401
401
 
@@ -439,7 +439,7 @@ function ImageModal(_a) {
439
439
 
440
440
  return [4
441
441
  /*yield*/
442
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/pages/platforminfo")];
442
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/pages/platforminfo")];
443
443
 
444
444
  case 1:
445
445
  wapUrl_1 = _a.sent().wapUrl;
@@ -502,7 +502,7 @@ function ImageModal(_a) {
502
502
  };
503
503
 
504
504
  var onUpload = function onUpload(data) {
505
- return fetch(window.magicDesign.MBaseUrl + "/upload/contents", {
505
+ return fetch('/designer/v1/upload/contents', {
506
506
  method: 'POST',
507
507
  body: data,
508
508
  headers: headers
@@ -251,7 +251,7 @@ var BundleCampaign = function BundleCampaign(props) {
251
251
  case 0:
252
252
  return [4
253
253
  /*yield*/
254
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/bundle/list", params, 'GET')];
254
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/bundle/list", params, 'GET')];
255
255
 
256
256
  case 1:
257
257
  res = _a.sent();
@@ -284,7 +284,7 @@ var BundleCampaign = function BundleCampaign(props) {
284
284
  case 0:
285
285
  return [4
286
286
  /*yield*/
287
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
287
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
288
288
 
289
289
  case 1:
290
290
  res = _a.sent();
@@ -184,7 +184,7 @@ function CatgTable(props) {
184
184
  setLoading(true);
185
185
  return [4
186
186
  /*yield*/
187
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offercatgs/list", {}, 'GET')];
187
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offercatgs/list", {}, 'GET')];
188
188
 
189
189
  case 1:
190
190
  res = _a.sent();
@@ -250,7 +250,7 @@ function CouponTable(props) {
250
250
  setLoading(true);
251
251
  return [4
252
252
  /*yield*/
253
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/coupons/couponList/page?tableFlag=effective&isPublic=Y&state=A&pageTotal=false&couponLocation=Promotion", params, 'GET')];
253
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page?tableFlag=effective&isPublic=Y&state=A&pageTotal=false&couponLocation=Promotion", params, 'GET')];
254
254
 
255
255
  case 1:
256
256
  res = _a.sent();
@@ -182,7 +182,7 @@ function CustomTable(props) {
182
182
  setLoading(true);
183
183
  return [4
184
184
  /*yield*/
185
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/pages", params, 'GET')];
185
+ , (0, _commonUtil.commonFetch)('/designer/v1/pages', params, 'GET')];
186
186
 
187
187
  case 1:
188
188
  res = _a.sent();
@@ -346,7 +346,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
346
346
  case 0:
347
347
  return [4
348
348
  /*yield*/
349
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offercatgs/list", {}, 'GET')];
349
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offercatgs/list", {}, 'GET')];
350
350
 
351
351
  case 1:
352
352
  res = _a.sent();
@@ -368,7 +368,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
368
368
  case 0:
369
369
  return [4
370
370
  /*yield*/
371
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/brands/list", {}, 'GET')];
371
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/brands/list", {}, 'GET')];
372
372
 
373
373
  case 1:
374
374
  res = _a.sent();
@@ -390,7 +390,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
390
390
  case 0:
391
391
  return [4
392
392
  /*yield*/
393
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/labels/list", {}, 'GET')];
393
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list", {}, 'GET')];
394
394
 
395
395
  case 1:
396
396
  res = _a.sent();
@@ -412,7 +412,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
412
412
  case 0:
413
413
  return [4
414
414
  /*yield*/
415
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
415
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
416
416
 
417
417
  case 1:
418
418
  res = _a.sent();
@@ -468,10 +468,10 @@ var FilteredProductModal = function FilteredProductModal(props) {
468
468
  };
469
469
  return [4
470
470
  /*yield*/
471
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offers/es", params, 'POST')];
471
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offers/es", params, 'POST')];
472
472
 
473
473
  case 1:
474
- res = _a.sent(); // const res = await commonFetch(`${window.magicDesign.MBaseUrl}/products`, params, 'GET');
474
+ res = _a.sent(); // const res = await commonFetch(`/designer/v1/products`, params, 'GET');
475
475
 
476
476
  setLoading(false);
477
477
  paginationParams.total = res.total;
@@ -193,7 +193,7 @@ function FunctionTable(props) {
193
193
  setLoading(true);
194
194
  return [4
195
195
  /*yield*/
196
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/pages/functions", {}, 'GET')];
196
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/pages/functions", {}, 'GET')];
197
197
 
198
198
  case 1:
199
199
  res = _a.sent();
@@ -279,7 +279,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
279
279
  case 0:
280
280
  return [4
281
281
  /*yield*/
282
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/products", params, 'GET')];
282
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/products", params, 'GET')];
283
283
 
284
284
  case 1:
285
285
  res = _a.sent();
@@ -304,7 +304,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
304
304
  case 0:
305
305
  return [4
306
306
  /*yield*/
307
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/brands/list", {}, 'GET')];
307
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/brands/list", {}, 'GET')];
308
308
 
309
309
  case 1:
310
310
  res = _a.sent();
@@ -326,7 +326,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
326
326
  case 0:
327
327
  return [4
328
328
  /*yield*/
329
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
329
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
330
330
 
331
331
  case 1:
332
332
  res = _a.sent();
@@ -210,7 +210,7 @@ var LinkModal = function LinkModal(props) {
210
210
  case 0:
211
211
  return [4
212
212
  /*yield*/
213
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/linktypes")];
213
+ , (0, _commonUtil.commonFetch)('/designer/v1/linktypes')];
214
214
 
215
215
  case 1:
216
216
  types = _a.sent();
@@ -356,7 +356,7 @@ var ProductModal = function ProductModal(props) {
356
356
  case 0:
357
357
  return [4
358
358
  /*yield*/
359
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/products", data, 'GET')];
359
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/products", data, 'GET')];
360
360
 
361
361
  case 1:
362
362
  res = _a.sent();
@@ -381,7 +381,7 @@ var ProductModal = function ProductModal(props) {
381
381
  case 0:
382
382
  return [4
383
383
  /*yield*/
384
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/offers/catgs", {}, 'GET')];
384
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers/catgs', {}, 'GET')];
385
385
 
386
386
  case 1:
387
387
  res = _a.sent();
@@ -407,7 +407,7 @@ var ProductModal = function ProductModal(props) {
407
407
  case 0:
408
408
  return [4
409
409
  /*yield*/
410
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offerdiscatgs/brands", {}, 'GET')];
410
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offerdiscatgs/brands", {}, 'GET')];
411
411
 
412
412
  case 1:
413
413
  res = _a.sent();
@@ -429,7 +429,7 @@ var ProductModal = function ProductModal(props) {
429
429
  case 0:
430
430
  return [4
431
431
  /*yield*/
432
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/labels/list", {}, 'GET')];
432
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list", {}, 'GET')];
433
433
 
434
434
  case 1:
435
435
  res = _a.sent();
@@ -451,7 +451,7 @@ var ProductModal = function ProductModal(props) {
451
451
  case 0:
452
452
  return [4
453
453
  /*yield*/
454
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/stores/list", {}, 'GET')];
454
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
455
455
 
456
456
  case 1:
457
457
  res = _a.sent();
@@ -193,7 +193,7 @@ function ProductSource(_a) {
193
193
  , 2];
194
194
  return [4
195
195
  /*yield*/
196
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/products", {
196
+ , (0, _commonUtil.commonFetch)('/designer/v1/products', {
197
197
  products: value
198
198
  }, 'GET')];
199
199
 
@@ -240,7 +240,7 @@ function (_super) {
240
240
  case 0:
241
241
  return [4
242
242
  /*yield*/
243
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
243
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/mywallet/list', {}, 'GET')];
244
244
 
245
245
  case 1:
246
246
  _a = _b.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues;
@@ -240,7 +240,7 @@ function (_super) {
240
240
  case 0:
241
241
  return [4
242
242
  /*yield*/
243
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
243
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/mywallet/list', {}, 'GET')];
244
244
 
245
245
  case 1:
246
246
  _a = _b.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues;
@@ -277,7 +277,7 @@ function (_super) {
277
277
  case 0:
278
278
  return [4
279
279
  /*yield*/
280
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/offer/page", {
280
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/offer/page', {
281
281
  campaignId: campaign.campaignId,
282
282
  sortType: this.sortType,
283
283
  pageIndex: 1,
@@ -329,7 +329,7 @@ function (_super) {
329
329
  case 0:
330
330
  return [4
331
331
  /*yield*/
332
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/next", {
332
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/next', {
333
333
  excludeExpireCmp: true
334
334
  }, 'GET')];
335
335
 
@@ -318,7 +318,7 @@ function (_super) {
318
318
  case 0:
319
319
  return [4
320
320
  /*yield*/
321
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/offer/page", {
321
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/offer/page', {
322
322
  campaignId: campaign.campaignId,
323
323
  sortType: this.sortType,
324
324
  pageIndex: 1,
@@ -370,7 +370,7 @@ function (_super) {
370
370
  case 0:
371
371
  return [4
372
372
  /*yield*/
373
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/next", {
373
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/next', {
374
374
  excludeExpireCmp: true
375
375
  }, 'GET')];
376
376
 
@@ -304,7 +304,7 @@ function (_super) {
304
304
 
305
305
  return [4
306
306
  /*yield*/
307
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/pages/buyer/displaycatgs", {
307
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/pages/buyer/displaycatgs', {
308
308
  terminalType: 'PC'
309
309
  }, 'GET')];
310
310
 
@@ -360,7 +360,7 @@ function (_super) {
360
360
 
361
361
  return [4
362
362
  /*yield*/
363
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/products", {
363
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/products', {
364
364
  products: prodIds,
365
365
  state: 'A'
366
366
  }, 'GET')];
@@ -378,7 +378,7 @@ function (_super) {
378
378
  , 5];
379
379
  return [4
380
380
  /*yield*/
381
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/offers", {
381
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
382
382
  pageIndex: 1,
383
383
  pageSize: maxProdNum,
384
384
  sortType: '1',
@@ -355,7 +355,7 @@ function (_super) {
355
355
 
356
356
  return [4
357
357
  /*yield*/
358
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/products", {
358
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/products', {
359
359
  products: prodIds,
360
360
  state: 'A'
361
361
  }, 'GET')];
@@ -373,7 +373,7 @@ function (_super) {
373
373
  , 5];
374
374
  return [4
375
375
  /*yield*/
376
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/offers", {
376
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
377
377
  pageIndex: 1,
378
378
  pageSize: maxProdNum,
379
379
  sortType: '1',
@@ -208,7 +208,7 @@ function (_super) {
208
208
  case 0:
209
209
  return [4
210
210
  /*yield*/
211
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/users/inbox/unread/num", {}, 'GET')];
211
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/users/inbox/unread/num', {}, 'GET')];
212
212
 
213
213
  case 1:
214
214
  num = _a.sent();
@@ -255,7 +255,7 @@ function (_super) {
255
255
  ];
256
256
  return [4
257
257
  /*yield*/
258
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offercatgs/list")];
258
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offercatgs/list")];
259
259
 
260
260
  case 1:
261
261
  res = _a.sent();
@@ -275,7 +275,7 @@ function (_super) {
275
275
  ];
276
276
  return [4
277
277
  /*yield*/
278
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/brands/list")];
278
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/brands/list")];
279
279
 
280
280
  case 3:
281
281
  res = _a.sent();
@@ -295,7 +295,7 @@ function (_super) {
295
295
  ];
296
296
  return [4
297
297
  /*yield*/
298
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/labels/list")];
298
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list")];
299
299
 
300
300
  case 5:
301
301
  res = _a.sent();
@@ -243,7 +243,7 @@ var getCoupon = function getCoupon(couponId) {
243
243
 
244
244
  return [4
245
245
  /*yield*/
246
- , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/coupons/usercoupon", {
246
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/coupons/usercoupon', {
247
247
  couponId: Number(couponId)
248
248
  }, 'POST')];
249
249
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.153",
4
+ "version": "0.0.155",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",