@fonixtree/magic-design 2.0.207 → 2.0.209

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 (151) hide show
  1. package/es/common/GroupList/index.js +6 -2
  2. package/es/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
  3. package/es/composite-comp/bol/components/Banner/mobile/index.js +8 -2
  4. package/es/composite-comp/bol/components/Banner/pc/index.js +8 -2
  5. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
  6. package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
  7. package/es/composite-comp/bol/components/Carousel/pc/index.js +12 -6
  8. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
  9. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
  10. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
  11. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
  12. package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -1
  13. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
  14. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
  15. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
  16. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
  17. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
  18. package/es/composite-comp/common/components/MonpayProductItem/index.js +4 -0
  19. package/es/composite-comp/common/components/ProductItem/index.js +29 -5
  20. package/es/composite-comp/common/components/ProductItem/index.less +15 -1
  21. package/es/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  22. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  23. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  24. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  25. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  26. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  27. package/es/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  28. package/es/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  29. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  30. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  31. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  32. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  33. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  34. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  35. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  36. package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  37. package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  38. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  39. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  40. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  41. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  42. package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  43. package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  44. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  45. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  46. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  47. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  48. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  49. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  50. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  51. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  52. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  53. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  54. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  55. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  56. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  57. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  58. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  59. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  60. package/es/constants/component-types.js +10 -4
  61. package/es/constants/index.js +4 -0
  62. package/es/core/Designer/ConfigPanel/index.js +1 -0
  63. package/es/core/Designer/index.js +9 -3
  64. package/es/core/Renderer/index.js +4 -2
  65. package/es/decorator/compositeDecorator.js +1 -1
  66. package/es/locale/ar/ar.json +4 -0
  67. package/es/locale/en/en.json +4 -0
  68. package/es/locale/es/es.json +4 -0
  69. package/es/locale/mn/mn.json +18 -1
  70. package/es/meta-comp/components/Text/index.js +17 -4
  71. package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
  72. package/es/meta-comp/config-panels/TextConfig/index.js +28 -7
  73. package/es/meta-comp/config-panels/TextConfig/index.less +27 -0
  74. package/es/utils/commonUtil.js +17 -1
  75. package/es/utils/coreUtil.js +1 -1
  76. package/lib/common/GroupList/index.js +6 -2
  77. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
  78. package/lib/composite-comp/bol/components/Banner/mobile/index.js +8 -2
  79. package/lib/composite-comp/bol/components/Banner/pc/index.js +8 -2
  80. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
  81. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
  82. package/lib/composite-comp/bol/components/Carousel/pc/index.js +12 -6
  83. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
  84. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
  85. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
  86. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
  87. package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
  88. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
  89. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
  90. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
  91. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
  92. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
  93. package/lib/composite-comp/common/components/MonpayProductItem/index.js +4 -0
  94. package/lib/composite-comp/common/components/ProductItem/index.js +29 -5
  95. package/lib/composite-comp/common/components/ProductItem/index.less +15 -1
  96. package/lib/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  97. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  98. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  99. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  100. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  101. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  102. package/lib/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  103. package/lib/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  104. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  105. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  106. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  107. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  108. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  109. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  110. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  111. package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  112. package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  113. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  114. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  115. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  116. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  117. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  118. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  119. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  120. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  121. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  122. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  123. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  124. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  125. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  126. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  127. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  128. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  129. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  130. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  131. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  132. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  133. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  134. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  135. package/lib/constants/component-types.js +10 -4
  136. package/lib/constants/index.js +4 -0
  137. package/lib/core/Designer/ConfigPanel/index.js +1 -0
  138. package/lib/core/Designer/index.js +9 -3
  139. package/lib/core/Renderer/index.js +4 -2
  140. package/lib/decorator/compositeDecorator.js +1 -1
  141. package/lib/locale/ar/ar.json +4 -0
  142. package/lib/locale/en/en.json +4 -0
  143. package/lib/locale/es/es.json +4 -0
  144. package/lib/locale/mn/mn.json +18 -1
  145. package/lib/meta-comp/components/Text/index.js +17 -4
  146. package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
  147. package/lib/meta-comp/config-panels/TextConfig/index.js +28 -7
  148. package/lib/meta-comp/config-panels/TextConfig/index.less +27 -0
  149. package/lib/utils/commonUtil.js +17 -1
  150. package/lib/utils/coreUtil.js +1 -1
  151. package/package.json +1 -1
