@fonixtree/magic-design 0.0.38 → 0.0.40

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 (23) hide show
  1. package/es/composite-comp/common/components/ProductItem/index.less +2 -4
  2. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +1 -3
  3. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +24 -36
  4. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -273
  5. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +2 -8
  6. package/es/composite-comp/dito/components/Recommend/mobile/index.js +38 -26
  7. package/es/composite-comp/dito/components/Recommend/pc/index.js +22 -30
  8. package/es/constants/layout.js +6 -6
  9. package/es/meta-comp/components/Image/image/default-img.png +0 -0
  10. package/es/meta-comp/components/Image/index.js +6 -0
  11. package/lib/composite-comp/common/components/ProductItem/index.less +2 -4
  12. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +1 -3
  13. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +24 -36
  14. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -273
  15. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +2 -8
  16. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +38 -26
  17. package/lib/composite-comp/dito/components/Recommend/pc/index.js +22 -30
  18. package/lib/constants/layout.js +6 -6
  19. package/lib/meta-comp/components/Image/image/default-img.png +0 -0
  20. package/lib/meta-comp/components/Image/index.js +6 -0
  21. package/package.json +1 -1
  22. package/es/meta-comp/components/Image/image/defalut-img.png +0 -0
  23. package/lib/meta-comp/components/Image/image/defalut-img.png +0 -0
@@ -68,11 +68,9 @@
68
68
  font-family: 'Montserrat';
69
69
  font-style: normal;
70
70
  font-weight: 700;
71
- font-size: 8px;
71
+ font-size: 12px;
72
72
  line-height: 15px;
73
- color: #fff;
74
- padding: 0 4px;
75
- background-color: #CE1126;
73
+ color: #2F3043;
76
74
  }
77
75
 
