@fonixtree/magic-design 2.0.207 → 2.0.210

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 (153) 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.js +24 -0
  22. package/es/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  23. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  24. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  25. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  26. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  27. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  28. package/es/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  29. package/es/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  30. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  31. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  32. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  33. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  34. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  35. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  36. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  37. package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  38. package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  39. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  40. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  41. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  42. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  43. package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  44. package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  45. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  46. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  47. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  48. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  49. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  50. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  51. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  52. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  53. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  54. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  55. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  56. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  57. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  58. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  59. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  60. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  61. package/es/constants/component-types.js +10 -4
  62. package/es/constants/index.js +4 -0
  63. package/es/core/Designer/ConfigPanel/index.js +1 -0
  64. package/es/core/Designer/index.js +9 -3
  65. package/es/core/Renderer/index.js +4 -2
  66. package/es/decorator/compositeDecorator.js +1 -1
  67. package/es/locale/ar/ar.json +4 -0
  68. package/es/locale/en/en.json +4 -0
  69. package/es/locale/es/es.json +4 -0
  70. package/es/locale/mn/mn.json +18 -1
  71. package/es/meta-comp/components/Text/index.js +17 -4
  72. package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
  73. package/es/meta-comp/config-panels/TextConfig/index.js +28 -7
  74. package/es/meta-comp/config-panels/TextConfig/index.less +27 -0
  75. package/es/utils/commonUtil.js +17 -1
  76. package/es/utils/coreUtil.js +1 -1
  77. package/lib/common/GroupList/index.js +6 -2
  78. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
  79. package/lib/composite-comp/bol/components/Banner/mobile/index.js +8 -2
  80. package/lib/composite-comp/bol/components/Banner/pc/index.js +8 -2
  81. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
  82. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
  83. package/lib/composite-comp/bol/components/Carousel/pc/index.js +12 -6
  84. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
  85. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
  86. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
  87. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
  88. package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
  89. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
  90. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
  91. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
  92. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
  93. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
  94. package/lib/composite-comp/common/components/MonpayProductItem/index.js +4 -0
  95. package/lib/composite-comp/common/components/ProductItem/index.js +29 -5
  96. package/lib/composite-comp/common/components/ProductItem/index.less +15 -1
  97. package/lib/composite-comp/common/components/WatermarkLabel/index.js +24 -0
  98. package/lib/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  99. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  100. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  101. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  102. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  103. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  104. package/lib/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  105. package/lib/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  106. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  107. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  108. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  109. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  110. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  111. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  112. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  113. package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  114. package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  115. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  116. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  117. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  118. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  119. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  120. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  121. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  122. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  123. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  124. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  125. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  126. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  127. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  128. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  129. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  130. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  131. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  132. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  133. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  134. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  135. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  136. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  137. package/lib/constants/component-types.js +10 -4
  138. package/lib/constants/index.js +4 -0
  139. package/lib/core/Designer/ConfigPanel/index.js +1 -0
  140. package/lib/core/Designer/index.js +9 -3
  141. package/lib/core/Renderer/index.js +4 -2
  142. package/lib/decorator/compositeDecorator.js +1 -1
  143. package/lib/locale/ar/ar.json +4 -0
  144. package/lib/locale/en/en.json +4 -0
  145. package/lib/locale/es/es.json +4 -0
  146. package/lib/locale/mn/mn.json +18 -1
  147. package/lib/meta-comp/components/Text/index.js +17 -4
  148. package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
  149. package/lib/meta-comp/config-panels/TextConfig/index.js +28 -7
  150. package/lib/meta-comp/config-panels/TextConfig/index.less +27 -0
  151. package/lib/utils/commonUtil.js +17 -1
  152. package/lib/utils/coreUtil.js +1 -1
  153. package/package.json +1 -1
@@ -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;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _mobile = _interopRequireDefault(require("./mobile"));
11
+
12
+ var _defaultJSON = require("./defaultJSON");
13
+
14
+ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
+ var c = arguments.length,
52
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
+ d;
54
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
+ }
57
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
58
+ };
59
+
60
+ var PersonalInformation =
61
+ /** @class */
62
+ function (_super) {
63
+ __extends(PersonalInformation, _super);
64
+
65
+ function PersonalInformation() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+
69
+ PersonalInformation.prototype.render = function () {
70
+ var nodeData = this.props.nodeData;
71
+ return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
+ data: nodeData
73
+ }));
74
+ };
75
+
76
+ PersonalInformation.defaultProps = {};
77
+ PersonalInformation.type = 'PERSONAL_INFOMATION_SECOND';
78
+ PersonalInformation.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
+ PersonalInformation = __decorate([_compositeDecorator["default"]], PersonalInformation);
80
+ return PersonalInformation;
81
+ }(_react.Component);
82
+
83
+ var _default = PersonalInformation;
84
+ exports["default"] = _default;