@@ -1,7 +1,19 @@
1
1
  .m-product-item-advertise {
2
- img {
2
+
3
+ img,
4
+ video,
5
+ .video-wrap {
3
6
  width: 100%;
4
7
  border-radius: 8px;
8
+ overflow: hidden;
9
+ }
10
+
11
+ .video-container {
12
+ background: unset;
13
+
14
+ .prism-player {
15
+ background-color: unset;
16
+ }
5
17
  }
6
18
  }
7
19
 
@@ -17,6 +29,7 @@
17
29
  .img-wrap {
18
30
  position: relative;
19
31
  overflow: hidden;
32
+ flex-shrink: 0;
20
33
 
21
34
  .product-img {
22
35
  width: 140px;
@@ -27,6 +40,7 @@
27
40
 
28
41
  .content-wrap {
29
42
  padding: 8px;
43
+ flex: 1;
30
44
 
31
45
  .promotions-wrap {
32
46
  display: flex;
@@ -0,0 +1,17 @@
1
+ .watermarkLabel {
2
+ position: absolute;
3
+ color: white;
4
+ pointer-events: none;
5
+ z-index: 1;
6
+ display: flex;
7
+ justify-content: center;
8
+ text-align: center;
9
+ align-items: center;
10
+ font-weight: 600;
11
+ background: rgba(0, 0, 0, 0.50);
12
+ bottom: 4px;
13
+ right: 4px;
14
+ font-size: 16px;
15
+ padding: 0px 9px;
16
+ border-radius: 7px;
17
+ }
@@ -304,7 +304,7 @@ function (_super) {
304
304
  key: item.id,
305
305
  data: item,
306
306
  onItemClick: function onItemClick() {
307
- (0, _coreUtil.clickUrl)("proDetail - " + item.offerId + " -" + (item.sppProductId || '') + " ");
307
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
308
308
  }
309
309
  });
310
310
  }))));
@@ -130,7 +130,7 @@ function (_super) {
130
130
  return null;
131
131
  };
132
132
 