78
76
  .old-price {
@@ -7,8 +7,6 @@ exports.getDefaultJSON = exports.MobileNavGroupSourceJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
- var _locale = require("../../../../locale");
11
-
12
10
  var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
13
11
  var groupId = (0, _uuid.v4)();
14
12
  return {
@@ -39,7 +37,7 @@ var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
39
37
  open: true,
40
38
  type: 'TEXT',
41
39
  specialContent: [],
42
- text: (0, _locale.i18n)('NAVIGATION_NAME'),
40
+ text: 'name',
43
41
  content: {
44
42
  sizeType: 'Headline 1',
45
43
  fontFamily: 'Open Sans',
@@ -11,9 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
12
  require("./index.less");
13
13
 
14
- var _AlignSelector = require("../../../../../common/AlignSelector");
15
-
16
- var _businessUtil = require("../../../../../utils/businessUtil");
14
+ var _components = require("../../../../../meta-comp/components");
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
@@ -57,25 +55,12 @@ function (_super) {
57
55
 
58
56
  _this.getCardStyle = function (source, i) {
59
57
  var data = _this.props.data;
60
- var cardStyle = {
61
- textAlign: data.customize.align
62
- };
63
-
64
- if (data.customize.layout.h5Layout !== 'centerM' && data.customize.layout.h5Layout !== 'normal1') {
65
- cardStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
66
- }
58
+ var cardStyle = {};
59
+ cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '2%' : 0;
67
60
 
68
- if (data.customize.layout.h5Layout === 'normal3') {
61
+ if (data.customize.layout === 'newline') {
62
+ cardStyle.marginBottom = 12;
69
63
  cardStyle.width = _this.calcWidth(data.customize.rowNum);
70
- cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '2%' : 0;
71
- }
72
-
73
- if (source.background.bgType == 'color') {
74
- cardStyle.backgroundColor = source.background.color;
75
- cardStyle.opacity = source.background.opacity ? source.background.opacity : 1;
76
- } else {
77
- cardStyle.backgroundImage = "url(" + source.background.image + ")";
78
- cardStyle.backgroundPosition = 'center';
79
64
  }
80
65
 
81
66
  return cardStyle;
@@ -85,11 +70,11 @@ function (_super) {
85
70
  }
86
71
 
87
72
  NavigationMobile.prototype.render = function () {
73
+ var _this = this;
74
+
88
75
  var data = this.props.data; // const { ready } = this.state;
89
- // console.log('----imagetext mobile', data);
90
76
 
91
- var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
92
- wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
77
+ console.log('----nav mobile', data); // if (data.background.bgType === 'color') {
93
78
  // wrapStyle.backgroundColor = data.background.color;
94
79
  // wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
95
80
  // } else {
@@ -97,25 +82,28 @@ function (_super) {
97
82
  // wrapStyle.backgroundPosition = 'center';
98
83
  // }
99
84
 
100
- var cardBtnStyle = {};
101
-
102
- if (data.customize.layout.h5Layout === 'normal3') {
103
- cardBtnStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
104
- }
105
-
106
- if (data.customize.layout.h5Layout === 'normal2' || data.customize.layout.h5Layout === 'normal1' || data.customize.layout.h5Layout === 'outsideM') {
107
- cardBtnStyle.justifyContent = _AlignSelector.alignItemMap[data.customize.align];
108
- }
109
-
110
85
  return /*#__PURE__*/_react["default"].createElement("div", {
111
- className: (0, _classnames["default"])('mobile-navigation-mobile', data.customize.layout.h5Layout)
86
+ className: (0, _classnames["default"])('mobile-navigation-mobile', data.customize.layout)
112
87
  }, (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
113
88
  className: "group-wrap"
114
89
  }, data.groupSource.map(function (source, i) {
115
90
  return /*#__PURE__*/_react["default"].createElement("div", {
116
91
  key: source.id,
117
- className: data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card'
118
- }, "11");
92
+ className: "one-card" // className={data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card'}
93
+ ,
94
+ style: _this.getCardStyle(source, i)
95
+ }, source.image.open && /*#__PURE__*/_react["default"].createElement("div", {
96
+ className: "card-image-wrap"
97
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
98
+ className: "card-image",
99
+ data: source.image,
100
+ limitWidthHeight: true,
101
+ maxHeight: 82,
102
+ scale: 0.5
103
+ })), source.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
104
+ className: "card-text",
105
+ data: source.title
106
+ }));
119
107
  })));
120
108
  };
121
109
 
@@ -1,292 +1,37 @@
1
- .image-text-mobile {
1
+ .mobile-navigation-mobile {
2
2
  // display: flex;
3
3
  // flex-direction: column;
4
- padding: 17px 0;
5
- .headline {
6
- margin-bottom: 8px;
7
- }
8
- .subtitle {
9
- margin-bottom: 36px;
10
- }
11
- .group-wrap .one-card .card-btn-wrap {
12
- .card-first-btn, .card-second-btn {
13
- width: fit-content;
14
- }
15
- }
16
-
17
- .btn-wrap {
18
- display: flex;
19
- width: 100%;
20
- justify-content: center;
21
-
22
- .first-btn {
23
- margin-top: 36px;
24
- }
25
- .second-btn {
26
- margin-top: 36px;
27
- margin-left: 12px;
28
- }
29
- }
30
- }
31
- .normal1 {
32
- .group-wrap {
33
- padding: 0 15px;
34
- width: 100%;
35
- .one-card {
36
- display: flex;
37
- align-items: stretch;
38
- padding: 18px;
39
- margin-bottom: 8px;
40
- &:last-of-type {
41
- margin-bottom: 0;
42
- }
43
- .card-image-wrap {
44
- flex-shrink: 0;
45
- margin-right: 12px;
46
- }
47
- .card-content-wrap {
48
- flex: 1;
49
- display: flex;
50
- flex-direction: column;
51
- justify-content: center;
52
- .card-title {
53
- margin-bottom: 6px;
54
- text-align: left !important;
55
- }
56
- .card-text {
57
- margin-bottom: 12px;
58
- text-align: left !important;
59
- }
60
- .card-btn-wrap {
61
- display: flex;
62
- .card-first-btn {
63
- margin-right: 12px;
64
- }
65
- }
66
- }
67
- }
68
- }
69
- }
70
-
71
- .normal2 {
72
- .group-wrap {
73
- width: 100%;
74
- padding: 0 15px;
75
- .one-card {
76
- width: 100%;
77
- padding: 20px 16px;
78
- margin-bottom: 36px;
79
- &:last-of-type {
80
- margin-bottom: 0;
81
- }
82
- .card-image-wrap {
83
- .card-image {
84
- width: fit-content;
85
- margin: 0 auto;
86
- }
87
- }
88
- .card-content-wrap {
89
- .card-title {
90
- margin-bottom: 8px;
91
- }
92
- .card-text {
93
- margin-bottom: 16px;
94
- }
95
- .card-btn-wrap {
96
- display: flex;
97
- .card-first-btn {
98
- margin-right: 12px;
99
- }
100
- }
101
- }
102
- }
103
- }
104
- }
105
- .normal3 {
4
+ padding: 18px 0;
106
5
  .group-wrap {
6
+ padding: 0 20px;
107
7
  display: flex;
108
- // margin-bottom: 36px;
109
- // margin-top: 36px;
110
- flex-wrap: wrap;
111
- width: 100%;
112
- padding: 0 15px;
113
-
114
8
  .one-card {
115
- display: flex;
116
- flex-direction: column;
117
- .card-image-wrap {
118
- width: 100%;
119
- .card-image {
120
- // max-height: 107px;
121
- width: fit-content;
122
- margin: 0 auto 7px;
123
- }
124
- }
9
+ // display: flex;
125
10
 
126
- .card-title {
11
+ .card-image-wrap {
127
12
  margin-bottom: 4px;
128
- }
129
-
130
- .card-text {
131
- margin-bottom: 7px;
132
- }
133
- .card-btn-wrap {
134
- display: flex;
135
- flex-direction: column;
136
- }
137
-
138
- .card-second-btn {
139
- margin-top: 8px;
13
+ width: 100%;
140
14
  }
141
15
  }
142
- .card-margin-bottom {
143
- margin-bottom: 10px;
144
- }
145
- }
16
+ }
17
+
146
18
  }
147
19
 
148
- .outsideM {
20
+ .newline {
149
21
  .group-wrap {
150
- padding: 0 15px;
151
- width: 100%;
152
- .one-card {
153
- margin-top: 35px;
154
- position: relative;
155
- padding: 30px 10px 20px 36px;
156
- .card-image-wrap {
157
- position: absolute;
158
- left: 18px;
159
- top: 0;
160
- transform: translateY(-50%);
161
- }
162
- .card-content-wrap {
163
- .card-title {
164
- margin-bottom: 4px;
165
- text-align: left !important;
166
- }
167
- .card-text {
168
- margin-bottom: 12px;
169
- text-align: left !important;
170
- }
171
- .card-btn-wrap {
172
- display: flex;
173
- .card-first-btn {
174
- margin-right: 12px;
175
- }
176
- }
177
- }
178
- }
22
+ flex-wrap: wrap;
179
23
  }
180
24
  }
181
25
 
182
- .centerM {
26
+ .tile {
183
27
  .group-wrap {
184
- position: relative;
185
- width: 100%;
186
- &::before {
187
- content: '';
188
- position: absolute;
189
- width: 1px;
190
- height: 100%;
191
- border-right: 1px dashed #D2D9E5;
192
- left: 50%;
193
- transform: translateX(-50%);
194
- }
28
+ // overflow-x: scroll;
29
+ overflow-x: auto;
30
+ flex-wrap: nowrap;
31
+ scroll-snap-type: x;
195
32
  .one-card {
196
- width: calc((100% - 1px)/2);
197
- position: relative;
198
- padding: 0 14px 16px;
199
- &::before {
200
- content: '';
201
- position: absolute;
202
- border-radius: 50%;
203
- background: #2F54EB;
204
- width: 10px;
205
- height: 10px;
206
- z-index: 10;
207
- border: 2px solid #CCE3FF;
208
- }
209
- // &::before {
210
- // opacity: 0.2;
211
- // width: 10px;
212
- // height: 10px;
213
- // }
214
- &:nth-of-type(2n-1) {
215
- left: 0;
216
- &::before {
217
- right: -5px;
218
- top: 5px;
219
- }
220
- // &::after {
221
- // right: -3px;
222
- // top: 7px;
223
- // }
224
- .card-content-wrap {
225
- display: flex;
226
- flex-direction: column;
227
- align-items: flex-end;
228
- .card-title, .card-text {
229
- text-align: right !important;
230
- }
231
- .image-subtext-wrap {
232
- flex-direction: row-reverse;
233
- .card-image-wrap {
234
- margin-left: 8px;
235
- }
236
- // .card-text {
237
- // .m-meta-text {
238
- // text-align: right !important;
239
- // }
240
- // }
241
- }
242
- .card-btn-wrap {
243
- display: flex;
244
- flex-direction: column;
245
- align-items: flex-end;
246
- }
247
- }
248
- }
249
- &:nth-of-type(2n) {
250
- left: 50%;
251
- &::before {
252
- left: -5px;
253
- top: 5px;
254
- }
255
- // &::after {
256
- // left: -3px;
257
- // top: 7px;
258
- // }
259
- .card-content-wrap {
260
- .card-title, .card-text {
261
- text-align: left !important;
262
- }
263
- .image-subtext-wrap {
264
- .card-image-wrap {
265
- margin-right: 8px;
266
- }
267
- // .card-text {
268
- // .m-meta-text {
269
- // text-align: left !important;
270
- // }
271
- // }
272
- }
273
- }
274
- }
275
- .card-content-wrap {
276
- .card-title {
277
- margin-bottom: 10px;
278
- }
279
- .image-subtext-wrap {
280
- display: flex;
281
- margin-bottom: 20px;
282
- align-items: center;
283
- }
284
- .card-btn-wrap {
285
- .card-second-btn {
286
- margin-top: 12px;
287
- }
288
- }
289
- }
33
+ scroll-snap-align: end;
34
+ min-width: 30%;
290
35
  }
291
36
  }
292
- }
37
+ }
@@ -279,14 +279,8 @@ var getDefaultJSON = function getDefaultJSON() {
279
279
  }
280
280
  },
281
281
  customize: {
282
- layout: {
283
- pcLayout: 'layout3',
284
- h5Layout: 'layout1'
285
- },
286
- align: 'left',
287
- pcRowNum: 6,
288
- pcMaxRowNum: 6,
289
- pcMinRowNum: 5
282
+ layout: 'left',
283
+ align: 'left'
290
284
  },
291
285
  background: {
292
286
  opacity: 100,
@@ -227,6 +227,10 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
227
227
  };
228
228
 
229
229
  var LAYOUT_IMAGE_SIZE = {
230
+ left: {
231
+ w: '100%',
232
+ h: 165
233
+ },
230
234
  layout1: {
231
235
  w: '100%',
232
236
  h: 164
@@ -412,8 +416,10 @@ function (_super) {
412
416
  };
413
417
 
414
418
  _this.resetLayout = function () {
415
- var layout = _this.props.panelProps.customize.layout.h5Layout;
419
+ var layout = _this.props.panelProps.customize.layout.h5Layout || _this.props.panelProps.customize.layout; // 后面删除
420
+
416
421
  var LAYOUT_COLUMN = {
422
+ left: 2,
417
423
  layout1: 2,
418
424
  layout2: 1,
419
425
  layout3: 3
@@ -537,7 +543,7 @@ function (_super) {
537
543
  hideTabs: hideTabs
538
544
  });
539
545
  });
540
- var curLayout = panelProps.customize.layout.h5Layout;
546
+ var curLayout = panelProps.customize.layout.h5Layout || panelProps.customize.layout; // 后面删除
541
547
 
542
548
  if (curLayout !== this.preLayout) {
543
549
  this.resetLayout();
@@ -559,12 +565,18 @@ function (_super) {
559
565
  var bgStyle = this.getBackgroundStyle();
560
566
  var products = this.state["products" + tabIndex] || [];
561
567
  var isDivide = groupSource.length <= 3;
562
- var layout = panelProps.customize.layout.h5Layout;
568
+ var layout = panelProps.customize.layout.h5Layout || panelProps.customize.layout; // 后面删除
563
569
 
564
570
  var _seeAll = (0, _commonUtil.ensure)(function () {
565
571
  return groupSource[tabIndex].seeAll;
566
572
  }, '');
567
573
 
574
+ var imgHeight = (0, _commonUtil.ensure)(function () {
575
+ return LAYOUT_IMAGE_SIZE[layout].h;
576
+ }, 140);
577
+ var imgWidth = (0, _commonUtil.ensure)(function () {
578
+ return LAYOUT_IMAGE_SIZE[layout].w;
579
+ }, 140);
568
580
  return /*#__PURE__*/_react["default"].createElement("div", {
569
581
  className: "m-recommend-mobile",
570
582
  style: bgStyle
@@ -605,27 +617,7 @@ function (_super) {
605
617
  transform: "translateX(" + tabLeft + "px)",
606
618
  background: this.getTabBarActiveColor(panelProps)
607
619
  }
608
- })), ['layout1', 'layout2', 'layout3'].includes(layout) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
609
- key: "macyContainer",
610
- className: "macyContainer"
611
- }, products.map(function (item) {
612
- return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
613
- key: item.productId,
614
- data: item,
615
- fixHeight: layout === 'layout3',
616
- imgHeight: LAYOUT_IMAGE_SIZE[layout].h,
617
- imgWidth: LAYOUT_IMAGE_SIZE[layout].w,
618
- layout: layout === 'layout2' ? 'horizontal' : 'vertical',
619
- onItemClick: function onItemClick() {
620
- return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
621
- },
622
- panelProps: panelProps.content,
623
- showProgress: false
624
- });
625
- })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
626
- className: "btnSeeAll",
627
- data: _seeAll
628
- })) : /*#__PURE__*/_react["default"].createElement("div", {
620
+ })), ['layout4', 'layout5'].includes(layout) ? /*#__PURE__*/_react["default"].createElement("div", {
629
621
  key: "scrollContainer",
630
622
  className: (0, _classnames["default"])('scrollContainer', {
631
623
  pl_100: layout === 'layout5'
@@ -637,8 +629,8 @@ function (_super) {
637
629
  key: "scroll_" + item.productId,
638
630
  data: item,
639
631
  fixHeight: true,
640
- imgHeight: LAYOUT_IMAGE_SIZE[layout].h,
641
- imgWidth: LAYOUT_IMAGE_SIZE[layout].w,
632
+ imgHeight: imgHeight,
633
+ imgWidth: imgWidth,
642
634
  onItemClick: function onItemClick() {
643
635
  return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
644
636
  },
@@ -648,6 +640,26 @@ function (_super) {
648
640
  }), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
649
641
  className: "btnSeeAll",
650
642
  data: _seeAll
643
+ })) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
644
+ key: "macyContainer",
645
+ className: "macyContainer"
646
+ }, products.map(function (item) {
647
+ return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
648
+ key: item.productId,
649
+ data: item,
650
+ fixHeight: layout === 'layout3',
651
+ imgHeight: imgHeight,
652
+ imgWidth: imgWidth,
653
+ layout: layout === 'layout2' ? 'horizontal' : 'vertical',
654
+ onItemClick: function onItemClick() {
655
+ return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
656
+ },
657
+ panelProps: panelProps.content,
658
+ showProgress: false
659
+ });
660
+ })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
661
+ className: "btnSeeAll",
662
+ data: _seeAll
651
663
  })));
