@fonixtree/magic-design 0.0.154 → 0.0.156
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.
- package/es/common/Carousel/index.js +1 -3
- package/es/common/ImageModal/index.js +5 -5
- package/es/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CatgTable/index.js +1 -1
- package/es/common/LinkModal/CouponTable/index.js +1 -1
- package/es/common/LinkModal/CustomTable/index.js +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +6 -6
- package/es/common/LinkModal/FunctionTable/index.js +1 -1
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/SelectVideoModal/index.js +1 -1
- package/es/common/LinkModal/index.js +1 -1
- package/es/common/ProductModal/index.js +5 -5
- package/es/common/ProductSource/index.js +1 -1
- package/es/composite-comp/bol/components/Text/index.js +2 -2
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -3
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -3
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +2 -2
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -2
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +1 -3
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +1 -3
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +3 -3
- package/es/utils/coreUtil.js +1 -1
- package/lib/common/Carousel/index.js +1 -3
- package/lib/common/ImageModal/index.js +5 -5
- package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CatgTable/index.js +1 -1
- package/lib/common/LinkModal/CouponTable/index.js +1 -1
- package/lib/common/LinkModal/CustomTable/index.js +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +6 -6
- package/lib/common/LinkModal/FunctionTable/index.js +1 -1
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/SelectVideoModal/index.js +1 -1
- package/lib/common/LinkModal/index.js +1 -1
- package/lib/common/ProductModal/index.js +5 -5
- package/lib/common/ProductSource/index.js +1 -1
- package/lib/composite-comp/bol/components/Text/index.js +2 -2
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -3
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -3
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +2 -2
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +1 -3
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +1 -3
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +3 -3
- package/lib/utils/coreUtil.js +1 -1
- package/package.json +1 -1
|
@@ -56,9 +56,7 @@ function (_super) {
|
|
|
56
56
|
Carousel.prototype.render = function () {
|
|
57
57
|
var title = this.props.title;
|
|
58
58
|
var ready = this.state.ready;
|
|
59
|
-
return /*#__PURE__*/_react["default"].createElement("div",
|
|
60
|
-
className: "container"
|
|
61
|
-
});
|
|
59
|
+
return /*#__PURE__*/_react["default"].createElement("div", null);
|
|
62
60
|
};
|
|
63
61
|
|
|
64
62
|
Carousel.defaultProps = {
|
|
@@ -311,7 +311,7 @@ function ImageModal(_a) {
|
|
|
311
311
|
|
|
312
312
|
return [4
|
|
313
313
|
/*yield*/
|
|
314
|
-
, (0, _commonUtil.commonFetch)(
|
|
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:
|
|
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)(
|
|
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 + "/
|
|
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(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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)(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
329
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
|
|
330
330
|
|
|
331
331
|
case 1:
|
|
332
332
|
res = _a.sent();
|
|
@@ -66,7 +66,7 @@ function (_super) {
|
|
|
66
66
|
var title = this.props.title;
|
|
67
67
|
var ready = this.state.ready;
|
|
68
68
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
-
className: "container"
|
|
69
|
+
className: "SelectVideoModal-container"
|
|
70
70
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", null, "Select Video"), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Field["default"], {
|
|
71
71
|
title: "Select Video"
|
|
72
72
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
@@ -210,7 +210,7 @@ var LinkModal = function LinkModal(props) {
|
|
|
210
210
|
case 0:
|
|
211
211
|
return [4
|
|
212
212
|
/*yield*/
|
|
213
|
-
, (0, _commonUtil.commonFetch)(
|
|
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 + "/
|
|
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)(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
454
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
|
|
455
455
|
|
|
456
456
|
case 1:
|
|
457
457
|
res = _a.sent();
|
|
@@ -62,7 +62,7 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
62
62
|
// import './index.less';
|
|
63
63
|
// less to css 在线地址 https://tool.oschina.net/less
|
|
64
64
|
// css 压缩地址 https://www.runoob.com/csspack
|
|
65
|
-
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
65
|
+
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
66
66
|
|
|
67
67
|
var Text =
|
|
68
68
|
/** @class */
|
|
@@ -90,7 +90,7 @@ function (_super) {
|
|
|
90
90
|
mode: mode,
|
|
91
91
|
outputType: outputType
|
|
92
92
|
})), nodeData.title.subtitle.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
-
className: "sub-title"
|
|
93
|
+
className: "sub-title-text"
|
|
94
94
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
95
95
|
data: nodeData.title.subtitle,
|
|
96
96
|
mode: mode,
|
|
@@ -240,7 +240,7 @@ function (_super) {
|
|
|
240
240
|
case 0:
|
|
241
241
|
return [4
|
|
242
242
|
/*yield*/
|
|
243
|
-
, (0, _commonUtil.commonFetch)(
|
|
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)(
|
|
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;
|
|
@@ -151,9 +151,7 @@ function (_super) {
|
|
|
151
151
|
var _this = this;
|
|
152
152
|
|
|
153
153
|
var data = this.props.data;
|
|
154
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
-
className: "container"
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
154
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
157
155
|
divider: "bold",
|
|
158
156
|
headerSize: "large",
|
|
159
157
|
source: [{
|
|
@@ -59,9 +59,7 @@ function (_super) {
|
|
|
59
59
|
var _this = this;
|
|
60
60
|
|
|
61
61
|
var data = this.props.data;
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
-
className: "container"
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
65
63
|
title: (0, _locale.i18n)('BACKGROUND')
|
|
66
64
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
67
65
|
onChange: function onChange(bgType) {
|
|
@@ -277,7 +277,7 @@ function (_super) {
|
|
|
277
277
|
case 0:
|
|
278
278
|
return [4
|
|
279
279
|
/*yield*/
|
|
280
|
-
, (0, _commonUtil.commonFetch)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
211
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/users/inbox/unread/num', {}, 'GET')];
|
|
212
212
|
|
|
213
213
|
case 1:
|
|
214
214
|
num = _a.sent();
|
|
@@ -137,9 +137,7 @@ function (_super) {
|
|
|
137
137
|
|
|
138
138
|
MobileNavigationConfig.prototype.render = function () {
|
|
139
139
|
var data = this.props.data;
|
|
140
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
-
className: "container"
|
|
142
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
143
141
|
divider: "bold",
|
|
144
142
|
headerSize: "large",
|
|
145
143
|
source: [{
|
|
@@ -140,9 +140,7 @@ function (_super) {
|
|
|
140
140
|
PcNavigationConfig.prototype.render = function () {
|
|
141
141
|
var data = this.props.data;
|
|
142
142
|
console.log('-----pc', data);
|
|
143
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
-
className: "container"
|
|
145
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
143
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
146
144
|
divider: "bold",
|
|
147
145
|
headerSize: "large",
|
|
148
146
|
source: [{
|
package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js
CHANGED
|
@@ -255,7 +255,7 @@ function (_super) {
|
|
|
255
255
|
];
|
|
256
256
|
return [4
|
|
257
257
|
/*yield*/
|
|
258
|
-
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/
|
|
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 + "/
|
|
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 + "/
|
|
298
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list")];
|
|
299
299
|
|
|
300
300
|
case 5:
|
|
301
301
|
res = _a.sent();
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -243,7 +243,7 @@ var getCoupon = function getCoupon(couponId) {
|
|
|
243
243
|
|
|
244
244
|
return [4
|
|
245
245
|
/*yield*/
|
|
246
|
-
, (0, _commonUtil.commonFetch)(
|
|
246
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/coupons/usercoupon', {
|
|
247
247
|
couponId: Number(couponId)
|
|
248
248
|
}, 'POST')];
|
|
249
249
|
|
|
@@ -56,9 +56,7 @@ function (_super) {
|
|
|
56
56
|
Carousel.prototype.render = function () {
|
|
57
57
|
var title = this.props.title;
|
|
58
58
|
var ready = this.state.ready;
|
|
59
|
-
return /*#__PURE__*/_react["default"].createElement("div",
|
|
60
|
-
className: "container"
|
|
61
|
-
});
|
|
59
|
+
return /*#__PURE__*/_react["default"].createElement("div", null);
|
|
62
60
|
};
|
|
63
61
|
|
|
64
62
|
Carousel.defaultProps = {
|
|
@@ -311,7 +311,7 @@ function ImageModal(_a) {
|
|
|
311
311
|
|
|
312
312
|
return [4
|
|
313
313
|
/*yield*/
|
|
314
|
-
, (0, _commonUtil.commonFetch)(
|
|
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:
|
|
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)(
|
|
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 + "/
|
|
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(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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)(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
329
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
|
|
330
330
|
|
|
331
331
|
case 1:
|
|
332
332
|
res = _a.sent();
|
|
@@ -66,7 +66,7 @@ function (_super) {
|
|
|
66
66
|
var title = this.props.title;
|
|
67
67
|
var ready = this.state.ready;
|
|
68
68
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
-
className: "container"
|
|
69
|
+
className: "SelectVideoModal-container"
|
|
70
70
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", null, "Select Video"), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Field["default"], {
|
|
71
71
|
title: "Select Video"
|
|
72
72
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
@@ -210,7 +210,7 @@ var LinkModal = function LinkModal(props) {
|
|
|
210
210
|
case 0:
|
|
211
211
|
return [4
|
|
212
212
|
/*yield*/
|
|
213
|
-
, (0, _commonUtil.commonFetch)(
|
|
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 + "/
|
|
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)(
|
|
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 + "/
|
|
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 + "/
|
|
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 + "/
|
|
454
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
|
|
455
455
|
|
|
456
456
|
case 1:
|
|
457
457
|
res = _a.sent();
|
|
@@ -62,7 +62,7 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
62
62
|
// import './index.less';
|
|
63
63
|
// less to css 在线地址 https://tool.oschina.net/less
|
|
64
64
|
// css 压缩地址 https://www.runoob.com/csspack
|
|
65
|
-
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
65
|
+
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
66
66
|
|
|
67
67
|
var Text =
|
|
68
68
|
/** @class */
|
|
@@ -90,7 +90,7 @@ function (_super) {
|
|
|
90
90
|
mode: mode,
|
|
91
91
|
outputType: outputType
|
|
92
92
|
})), nodeData.title.subtitle.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
-
className: "sub-title"
|
|
93
|
+
className: "sub-title-text"
|
|
94
94
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
95
95
|
data: nodeData.title.subtitle,
|
|
96
96
|
mode: mode,
|
|
@@ -240,7 +240,7 @@ function (_super) {
|
|
|
240
240
|
case 0:
|
|
241
241
|
return [4
|
|
242
242
|
/*yield*/
|
|
243
|
-
, (0, _commonUtil.commonFetch)(
|
|
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)(
|
|
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;
|
|
@@ -151,9 +151,7 @@ function (_super) {
|
|
|
151
151
|
var _this = this;
|
|
152
152
|
|
|
153
153
|
var data = this.props.data;
|
|
154
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
-
className: "container"
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
154
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
157
155
|
divider: "bold",
|
|
158
156
|
headerSize: "large",
|
|
159
157
|
source: [{
|
|
@@ -59,9 +59,7 @@ function (_super) {
|
|
|
59
59
|
var _this = this;
|
|
60
60
|
|
|
61
61
|
var data = this.props.data;
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
-
className: "container"
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
65
63
|
title: (0, _locale.i18n)('BACKGROUND')
|
|
66
64
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
67
65
|
onChange: function onChange(bgType) {
|
|
@@ -277,7 +277,7 @@ function (_super) {
|
|
|
277
277
|
case 0:
|
|
278
278
|
return [4
|
|
279
279
|
/*yield*/
|
|
280
|
-
, (0, _commonUtil.commonFetch)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
211
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/users/inbox/unread/num', {}, 'GET')];
|
|
212
212
|
|
|
213
213
|
case 1:
|
|
214
214
|
num = _a.sent();
|
|
@@ -137,9 +137,7 @@ function (_super) {
|
|
|
137
137
|
|
|
138
138
|
MobileNavigationConfig.prototype.render = function () {
|
|
139
139
|
var data = this.props.data;
|
|
140
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
-
className: "container"
|
|
142
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
143
141
|
divider: "bold",
|
|
144
142
|
headerSize: "large",
|
|
145
143
|
source: [{
|
|
@@ -140,9 +140,7 @@ function (_super) {
|
|
|
140
140
|
PcNavigationConfig.prototype.render = function () {
|
|
141
141
|
var data = this.props.data;
|
|
142
142
|
console.log('-----pc', data);
|
|
143
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
-
className: "container"
|
|
145
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
143
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
146
144
|
divider: "bold",
|
|
147
145
|
headerSize: "large",
|
|
148
146
|
source: [{
|
package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js
CHANGED
|
@@ -255,7 +255,7 @@ function (_super) {
|
|
|
255
255
|
];
|
|
256
256
|
return [4
|
|
257
257
|
/*yield*/
|
|
258
|
-
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/
|
|
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 + "/
|
|
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 + "/
|
|
298
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list")];
|
|
299
299
|
|
|
300
300
|
case 5:
|
|
301
301
|
res = _a.sent();
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -243,7 +243,7 @@ var getCoupon = function getCoupon(couponId) {
|
|
|
243
243
|
|
|
244
244
|
return [4
|
|
245
245
|
/*yield*/
|
|
246
|
-
, (0, _commonUtil.commonFetch)(
|
|
246
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/coupons/usercoupon', {
|
|
247
247
|
couponId: Number(couponId)
|
|
248
248
|
}, 'POST')];
|
|
249
249
|
|