133
- CountDown.prototype.componentDidUpdate = function () {
133
+ CountDown.prototype.componentDidMount = function () {
134
134
  var now = this.state.now;
135
135
 
136
136
  if (this.preTime != now) {
@@ -256,7 +256,7 @@ function (_super) {
256
256
  isWill: false
257
257
  };
258
258
 
259
- _this.getFlashData = function (pageSize, campaign) {
259
+ _this.getFlashData = function (pageSize, campaign, index, length) {
260
260
  return __awaiter(_this, void 0, void 0, function () {
261
261
  var res, pageId, _list;
262
262
 
@@ -278,7 +278,7 @@ function (_super) {
278
278
  _list = ((res === null || res === void 0 ? void 0 : res.list) || []).slice(0, 2);
279
279
 
280
280
  if (!(0, _coreUtil.isDesignMode)()) {
281
- if (_list.length === 0) this.props.onEmpty();
281
+ if (_list.length === 0 && index === length - 1) this.props.onEmpty();
282
282
  (0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, _list);
283
283
  }
284
284
 
@@ -299,10 +299,9 @@ function (_super) {
299
299
 
300
300
  _this.getNextFlashSale = function () {
301
301
  return __awaiter(_this, void 0, void 0, function () {
302
- var data, _i, _a, _b, i, s, v, pageId;
303
-
304
- return __generator(this, function (_c) {
305
- switch (_c.label) {
302
+ var data, i, arr, pageId;
303
+ return __generator(this, function (_a) {
304
+ switch (_a.label) {
306
305
  case 0:
307
306
  return [4
308
307
  /*yield*/
@@ -311,35 +310,34 @@ function (_super) {
311
310
  }, 'GET')];
312
311
 
313
312
  case 1:
314
- data = _c.sent();
313
+ data = _a.sent();
315
314
  if (!(data.length > 0)) return [3
316
315
  /*break*/
317
316
  , 6];
318
- _i = 0, _a = data.entries();
319
- _c.label = 2;
317
+ i = 0;
318
+ _a.label = 2;
320
319
 
321
320
  case 2:
322
- if (!(_i < _a.length)) return [3
321
+ if (!(i < data.length)) return [3
323
322
  /*break*/
324
323
  , 5];
325
- _b = _a[_i], i = _b[0], s = _b[1];
326
324
  return [4
327
325
  /*yield*/
328
- , this.getFlashData(2, s)];
326
+ , this.getFlashData(2, data[i], i, data.length)];
329
327
 
330
328
  case 3:
331
- v = _c.sent();
329
+ arr = _a.sent();
332
330
 
333
- if (v.length > 0) {
334
- return [2
335
- /*return*/
336
- , true]; // 查询到秒杀场次,立即退出
331
+ if (arr.length > 0) {
332
+ return [3
333
+ /*break*/
334
+ , 5]; // 查询到秒杀场次,立即退出
337
335
  }
338
336
 
339
- _c.label = 4;
337
+ _a.label = 4;
340
338
 
341
339
  case 4:
342
- _i++;
340
+ i++;
343
341
  return [3
344
342
  /*break*/
345
343
  , 2];
@@ -361,7 +359,7 @@ function (_super) {
361
359
  (0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, []);
362
360
  }
363
361
 
364
- _c.label = 7;
362
+ _a.label = 7;
365
363
 
366
364
  case 7:
367
365
  return [2
@@ -418,7 +416,7 @@ function (_super) {
418
416
  salePercent: isWill ? 0 : item.salePercent
419
417
  }),
420
418
  onItemClick: function onItemClick() {
421
- (0, _coreUtil.clickUrl)("proDetail - " + item.offerId + " -" + (item.sppProductId || '') + " ");
419
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
422
420
  }
423
421
  });
424
422
  }))));
@@ -301,7 +301,7 @@ function (_super) {
301
301
  key: item.id,
302
302
  data: item,
303
303
  onItemClick: function onItemClick() {
304
- (0, _coreUtil.clickUrl)("proDetail - " + item.offerId + " -" + (item.sppProductId || '') + " ");
304
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
305
305
  }
306
306
  });
307
307
  }))));
@@ -85,7 +85,7 @@ function (_super) {
85
85
 
86
86
 
87
87
  var imgLabels = ((_a = data.labels) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
88
- return f.position !== '6' && f.position !== '7';
88
+ return f.position !== '6' && f.position !== '7' && f.position !== '8';
89
89
  })) || [];
90
90
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
91
91
  className: "m-campaign-product-item",
@@ -74,19 +74,19 @@ function (_super) {
74
74
  var flashSale = panelProps.groupSource[0];
75
75
  var groupBuy = panelProps.groupSource[1];
76
76
  var bargain = panelProps.groupSource[2];
77
- var carouselHide = !flashSale.open && !groupBuy.open && !bargain.open;
77
+ var carouselHide = (!flashSale.open || flashSaleHide) && (!groupBuy.open || groupBuyHide) && (!bargain.open || bargainHide);
78
78
  return /*#__PURE__*/_react["default"].createElement("div", {
79
79
  className: "m-campaign-mobile"
80
- }, /*#__PURE__*/_react["default"].createElement("div", {
80
+ }, panelProps.title.headline.open && (!carouselHide || panelProps.content.image.open) && /*#__PURE__*/_react["default"].createElement("div", {
81
81
  className: "campaign-title"
82
- }, panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
82
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
83
83
  data: panelProps.title.headline
84
84
  })), /*#__PURE__*/_react["default"].createElement("div", {
85
85
  className: "campaign-content"
86
86
  }, !carouselHide && /*#__PURE__*/_react["default"].createElement("div", {
87
87
  className: "campaign-left"
88
88
  }, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
89
- autoplay: false,
89
+ autoplay: true,
90
90
  autoplaySpeed: 2000
91
91
  }, flashSale.open && !flashSaleHide && /*#__PURE__*/_react["default"].createElement(_FlashSale["default"], {
92
92
  onEmpty: function onEmpty() {
@@ -20,6 +20,9 @@
20
20
  .m-campaign-mobile .campaign-content .campaign-left .slick-track > div > div {
21
21
  height: 100%;
22
22
  }
23
+ .m-campaign-mobile .campaign-content .campaign-left .ant-carousel {
24
+ height: 100%;
25
+ }
23
26
  .m-campaign-mobile .campaign-content .campaign-left .slick-dots {
24
27
  height: 0.06rem;
25
28
  display: flex !important;
@@ -104,9 +104,6 @@
104
104
  .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap .content-wrap {
105
105
  flex: 1;
106
106
  }
107
- .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap .content-wrap .product-name-wrap {
108
- white-space: nowrap;
109
- }
110
107
  .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap .content-wrap .price-info-wrap {
111
108
  display: flex;
112
109
  }
@@ -93,12 +93,14 @@ function (_super) {
93
93
  }
94
94
 
95
95
  ProductItem.prototype.render = function () {
96
- var _a = this.props,
97
- data = _a.data,
98
- panelProps = _a.panelProps,
99
- onItemClick = _a.onItemClick,
100
- unknownPrice = _a.unknownPrice,
101
- rest = __rest(_a, ["data", "panelProps", "onItemClick", "unknownPrice"]);
96
+ var _a, _b;
97
+
98
+ var _c = this.props,
99
+ data = _c.data,
100
+ panelProps = _c.panelProps,
101
+ onItemClick = _c.onItemClick,
102
+ unknownPrice = _c.unknownPrice,
103
+ rest = __rest(_c, ["data", "panelProps", "onItemClick", "unknownPrice"]);
102
104
 
103
105
  var promotions = (0, _businessUtil.getPromotionList)(data);
104
106
  var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
@@ -129,6 +131,7 @@ function (_super) {
129
131
  var _price = integerPart + " " + (decimalPart ? '.' + decimalPart : '');
130
132
 
131
133
  var oldPrice = data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null;
134
+ var salePercent = Number(data.salePercent) / 100 || 0;
132
135
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
133
136
  className: (0, _classnames["default"])('m-pc-flash-product-item'),
134
137
  onClick: function onClick() {
@@ -170,7 +173,7 @@ function (_super) {
170
173
  style: {
171
174
  color: panelProps.salesPrice.content.color
172
175
  }
173
- })), /*#__PURE__*/_react["default"].createElement("div", {
176
+ })), ((_a = panelProps.salesProgressVisible) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement("div", {
174
177
  className: "rate-sold-wrap"
175
178
  }, /*#__PURE__*/_react["default"].createElement("div", {
176
179
  className: "rate-wrap"
@@ -180,9 +183,17 @@ function (_super) {
180
183
  type: "icon-star"
181
184
  }), /*#__PURE__*/_react["default"].createElement("span", {
182
185
  className: "rate-text"
183
- }, (0, _currencyUtil.numberToFixed)(5.0, 1))), data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
184
- className: "sold-count"
185
- }, (0, _commonUtil.convertCount)(data.salesCnt), " sold"))));
186
+ }, (0, _currencyUtil.numberToFixed)(5.0, 1))), /*#__PURE__*/_react["default"].createElement("div", {
187
+ className: "progress-container"
188
+ }, /*#__PURE__*/_react["default"].createElement("span", {
189
+ className: "text"
190
+ }, salePercent, "% Sold"), /*#__PURE__*/_react["default"].createElement("div", {
191
+ className: "progress",
192
+ style: {
193
+ width: salePercent + "%",
194
+ backgroundColor: (_b = panelProps.salesProgressVisible) === null || _b === void 0 ? void 0 : _b.color
195
+ }
196
+ })))));
186
197
  };