652
664
  };
653
665
 
@@ -228,24 +228,16 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
228
228
 
229
229
  var LAYOUT_IMAGE_SIZE = {
230
230
  layout1: {
231
- w: '100%',
232
- h: 164
231
+ w: 180,
232
+ h: 180
233
233
  },
234
234
  layout2: {
235
- w: 100,
236
- h: '100%'
235
+ w: 160,
236
+ h: 160
237
237
  },
238
238
  layout3: {
239
- w: '100%',
240
- h: 104
241
- },
242
- layout4: {
243
- w: 96,
244
- h: 96
245
- },
246
- layout5: {
247
- w: 110,
248
- h: 110
239
+ w: 180,
240
+ h: 180
249
241
  }
250
242
  };
251
243
 
@@ -412,16 +404,11 @@ function (_super) {
412
404
  };
413
405
 
414
406
  _this.resetLayout = function () {
415
- var layout = _this.props.panelProps.customize.layout.pcLayout;
416
- var LAYOUT_COLUMN = {
417
- layout1: 2,
418
- layout2: 1,
419
- layout3: 3
420
- };
421
- if (!LAYOUT_COLUMN[layout]) return;
407
+ var customize = _this.props.panelProps.customize;
408
+ if (customize.layout.pcLayout !== 'layout1') return;
422
409
  setTimeout(function () {
423
410
  if (document.querySelector('.macyContainer')) {
424
- _this.getMacy('.macyContainer', LAYOUT_COLUMN[layout]);
411
+ _this.getMacy('.macyContainer', customize.pcRowNum);
425
412
  }
426
413
  });
427
414
  };
