@fonixtree/magic-design 2.0.134 → 2.0.136
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/LinkModal/AffiliatePlatform/index.js +2 -2
- package/es/common/LinkModal/AffiliateProductTable/index.js +1 -1
- package/es/common/LinkModal/AffiliateStore/index.js +2 -2
- package/es/common/LinkModal/BundleCampaign/index.js +1 -1
- package/es/common/LinkModal/BundleCampaign/index.less +6 -3
- package/es/common/LinkModal/CatgTable/index.js +2 -2
- package/es/common/LinkModal/CouponTable/index.js +2 -2
- package/es/common/LinkModal/CustomTable/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.less +3 -2
- package/es/common/LinkModal/FunctionTable/index.js +2 -2
- package/es/common/LinkModal/InterestedMerchants/index.js +2 -2
- package/es/common/LinkModal/InterestedProducts/index.js +2 -2
- package/es/common/LinkModal/MerchantStory/index.js +2 -2
- package/es/common/LinkModal/MiniAppApi/index.js +1 -1
- package/es/common/LinkModal/MiniAppTable/index.js +2 -2
- package/es/common/LinkModal/MissionDetail/index.js +2 -2
- package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/es/common/LinkModal/ProductDetailPage/index.less +1 -1
- package/es/common/LinkModal/SelectVideoModal/index.less +2 -1
- package/es/common/LinkModal/ShareUrl/index.less +1 -1
- package/es/common/LinkModal/StoreCatgTable/index.js +2 -2
- package/es/common/LinkModal/StoreTable/index.js +2 -2
- package/es/common/LinkModal/index.js +116 -106
- package/es/common/LinkModal/index.less +35 -2
- package/es/composite-comp/common/components/MonpayProductItem/index.js +5 -18
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +3 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +1 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +2 -10
- package/es/constants/index.js +2 -1
- package/es/utils/businessUtil.js +13 -1
- package/lib/common/LinkModal/AffiliatePlatform/index.js +2 -2
- package/lib/common/LinkModal/AffiliateProductTable/index.js +1 -1
- package/lib/common/LinkModal/AffiliateStore/index.js +2 -2
- package/lib/common/LinkModal/BundleCampaign/index.js +1 -1
- package/lib/common/LinkModal/BundleCampaign/index.less +6 -3
- package/lib/common/LinkModal/CatgTable/index.js +2 -2
- package/lib/common/LinkModal/CouponTable/index.js +2 -2
- package/lib/common/LinkModal/CustomTable/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.less +3 -2
- package/lib/common/LinkModal/FunctionTable/index.js +2 -2
- package/lib/common/LinkModal/InterestedMerchants/index.js +2 -2
- package/lib/common/LinkModal/InterestedProducts/index.js +2 -2
- package/lib/common/LinkModal/MerchantStory/index.js +2 -2
- package/lib/common/LinkModal/MiniAppApi/index.js +1 -1
- package/lib/common/LinkModal/MiniAppTable/index.js +2 -2
- package/lib/common/LinkModal/MissionDetail/index.js +2 -2
- package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/lib/common/LinkModal/ProductDetailPage/index.less +1 -1
- package/lib/common/LinkModal/SelectVideoModal/index.less +2 -1
- package/lib/common/LinkModal/ShareUrl/index.less +1 -1
- package/lib/common/LinkModal/StoreCatgTable/index.js +2 -2
- package/lib/common/LinkModal/StoreTable/index.js +2 -2
- package/lib/common/LinkModal/index.js +116 -106
- package/lib/common/LinkModal/index.less +35 -2
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +5 -18
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +3 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +1 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +2 -10
- package/lib/constants/index.js +2 -1
- package/lib/utils/businessUtil.js +13 -1
- package/package.json +1 -1
|
@@ -11,6 +11,8 @@ var _antd = require("antd4");
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
14
16
|
var _CouponTable = _interopRequireDefault(require("./CouponTable"));
|
|
15
17
|
|
|
16
18
|
var _FilteredProductModal = _interopRequireDefault(require("./FilteredProductModal"));
|
|
@@ -323,116 +325,124 @@ var LinkModal = function LinkModal(props) {
|
|
|
323
325
|
visible: visible,
|
|
324
326
|
width: "1000px",
|
|
325
327
|
wrapClassName: "magicLinkModal"
|
|
326
|
-
}, modalConfig), /*#__PURE__*/_react["default"].createElement(
|
|
327
|
-
|
|
328
|
-
|
|
328
|
+
}, modalConfig), /*#__PURE__*/_react["default"].createElement("div", {
|
|
329
|
+
className: "wrap"
|
|
330
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
331
|
+
className: "types-list"
|
|
329
332
|
}, linkTypes.map(function (item) {
|
|
330
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
333
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
331
334
|
key: item.linkTypeCode,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
}), item.linkTypeCode === 'Category' && /*#__PURE__*/_react["default"].createElement(_CatgTable["default"], {
|
|
339
|
-
_fetch: _fetch,
|
|
340
|
-
onChange: function onChange(value) {
|
|
341
|
-
return setLinkUrl(value);
|
|
342
|
-
}
|
|
343
|
-
}), item.linkTypeCode === 'CustomizedPage' && /*#__PURE__*/_react["default"].createElement(_CustomTable["default"], {
|
|
344
|
-
_fetch: _fetch,
|
|
345
|
-
onChange: function onChange(value) {
|
|
346
|
-
return setLinkUrl(value);
|
|
347
|
-
}
|
|
348
|
-
}), item.linkTypeCode === 'ProductDetailPage' && /*#__PURE__*/_react["default"].createElement(_ProductDetailPage["default"], {
|
|
349
|
-
_fetch: _fetch,
|
|
350
|
-
onChange: function onChange(url) {
|
|
351
|
-
return setLinkUrl(url);
|
|
352
|
-
}
|
|
353
|
-
}), item.linkTypeCode === 'FilteredProduct' && /*#__PURE__*/_react["default"].createElement(_FilteredProductModal["default"], {
|
|
354
|
-
_fetch: _fetch,
|
|
355
|
-
onDataChange: function onDataChange(url, t) {
|
|
356
|
-
setLinkUrl(url);
|
|
357
|
-
setTotal(t);
|
|
358
|
-
}
|
|
359
|
-
}), item.linkTypeCode === 'FunctionPage' && /*#__PURE__*/_react["default"].createElement(_FunctionTable["default"], {
|
|
360
|
-
_fetch: _fetch,
|
|
361
|
-
onChange: function onChange(value) {
|
|
362
|
-
return setLinkUrl(value);
|
|
363
|
-
}
|
|
364
|
-
}), item.linkTypeCode === 'Coupons' && /*#__PURE__*/_react["default"].createElement(_CouponTable["default"], {
|
|
365
|
-
_fetch: _fetch,
|
|
366
|
-
onChange: function onChange(value) {
|
|
367
|
-
return setLinkUrl(value);
|
|
368
|
-
}
|
|
369
|
-
}), item.linkTypeCode === 'BundleCampaign' && /*#__PURE__*/_react["default"].createElement(_BundleCampaign["default"], {
|
|
370
|
-
_fetch: _fetch,
|
|
371
|
-
onChange: function onChange(value) {
|
|
372
|
-
return setLinkUrl(value);
|
|
373
|
-
}
|
|
374
|
-
}), item.linkTypeCode === 'Video' && /*#__PURE__*/_react["default"].createElement(_SelectVideoModal["default"], {
|
|
375
|
-
_fetch: _fetch,
|
|
376
|
-
setUrl: function setUrl(value) {
|
|
377
|
-
return setLinkUrl(value);
|
|
378
|
-
}
|
|
379
|
-
}), item.linkTypeCode === 'ShareURL' && /*#__PURE__*/_react["default"].createElement(_ShareUrl["default"], {
|
|
380
|
-
_fetch: _fetch,
|
|
381
|
-
onChange: function onChange(value) {
|
|
382
|
-
return setLinkUrl(value);
|
|
383
|
-
}
|
|
384
|
-
}), item.linkTypeCode === 'MiniApp' && /*#__PURE__*/_react["default"].createElement(_MiniAppTable["default"], {
|
|
385
|
-
_fetch: _fetch,
|
|
386
|
-
onChange: function onChange(value) {
|
|
387
|
-
return setLinkUrl(value);
|
|
388
|
-
}
|
|
389
|
-
}), item.linkTypeCode === 'Store' && /*#__PURE__*/_react["default"].createElement(_StoreTable["default"], {
|
|
390
|
-
_fetch: _fetch,
|
|
391
|
-
onChange: function onChange(value) {
|
|
392
|
-
return setLinkUrl(value);
|
|
393
|
-
}
|
|
394
|
-
}), item.linkTypeCode === 'AffiliateProduct' && /*#__PURE__*/_react["default"].createElement(_AffiliateProductTable["default"], {
|
|
395
|
-
_fetch: _fetch,
|
|
396
|
-
onChange: function onChange(value) {
|
|
397
|
-
return setLinkUrl(value);
|
|
398
|
-
}
|
|
399
|
-
}), item.linkTypeCode === 'AffiliateStore' && /*#__PURE__*/_react["default"].createElement(_AffiliateStore["default"], {
|
|
400
|
-
_fetch: _fetch,
|
|
401
|
-
onChange: function onChange(value) {
|
|
402
|
-
return setLinkUrl(value);
|
|
403
|
-
}
|
|
404
|
-
}), item.linkTypeCode === 'MiniApi' && /*#__PURE__*/_react["default"].createElement(_MiniAppApi["default"], {
|
|
405
|
-
_fetch: _fetch,
|
|
406
|
-
onChange: function onChange(value) {
|
|
407
|
-
return setLinkUrl(value);
|
|
408
|
-
}
|
|
409
|
-
}), item.linkTypeCode === 'AffiliatePlatform' && /*#__PURE__*/_react["default"].createElement(_AffiliatePlatform["default"], {
|
|
410
|
-
_fetch: _fetch,
|
|
411
|
-
onChange: function onChange(value) {
|
|
412
|
-
return setLinkUrl(value);
|
|
413
|
-
}
|
|
414
|
-
}), item.linkTypeCode === 'InterestedMerchants' && /*#__PURE__*/_react["default"].createElement(_InterestedMerchants["default"], {
|
|
415
|
-
_fetch: _fetch,
|
|
416
|
-
onChange: function onChange(value) {
|
|
417
|
-
return setLinkUrl(value);
|
|
418
|
-
}
|
|
419
|
-
}), item.linkTypeCode === 'InterestedProducts' && /*#__PURE__*/_react["default"].createElement(_InterestedProducts["default"], {
|
|
420
|
-
_fetch: _fetch,
|
|
421
|
-
onChange: function onChange(value) {
|
|
422
|
-
return setLinkUrl(value);
|
|
423
|
-
}
|
|
424
|
-
}), item.linkTypeCode === 'MerchantStory' && /*#__PURE__*/_react["default"].createElement(_MerchantStory["default"], {
|
|
425
|
-
_fetch: _fetch,
|
|
426
|
-
onChange: function onChange(value) {
|
|
427
|
-
return setLinkUrl(value);
|
|
428
|
-
}
|
|
429
|
-
}), item.linkTypeCode === 'AffiliateMissionDetail' && /*#__PURE__*/_react["default"].createElement(_MissionDetail["default"], {
|
|
430
|
-
_fetch: _fetch,
|
|
431
|
-
onChange: function onChange(value) {
|
|
432
|
-
return setLinkUrl(value);
|
|
335
|
+
className: (0, _classnames["default"])('tag', {
|
|
336
|
+
active: selected === item.linkTypeCode
|
|
337
|
+
}),
|
|
338
|
+
onClick: function onClick() {
|
|
339
|
+
return onTabsChange(item.linkTypeCode);
|
|
433
340
|
}
|
|
434
|
-
})
|
|
341
|
+
}, item.linkTypeName);
|
|
435
342
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
343
|
+
className: "form-content"
|
|
344
|
+
}, selected === 'StoreCategory' && /*#__PURE__*/_react["default"].createElement(_StoreCatgTable["default"], {
|
|
345
|
+
_fetch: _fetch,
|
|
346
|
+
onChange: function onChange(value) {
|
|
347
|
+
setLinkUrl(value);
|
|
348
|
+
}
|
|
349
|
+
}), selected === 'Category' && /*#__PURE__*/_react["default"].createElement(_CatgTable["default"], {
|
|
350
|
+
_fetch: _fetch,
|
|
351
|
+
onChange: function onChange(value) {
|
|
352
|
+
return setLinkUrl(value);
|
|
353
|
+
}
|
|
354
|
+
}), selected === 'CustomizedPage' && /*#__PURE__*/_react["default"].createElement(_CustomTable["default"], {
|
|
355
|
+
_fetch: _fetch,
|
|
356
|
+
onChange: function onChange(value) {
|
|
357
|
+
return setLinkUrl(value);
|
|
358
|
+
}
|
|
359
|
+
}), selected === 'ProductDetailPage' && /*#__PURE__*/_react["default"].createElement(_ProductDetailPage["default"], {
|
|
360
|
+
_fetch: _fetch,
|
|
361
|
+
onChange: function onChange(url) {
|
|
362
|
+
return setLinkUrl(url);
|
|
363
|
+
}
|
|
364
|
+
}), selected === 'FilteredProduct' && /*#__PURE__*/_react["default"].createElement(_FilteredProductModal["default"], {
|
|
365
|
+
_fetch: _fetch,
|
|
366
|
+
onDataChange: function onDataChange(url, t) {
|
|
367
|
+
setLinkUrl(url);
|
|
368
|
+
setTotal(t);
|
|
369
|
+
}
|
|
370
|
+
}), selected === 'FunctionPage' && /*#__PURE__*/_react["default"].createElement(_FunctionTable["default"], {
|
|
371
|
+
_fetch: _fetch,
|
|
372
|
+
onChange: function onChange(value) {
|
|
373
|
+
return setLinkUrl(value);
|
|
374
|
+
}
|
|
375
|
+
}), selected === 'Coupons' && /*#__PURE__*/_react["default"].createElement(_CouponTable["default"], {
|
|
376
|
+
_fetch: _fetch,
|
|
377
|
+
onChange: function onChange(value) {
|
|
378
|
+
return setLinkUrl(value);
|
|
379
|
+
}
|
|
380
|
+
}), selected === 'BundleCampaign' && /*#__PURE__*/_react["default"].createElement(_BundleCampaign["default"], {
|
|
381
|
+
_fetch: _fetch,
|
|
382
|
+
onChange: function onChange(value) {
|
|
383
|
+
return setLinkUrl(value);
|
|
384
|
+
}
|
|
385
|
+
}), selected === 'Video' && /*#__PURE__*/_react["default"].createElement(_SelectVideoModal["default"], {
|
|
386
|
+
_fetch: _fetch,
|
|
387
|
+
setUrl: function setUrl(value) {
|
|
388
|
+
return setLinkUrl(value);
|
|
389
|
+
}
|
|
390
|
+
}), selected === 'ShareURL' && /*#__PURE__*/_react["default"].createElement(_ShareUrl["default"], {
|
|
391
|
+
_fetch: _fetch,
|
|
392
|
+
onChange: function onChange(value) {
|
|
393
|
+
return setLinkUrl(value);
|
|
394
|
+
}
|
|
395
|
+
}), selected === 'MiniApp' && /*#__PURE__*/_react["default"].createElement(_MiniAppTable["default"], {
|
|
396
|
+
_fetch: _fetch,
|
|
397
|
+
onChange: function onChange(value) {
|
|
398
|
+
return setLinkUrl(value);
|
|
399
|
+
}
|
|
400
|
+
}), selected === 'Store' && /*#__PURE__*/_react["default"].createElement(_StoreTable["default"], {
|
|
401
|
+
_fetch: _fetch,
|
|
402
|
+
onChange: function onChange(value) {
|
|
403
|
+
return setLinkUrl(value);
|
|
404
|
+
}
|
|
405
|
+
}), selected === 'AffiliateProduct' && /*#__PURE__*/_react["default"].createElement(_AffiliateProductTable["default"], {
|
|
406
|
+
_fetch: _fetch,
|
|
407
|
+
onChange: function onChange(value) {
|
|
408
|
+
return setLinkUrl(value);
|
|
409
|
+
}
|
|
410
|
+
}), selected === 'AffiliateStore' && /*#__PURE__*/_react["default"].createElement(_AffiliateStore["default"], {
|
|
411
|
+
_fetch: _fetch,
|
|
412
|
+
onChange: function onChange(value) {
|
|
413
|
+
return setLinkUrl(value);
|
|
414
|
+
}
|
|
415
|
+
}), selected === 'MiniApi' && /*#__PURE__*/_react["default"].createElement(_MiniAppApi["default"], {
|
|
416
|
+
_fetch: _fetch,
|
|
417
|
+
onChange: function onChange(value) {
|
|
418
|
+
return setLinkUrl(value);
|
|
419
|
+
}
|
|
420
|
+
}), selected === 'AffiliatePlatform' && /*#__PURE__*/_react["default"].createElement(_AffiliatePlatform["default"], {
|
|
421
|
+
_fetch: _fetch,
|
|
422
|
+
onChange: function onChange(value) {
|
|
423
|
+
return setLinkUrl(value);
|
|
424
|
+
}
|
|
425
|
+
}), selected === 'InterestedMerchants' && /*#__PURE__*/_react["default"].createElement(_InterestedMerchants["default"], {
|
|
426
|
+
_fetch: _fetch,
|
|
427
|
+
onChange: function onChange(value) {
|
|
428
|
+
return setLinkUrl(value);
|
|
429
|
+
}
|
|
430
|
+
}), selected === 'InterestedProducts' && /*#__PURE__*/_react["default"].createElement(_InterestedProducts["default"], {
|
|
431
|
+
_fetch: _fetch,
|
|
432
|
+
onChange: function onChange(value) {
|
|
433
|
+
return setLinkUrl(value);
|
|
434
|
+
}
|
|
435
|
+
}), selected === 'MerchantStory' && /*#__PURE__*/_react["default"].createElement(_MerchantStory["default"], {
|
|
436
|
+
_fetch: _fetch,
|
|
437
|
+
onChange: function onChange(value) {
|
|
438
|
+
return setLinkUrl(value);
|
|
439
|
+
}
|
|
440
|
+
}), selected === 'AffiliateMissionDetail' && /*#__PURE__*/_react["default"].createElement(_MissionDetail["default"], {
|
|
441
|
+
_fetch: _fetch,
|
|
442
|
+
onChange: function onChange(value) {
|
|
443
|
+
return setLinkUrl(value);
|
|
444
|
+
}
|
|
445
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
436
446
|
className: "footer"
|
|
437
447
|
}, selected === 'FilteredProduct' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
438
448
|
className: "total"
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
left: unset !important;
|
|
5
5
|
|
|
6
6
|
.cylon-modal .cylon-modal-content .cylon-modal-body {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
padding-bottom: 60px !important;
|
|
8
|
+
padding-top: 0 !important;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
.urlModalWrap {
|
|
11
12
|
font-family: 'Open Sans';
|
|
12
13
|
font-style: normal;
|
|
@@ -69,10 +70,40 @@
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
}
|
|
73
|
+
|
|
72
74
|
.shareUrlWrap {
|
|
73
75
|
height: 500px;
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
.types-list {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
flex-wrap: wrap;
|
|
82
|
+
gap: 12px;
|
|
83
|
+
margin-top: 20px;
|
|
84
|
+
margin-bottom: 20px;
|
|
85
|
+
|
|
86
|
+
.tag {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
width: 145px;
|
|
89
|
+
height: 36px;
|
|
90
|
+
background-color: #F5F6F7;
|
|
91
|
+
border-radius: 4px;
|
|
92
|
+
line-height: 36px;
|
|
93
|
+
text-align: center;
|
|
94
|
+
color: #232F46;
|
|
95
|
+
font-weight: 400;
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
border: 1px solid #F5F6F7;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
|
|
100
|
+
&.active {
|
|
101
|
+
border: 1px solid #2F54EB;
|
|
102
|
+
color: #2F54EB;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
76
107
|
.footer {
|
|
77
108
|
padding: 10px 0;
|
|
78
109
|
display: flex;
|
|
@@ -91,11 +122,13 @@
|
|
|
91
122
|
border: none;
|
|
92
123
|
margin-right: 12px;
|
|
93
124
|
}
|
|
125
|
+
|
|
94
126
|
.btn-confirm {
|
|
95
127
|
background: #2F54EB;
|
|
96
128
|
border: none;
|
|
97
129
|
border-radius: 6px;
|
|
98
130
|
}
|
|
131
|
+
|
|
99
132
|
.total {
|
|
100
133
|
font-size: 13px;
|
|
101
134
|
color: #2d3040;
|
|
@@ -19,8 +19,6 @@ var _ImageLabel = _interopRequireDefault(require("../ImageLabel"));
|
|
|
19
19
|
|
|
20
20
|
var _components = require("../../../../meta-comp/components");
|
|
21
21
|
|
|
22
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
23
|
-
|
|
24
22
|
var _locale = require("../../../../locale");
|
|
25
23
|
|
|
26
24
|
require("./index.less");
|
|
@@ -130,10 +128,10 @@ function (_super) {
|
|
|
130
128
|
layout = _m.layout,
|
|
131
129
|
imgHeight = _m.imgHeight,
|
|
132
130
|
imgWidth = _m.imgWidth,
|
|
133
|
-
|
|
134
|
-
rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "
|
|
131
|
+
showDiscountTag = _m.showDiscountTag,
|
|
132
|
+
rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag"]); // const promotions = getPromotionList(data);
|
|
133
|
+
|
|
135
134
|
|
|
136
|
-
var promotions = (0, _businessUtil.getPromotionList)(data);
|
|
137
135
|
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
138
136
|
var oldPrice = null;
|
|
139
137
|
|
|
@@ -178,22 +176,11 @@ function (_super) {
|
|
|
178
176
|
}), /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
179
177
|
labels: imgLabels,
|
|
180
178
|
small: true
|
|
181
|
-
}), ((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
179
|
+
}), (((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
182
180
|
className: "discount-tag"
|
|
183
181
|
}, data.discountPercent, "% off")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
182
|
className: "content-wrap"
|
|
185
|
-
},
|
|
186
|
-
className: "promotions-wrap"
|
|
187
|
-
}, promotions.map(function (promot, index) {
|
|
188
|
-
return /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
189
|
-
key: index,
|
|
190
|
-
className: "promotion-item",
|
|
191
|
-
data: __assign(__assign({}, panelProps.label), {
|
|
192
|
-
text: promot
|
|
193
|
-
}),
|
|
194
|
-
readonly: true
|
|
195
|
-
});
|
|
196
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
184
|
className: "product-name-wrap"
|
|
198
185
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
186
|
className: "box"
|
|
@@ -234,7 +234,7 @@ function (_super) {
|
|
|
234
234
|
style: {
|
|
235
235
|
color: panelProps.salesPrice.content.color
|
|
236
236
|
}
|
|
237
|
-
})), type !== 'groupBuy' && !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
237
|
+
})), type !== 'groupBuy' && !showProgress && data.salesCnt > 0 && data.displaySalesCntFlag === 'Y' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
238
238
|
className: "sold-count"
|
|
239
239
|
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold"))), showProgress && ((_d = panelProps.salesProgress) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
240
240
|
className: "progress-wrap"
|
|
@@ -821,6 +821,7 @@ function (_super) {
|
|
|
821
821
|
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
|
|
822
822
|
},
|
|
823
823
|
panelProps: panelProps.content,
|
|
824
|
+
showDiscountTag: true,
|
|
824
825
|
showProgress: false
|
|
825
826
|
});
|
|
826
827
|
})), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
|
|
11
|
-
|
|
12
10
|
var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
|
|
13
11
|
|
|
14
12
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
@@ -76,14 +74,8 @@ function (_super) {
|
|
|
76
74
|
name: (0, _locale.i18n)('FILTER'),
|
|
77
75
|
value: null,
|
|
78
76
|
metaOption: panelProps.filter
|
|
79
|
-
}, {
|
|
80
|
-
|
|
81
|
-
name: (0, _locale.i18n)('LABEL'),
|
|
82
|
-
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
83
|
-
data: panelProps.label
|
|
84
|
-
}),
|
|
85
|
-
metaOption: panelProps.label
|
|
86
|
-
}, {
|
|
77
|
+
}, // { key: '1', name: i18n('LABEL'), value: <ButtonConfig data={panelProps.label} />, metaOption: panelProps.label },
|
|
78
|
+
{
|
|
87
79
|
key: '2',
|
|
88
80
|
name: (0, _locale.i18n)('PRODUCT_NAME'),
|
|
89
81
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
package/lib/constants/index.js
CHANGED
|
@@ -90,7 +90,8 @@ var urlTypeMap = {
|
|
|
90
90
|
AFFILIATE_PLATFORM: 'AffiliatePlatform',
|
|
91
91
|
INTERESTED_MERCHANTS: 'InterestedMerchants',
|
|
92
92
|
INTERESTED_PRODUCTS: 'InterestedProducts',
|
|
93
|
-
MERCHANT_STORY: 'MerchantStory'
|
|
93
|
+
MERCHANT_STORY: 'MerchantStory',
|
|
94
|
+
AFFILIATE_MISSION_DETAIL: 'AffiliateMissionDetail'
|
|
94
95
|
};
|
|
95
96
|
exports.urlTypeMap = urlTypeMap;
|
|
96
97
|
var respCodeMap = {
|
|
@@ -75,7 +75,7 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
75
75
|
|
|
76
76
|
case _constants.urlTypeMap.STORE_CATEGORY:
|
|
77
77
|
// 商品列表
|
|
78
|
-
link = "/product/list
|
|
78
|
+
link = "/product/list/" + value;
|
|
79
79
|
params = {
|
|
80
80
|
action: 'jump',
|
|
81
81
|
params: {
|
|
@@ -255,6 +255,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
255
255
|
};
|
|
256
256
|
break;
|
|
257
257
|
|
|
258
|
+
case _constants.urlTypeMap.AFFILIATE_MISSION_DETAIL:
|
|
259
|
+
// affiliate mission detail
|
|
260
|
+
link = "/taskDetail/" + value;
|
|
261
|
+
params = {
|
|
262
|
+
action: 'jump',
|
|
263
|
+
params: {
|
|
264
|
+
type: 'AFFILIATE_MISSION_DETAIL',
|
|
265
|
+
url: value
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
break;
|
|
269
|
+
|
|
258
270
|
default:
|
|
259
271
|
var map = {
|
|
260
272
|
'/main/cart': 'CART',
|