187
198
 
188
199
  ProductItem.defaultProps = {
@@ -11,6 +11,7 @@
11
11
  overflow: hidden;
12
12
  border-radius: 16px;
13
13
  border: 1px solid #E0E0E0;
14
+ flex-shrink: 0;
14
15
 
15
16
  .product-img {
16
17
  width: 270px;
@@ -21,6 +22,7 @@
21
22
 
22
23
  .content-wrap {
23
24
  padding: 8px;
25
+ flex: 1;
24
26
 
25
27
  .product-name-wrap {
26
28
  overflow: hidden;
@@ -54,6 +56,7 @@
54
56
  }
55
57
 
56
58
  .old-price {
59
+ width: auto !important;
57
60
  text-decoration: line-through;
58
61
  width: fit-content;
59
62
  }
@@ -61,7 +64,7 @@
61
64
  }
62
65
 
63
66
  .rate-sold-wrap {
64
- margin-top: 4px;
67
+ // margin-top: 4px;
65
68
  display: flex;
66
69
  align-items: center;
67
70
 
@@ -75,26 +78,47 @@
75
78
  color: #666666;
76
79
  margin-left: 4px;
77
80
  }
78
- }
79
-
80
- .sold-count {
81
- font-size: 16px;
82
- font-weight: 500;
83
- color: #666666;
84
- margin-left: 10px;
85
- display: flex;
86
- align-items: center;
87
81
 
88
- &:before {
82
+ &:after {
89
83
  content: '';
90
84
  display: block;
91
85
  width: 2px;
92
86
  height: 16px;
93
- background-color: #666666;
94
- margin-right: 10px;
87
+ background-color: #666;
88
+ margin: 0 8px;
89
+ }
90
+ }
91
+
92
+ .progress-container {
93
+ width: 100%;
94
+ height: 16px;
95
+ background-color: #F8B1B9;
96
+ border-radius: 8px;
97
+ position: relative;
98
+
99
+ .text {
100
+ font-family: Montserrat;
101
+ font-weight: 700;
102
+ font-size: 12px;
103
+ line-height: 16px;
104
+ letter-spacing: 0%;
105
+ color: #fff;
106
+ text-align: center;
107
+ position: absolute;
108
+ top: 0;
109
+ left: 0;
110
+ bottom: 0;
111
+ right: 0;
112
+ margin: auto;
113
+ }
114
+
115
+ .progress {
116
+ width: 10px;
117
+ border-radius: 8px;
118
+ height: 100%;
119
+ background: linear-gradient(289.79deg, #FCD117 -16.44%, #CE1126 58.47%, #0038A7 114.99%);
95
120
  }
96
121
  }
97
122
  }
98
123
  }
99
-
100
124
  }