@@ -565,6 +552,12 @@ function (_super) {
565
552
  return groupSource[tabIndex].seeAll;
566
553
  }, '');
567
554
 
555
+ var imgHeight = (0, _commonUtil.ensure)(function () {
556
+ return LAYOUT_IMAGE_SIZE[layout].h;
557
+ }, 140);
558
+ var imgWidth = (0, _commonUtil.ensure)(function () {
559
+ return LAYOUT_IMAGE_SIZE[layout].w;
560
+ }, 140);
568
561
  return /*#__PURE__*/_react["default"].createElement("div", {
569
562
  className: "m-recommend-pc",
570
563
  style: bgStyle
@@ -605,17 +598,16 @@ function (_super) {
605
598
  transform: "translateX(" + tabLeft + "px)",
606
599
  background: this.getTabBarActiveColor(panelProps)
607
600
  }
608
- })), ['layout1', 'layout2', 'layout3'].includes(layout) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
601
+ })), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
609
602
  key: "macyContainer",
610
603
  className: "macyContainer"
611
604
  }, products.map(function (item) {
612
605
  return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
613
606
  key: item.productId,
614
607
  data: item,
615
- fixHeight: layout === 'layout3',
616
- imgHeight: LAYOUT_IMAGE_SIZE[layout].h,
617
- imgWidth: LAYOUT_IMAGE_SIZE[layout].w,
618
- layout: layout === 'layout2' ? 'horizontal' : 'vertical',
608
+ fixHeight: true,
609
+ imgHeight: imgHeight,
610
+ imgWidth: imgWidth,
619
611
  onItemClick: function onItemClick() {
620
612
  return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
621
613
  },
@@ -628,7 +620,7 @@ function (_super) {
628
620
  })) : /*#__PURE__*/_react["default"].createElement("div", {
629
621
  key: "scrollContainer",
630
622
  className: (0, _classnames["default"])('scrollContainer', {
631
- pl_100: layout === 'layout5'
623
+ pl_100: layout === 'layout3'
632
624
  })
633
625
  }, products.map(function (item) {
634
626
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -637,8 +629,8 @@ function (_super) {
637
629
  key: "scroll_" + item.productId,
638
630
  data: item,
639
631
  fixHeight: true,
640
- imgHeight: LAYOUT_IMAGE_SIZE[layout].h,
641
- imgWidth: LAYOUT_IMAGE_SIZE[layout].w,
632
+ imgHeight: imgHeight,
633
+ imgWidth: imgWidth,
642
634
  onItemClick: function onItemClick() {
643
635
  return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
644
636
  },