@@ -497,12 +497,9 @@ function (_super) {
497
497
  }, ((_a = panelProps.title.image) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
498
498
  className: "icon",
499
499
  data: panelProps.title.image
500
- }), !(0, _coreUtil.isPc)() && panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
501
- className: "title",
502
- data: panelProps.title.headline
503
- }), !(0, _coreUtil.isPc)() && isWill && /*#__PURE__*/_react["default"].createElement("span", {
500
+ }), /*#__PURE__*/_react["default"].createElement("span", {
504
501
  className: "sub-title"
505
- }, (0, _locale.i18n)('NEXT')), ((_b = panelProps.title.countDown) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
502
+ }, isWill ? (0, _locale.i18n)('STARTS_IN') : (0, _locale.i18n)('ENDS_IN')), ((_b = panelProps.title.countDown) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
506
503
  effDate: effDate,
507
504
  expDate: expDate,
508
505
  now: now,
@@ -28,13 +28,13 @@
28
28
  }
29
29
 
30
30
  .sub-title {
31
- font-style: normal;
32
- font-weight: 600;
33
- font-size: 10px;
34
- line-height: 18px;
31
+ font-family: Avenir Next;
32
+ font-weight: 700;
33
+ font-size: 20px;
34
+ line-height: 48px;
35
+ letter-spacing: 0%;
35
36
  color: #2C2C2C;
36
- margin-right: 6px;
37
- align-self: end;
37
+ margin-right: 8px;
38
38
  }
39
39
  }
40
40
 
@@ -16,6 +16,10 @@ var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
16
16
  var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
17
17
  return {
18
18
  id: groupId,
19
+ adult: {
20
+ id: (0, _uuid.v4)(),
21
+ open: false
22
+ },
19
23
  image: {
20
24
  parentId: groupId,
21
25
  id: (0, _uuid.v4)(),
@@ -93,15 +93,20 @@ function (_super) {
93
93
  // wrapStyle.backgroundPosition = 'center';
94
94
  // }
95
95
 
96
+ var userIsAdult = localStorage.getItem('userIsAdult') === 'Y';
97
+
98
+ var _groupSource = data === null || data === void 0 ? void 0 : data.groupSource.filter(function (f) {
99
+ return userIsAdult || !f.adult.open;
100
+ });
101
+
96
102
  return /*#__PURE__*/_react["default"].createElement("div", {
97
103
  className: (0, _classnames["default"])('mobile-navigation-mobile', data.customize.layout)
98
- }, (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
104
+ }, _groupSource.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
99
105
  className: "group-wrap"
100
- }, data.groupSource.map(function (source, i) {
106
+ }, _groupSource.map(function (source, i) {
101
107
  return /*#__PURE__*/_react["default"].createElement("div", {
102
108
  key: source.id,
103
- className: "one-card" // className={data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card'}
104
- ,
109
+ className: "one-card",
105
110
  onClick: function onClick() {
106
111
  /** PTO 定制GA */
107
112
  if (window.magicDesign.pushGA) {
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = exports.PersonalInfoGroupSourceJSON = exports.OrdersGroupSourceJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
11
+ var groupId = (0, _uuid.v4)();
12
+ return {
13
+ id: groupId,
14
+ title: {
15
+ parentId: groupId,
16
+ id: (0, _uuid.v4)(),
17
+ open: true,
18
+ type: 'TEXT',
19
+ specialContent: [],
20
+ text: text || 'Name',
21
+ content: {
22
+ sizeType: 'Customize font styles',
23
+ fontFamily: 'Montserrat',
24
+ fontWeight: 500,
25
+ fontSize: 10,
26
+ color: '#fff',
27
+ width: 0,
28
+ textAlign: 'center'
29
+ },
30
+ underline: {
31
+ open: false,
32
+ textDecorationColor: '',
33
+ textDecorationStyle: 'solid'
34
+ },
35
+ vertical: {}
36
+ },
37
+ number: {
38
+ parentId: groupId,
39
+ id: (0, _uuid.v4)(),
40
+ open: true,
41
+ type: 'TEXT',
42
+ specialContent: [],
43
+ text: 0,
44
+ content: {
45
+ sizeType: 'Customize font styles',
46
+ fontFamily: 'Montserrat',
47
+ fontWeight: 600,
48
+ fontSize: 18,
49
+ color: '#fff',
50
+ width: 0,
51
+ textAlign: 'center'
52
+ },
53
+ underline: {
54
+ open: false,
55
+ textDecorationColor: '',
56
+ textDecorationStyle: 'solid'
57
+ },
58
+ vertical: {}
59
+ },
60
+ sourceType: text
61
+ };
62
+ };
63
+
64
+ exports.PersonalInfoGroupSourceJSON = PersonalInfoGroupSourceJSON;
65
+
66
+ var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
67
+ var groupId = (0, _uuid.v4)();
68
+ return {
69
+ id: groupId,
70
+ title: {
71
+ parentId: groupId,
72
+ id: (0, _uuid.v4)(),
73
+ open: true,
74
+ type: 'TEXT',
75
+ specialContent: [],
76
+ text: text || 'Name',
77
+ content: {
78
+ sizeType: 'Customize font styles',
79
+ fontFamily: 'Montserrat',
80
+ fontWeight: 600,
81
+ fontSize: 10,
82
+ color: '#3E3E3E',
83
+ width: 0,
84
+ textAlign: 'center'
85
+ },
86
+ underline: {
87
+ open: false,
88
+ textDecorationColor: '',
89
+ textDecorationStyle: 'solid'
90
+ },
91
+ vertical: {}
92
+ },
93
+ image: {
94
+ parentId: groupId,
95
+ id: (0, _uuid.v4)(),
96
+ open: true,
97
+ type: 'IMAGE',
98
+ content: {
99
+ h5Name: 'name2',
100
+ pcName: 'name2',
101
+ h5ImgSrc: '',
102
+ pcImgSrc: '',
103
+ clickUrl: ''
104
+ },
105
+ hover: {
106
+ open: false,
107
+ backgroundType: 'enlarge',
108
+ magnification: 1.5,
109
+ pcImgHoverUrl: '',
110
+ h5ImgHoverUrl: ''
111
+ }
112
+ },
113
+ sourceType: text
114
+ };
115
+ };
116
+
117
+ exports.OrdersGroupSourceJSON = OrdersGroupSourceJSON;
118
+
119
+ var getDefaultJSON = function getDefaultJSON() {
120
+ return {
121
+ id: (0, _uuid.v4)(),
122
+ type: 'PERSONAL_INFOMATION_SECOND',
123
+ login: {
124
+ open: true
125
+ },
126
+ decorationIcon: {
127
+ id: (0, _uuid.v4)(),
128
+ open: true,
129
+ type: 'IMAGE',
130
+ content: {
131
+ h5Name: 'name2',
132
+ pcName: 'name2',
133
+ h5ImgSrc: '',
134
+ pcImgSrc: '',
135
+ clickUrl: ''
136
+ },
137
+ hover: {
138
+ open: false,
139
+ backgroundType: 'enlarge',
140
+ magnification: 1.5,
141
+ pcImgHoverUrl: '',
142
+ h5ImgHoverUrl: ''
143
+ }
144
+ },
145
+ groupSource: [],
146
+ groupSource2: [OrdersGroupSourceJSON('To Pay'), OrdersGroupSourceJSON('To Ship'), OrdersGroupSourceJSON('To Receive')],
147
+ spacing: {
148
+ pc: {
149
+ paddingTop: 0,
150
+ paddingBottom: 0,
151
+ marginBottom: 0
152
+ },
153
+ mobile: {
154
+ paddingTop: 0,
155
+ paddingBottom: 0,
156
+ marginBottom: 0
157
+ }
158
+ },
159
+ background: {
160
+ opacity: 100,
161
+ color: '#fff',
162
+ image: '',
163
+ bgType: 'color'
164
+ }
165
+ };
166
+ };
167
+
168
+ exports.getDefaultJSON = getDefaultJSON;