@fonixtree/magic-design 2.0.200 → 2.0.202
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/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +14 -6
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +8 -2
- package/es/common/ColorPickerInput/index.less +2 -0
- package/es/common/ErrorBoundary/index.js +90 -0
- package/es/common/FontStyles/index.less +1 -1
- package/es/common/index.js +8 -0
- package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/es/composite-comp/common/components/ImageLabel/index.less +23 -7
- package/es/composite-comp/common/components/ProductItem/index.js +34 -24
- package/es/composite-comp/common/components/ProductItem/index.less +10 -15
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +65 -3
- package/es/composite-comp/dito/components/Bargain/defaultJSON.js +24 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +24 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +9 -1
- package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +24 -0
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +8 -5
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +19 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +12 -6
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -1
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +55 -1
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/card.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +47 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +24 -1
- package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +234 -0
- package/es/composite-comp/dito/components/SearchBanner/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/components/SearchBanner/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/dito/components/SearchBanner/index.js +108 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +301 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +108 -0
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +7 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +7 -0
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +10 -2
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +17 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +1 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +197 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.js +226 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/index.js +65 -0
- package/es/composite-comp/dito/second-config-panels/SearchBannerSecondConfig/index.js +98 -0
- package/es/composite-comp/nuri/components/AffiliateRecommend/mobile/index.js +1 -1
- package/es/composite-comp/nuri/components/AffiliateRecommend/mobile/index.less +15 -15
- package/es/composite-comp/public/components/Stores/mobile/index.less +3 -0
- package/es/constants/component-types.js +9 -3
- package/es/constants/index.js +4 -0
- package/es/core/Designer/ConfigPanel/index.js +1 -0
- package/es/core/Designer/index.js +2 -2
- package/es/decorator/compositeDecorator.js +9 -3
- package/es/locale/ar/ar.json +7 -0
- package/es/locale/en/en.json +7 -0
- package/es/locale/es/es.json +7 -0
- package/es/locale/mn/mn.json +4 -0
- package/lib/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +14 -6
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +8 -2
- package/lib/common/ColorPickerInput/index.less +2 -0
- package/lib/common/ErrorBoundary/index.js +90 -0
- package/lib/common/FontStyles/index.less +1 -1
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/lib/composite-comp/common/components/ImageLabel/index.less +23 -7
- package/lib/composite-comp/common/components/ProductItem/index.js +34 -24
- package/lib/composite-comp/common/components/ProductItem/index.less +10 -15
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +65 -3
- package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +24 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +24 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +9 -1
- package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +24 -0
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +8 -5
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +19 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +12 -6
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -1
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +55 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/card.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +47 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +24 -1
- package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +234 -0
- package/lib/composite-comp/dito/components/SearchBanner/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/components/SearchBanner/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/dito/components/SearchBanner/index.js +108 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +301 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +108 -0
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +7 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +7 -0
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +10 -2
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +17 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +1 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +197 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.js +226 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/index.js +65 -0
- package/lib/composite-comp/dito/second-config-panels/SearchBannerSecondConfig/index.js +98 -0
- package/lib/composite-comp/nuri/components/AffiliateRecommend/mobile/index.js +1 -1
- package/lib/composite-comp/nuri/components/AffiliateRecommend/mobile/index.less +15 -15
- package/lib/composite-comp/public/components/Stores/mobile/index.less +3 -0
- package/lib/constants/component-types.js +9 -3
- package/lib/constants/index.js +4 -0
- package/lib/core/Designer/ConfigPanel/index.js +1 -0
- package/lib/core/Designer/index.js +2 -2
- package/lib/decorator/compositeDecorator.js +9 -3
- package/lib/locale/ar/ar.json +7 -0
- package/lib/locale/en/en.json +7 -0
- package/lib/locale/es/es.json +7 -0
- package/lib/locale/mn/mn.json +4 -0
- package/package.json +1 -1
|
@@ -246,8 +246,11 @@ function (_super) {
|
|
|
246
246
|
_this.getData = function () {
|
|
247
247
|
return __awaiter(_this, void 0, void 0, function () {
|
|
248
248
|
var res;
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
|
|
250
|
+
var _a, _b;
|
|
251
|
+
|
|
252
|
+
return __generator(this, function (_c) {
|
|
253
|
+
switch (_c.label) {
|
|
251
254
|
case 0:
|
|
252
255
|
return [4
|
|
253
256
|
/*yield*/
|
|
@@ -256,14 +259,14 @@ function (_super) {
|
|
|
256
259
|
}, 'GET')];
|
|
257
260
|
|
|
258
261
|
case 1:
|
|
259
|
-
res =
|
|
262
|
+
res = _c.sent();
|
|
260
263
|
|
|
261
264
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
262
|
-
(0, _storeUtil.setMagicStore)("groupBuy_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, res.pageInfo.list);
|
|
265
|
+
(0, _storeUtil.setMagicStore)("groupBuy_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, (_a = res.pageInfo) === null || _a === void 0 ? void 0 : _a.list);
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
this.setState({
|
|
266
|
-
list: res.pageInfo.list
|
|
269
|
+
list: (_b = res.pageInfo) === null || _b === void 0 ? void 0 : _b.list
|
|
267
270
|
});
|
|
268
271
|
return [2
|
|
269
272
|
/*return*/
|
|
@@ -75,6 +75,25 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
75
75
|
login: {
|
|
76
76
|
open: true
|
|
77
77
|
},
|
|
78
|
+
decorationIcon: {
|
|
79
|
+
id: (0, _uuid.v4)(),
|
|
80
|
+
open: true,
|
|
81
|
+
type: 'IMAGE',
|
|
82
|
+
content: {
|
|
83
|
+
h5Name: 'name2',
|
|
84
|
+
pcName: 'name2',
|
|
85
|
+
h5ImgSrc: '',
|
|
86
|
+
pcImgSrc: '',
|
|
87
|
+
clickUrl: ''
|
|
88
|
+
},
|
|
89
|
+
hover: {
|
|
90
|
+
open: false,
|
|
91
|
+
backgroundType: 'enlarge',
|
|
92
|
+
magnification: 1.5,
|
|
93
|
+
pcImgHoverUrl: '',
|
|
94
|
+
h5ImgHoverUrl: ''
|
|
95
|
+
}
|
|
96
|
+
},
|
|
78
97
|
groupSource: [PersonalInfoGroupSourceJSON('Wishlist'), PersonalInfoGroupSourceJSON('Stores'), PersonalInfoGroupSourceJSON('Vouchers'), PersonalInfoGroupSourceJSON('Recently Viewed')],
|
|
79
98
|
spacing: {
|
|
80
99
|
pc: {
|
|
Binary file
|
|
@@ -499,7 +499,10 @@ function (_super) {
|
|
|
499
499
|
className: "pInfoWrap"
|
|
500
500
|
}, (0, _commonUtil.isLogin)() ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
501
501
|
className: "photoWrap"
|
|
502
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
502
|
+
}, data.decorationIcon.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
503
|
+
className: "decorationIcon",
|
|
504
|
+
data: data.decorationIcon
|
|
505
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
503
506
|
alt: "",
|
|
504
507
|
className: "photo",
|
|
505
508
|
src: userInfo.photo || _avatar["default"],
|
|
@@ -521,11 +524,14 @@ function (_super) {
|
|
|
521
524
|
}, userInfo.firstName || userInfo.nickName), /*#__PURE__*/_react["default"].createElement("p", {
|
|
522
525
|
className: "phone"
|
|
523
526
|
}, userInfo.mobilePhone))) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
524
|
-
className: "
|
|
525
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
className: "photoWrap"
|
|
528
|
+
}, data.decorationIcon.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
529
|
+
className: "decorationIcon",
|
|
530
|
+
data: data.decorationIcon
|
|
531
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
532
|
+
alt: "",
|
|
533
|
+
className: "photo",
|
|
534
|
+
src: _avatar["default"]
|
|
529
535
|
})), data.login.open && /*#__PURE__*/_react["default"].createElement("span", {
|
|
530
536
|
className: "btnLogin",
|
|
531
537
|
onClick: this.goLoginPage
|
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
height: 100%;
|
|
30
30
|
opacity: 0;
|
|
31
31
|
}
|
|
32
|
+
.personal-information-mobile .top .pInfoWrap .photoWrap .decorationIcon {
|
|
33
|
+
position: absolute;
|
|
34
|
+
z-index: 1;
|
|
35
|
+
width: 1.4rem;
|
|
36
|
+
height: 1.4rem;
|
|
37
|
+
left: -0.26rem;
|
|
38
|
+
top: -0.26rem;
|
|
39
|
+
}
|
|
32
40
|
.personal-information-mobile .top .pInfoWrap .userInfo {
|
|
33
41
|
display: inline-block;
|
|
34
42
|
vertical-align: middle;
|
|
@@ -59,7 +67,6 @@
|
|
|
59
67
|
line-height: 1.2rem;
|
|
60
68
|
text-align: center;
|
|
61
69
|
background: #7b7b7b;
|
|
62
|
-
margin-right: 0.3rem;
|
|
63
70
|
border-radius: 50%;
|
|
64
71
|
}
|
|
65
72
|
.personal-information-mobile .top .pInfoWrap .btnLogin {
|
|
@@ -278,6 +278,54 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
278
278
|
lineHeight: 18
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
|
+
sold: {
|
|
282
|
+
id: (0, _uuid.v4)(),
|
|
283
|
+
open: true,
|
|
284
|
+
type: 'TEXT',
|
|
285
|
+
specialContent: [],
|
|
286
|
+
text: '',
|
|
287
|
+
content: {
|
|
288
|
+
sizeType: 'Customize font styles',
|
|
289
|
+
fontFamily: defaultFontFamily,
|
|
290
|
+
fontWeight: 400,
|
|
291
|
+
fontSize: 10,
|
|
292
|
+
color: '#545454',
|
|
293
|
+
urlDisabled: true
|
|
294
|
+
},
|
|
295
|
+
underline: {
|
|
296
|
+
open: false,
|
|
297
|
+
textDecorationColor: '',
|
|
298
|
+
textDecorationStyle: 'solid'
|
|
299
|
+
},
|
|
300
|
+
vertical: {
|
|
301
|
+
open: false,
|
|
302
|
+
lineHeight: 18
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
discountLabel: {
|
|
306
|
+
id: (0, _uuid.v4)(),
|
|
307
|
+
open: true,
|
|
308
|
+
type: 'TEXT',
|
|
309
|
+
specialContent: [],
|
|
310
|
+
text: '',
|
|
311
|
+
content: {
|
|
312
|
+
sizeType: 'Customize font styles',
|
|
313
|
+
fontFamily: 'Montserrat',
|
|
314
|
+
fontWeight: 700,
|
|
315
|
+
fontSize: 12,
|
|
316
|
+
color: '#2C2C2C',
|
|
317
|
+
urlDisabled: true
|
|
318
|
+
},
|
|
319
|
+
underline: {
|
|
320
|
+
open: false,
|
|
321
|
+
textDecorationColor: '',
|
|
322
|
+
textDecorationStyle: 'solid'
|
|
323
|
+
},
|
|
324
|
+
vertical: {
|
|
325
|
+
open: false,
|
|
326
|
+
lineHeight: 18
|
|
327
|
+
}
|
|
328
|
+
},
|
|
281
329
|
salesProgress: {
|
|
282
330
|
open: true
|
|
283
331
|
}
|
|
@@ -312,7 +360,13 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
312
360
|
opacity: 100,
|
|
313
361
|
color: '#fff',
|
|
314
362
|
image: '',
|
|
315
|
-
bgType: 'color'
|
|
363
|
+
bgType: 'color',
|
|
364
|
+
tabBackground: {
|
|
365
|
+
opacity: 100,
|
|
366
|
+
color: '#fff',
|
|
367
|
+
image: '',
|
|
368
|
+
tabBgType: 'color'
|
|
369
|
+
}
|
|
316
370
|
}
|
|
317
371
|
};
|
|
318
372
|
};
|
|
Binary file
|
|
@@ -13,6 +13,8 @@ require("./index.less");
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
+
var _card = _interopRequireDefault(require("./imgs/card.png"));
|
|
17
|
+
|
|
16
18
|
var _mobx = require("../../../../../mobx");
|
|
17
19
|
|
|
18
20
|
var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
|
|
@@ -226,6 +228,26 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
226
228
|
return r;
|
|
227
229
|
};
|
|
228
230
|
|
|
231
|
+
var defaultData = [{
|
|
232
|
+
imgUrlContent: {
|
|
233
|
+
url: _card["default"]
|
|
234
|
+
},
|
|
235
|
+
offerName: 'Product Name Long Long Long Long Long',
|
|
236
|
+
salesPrice: 10000,
|
|
237
|
+
specialPrice: null,
|
|
238
|
+
marketPrice: 20000,
|
|
239
|
+
salePercent: 500,
|
|
240
|
+
discountPercent: 90
|
|
241
|
+
}, {
|
|
242
|
+
imgUrlContent: {
|
|
243
|
+
url: _card["default"]
|
|
244
|
+
},
|
|
245
|
+
offerName: 'Product Name',
|
|
246
|
+
salesPrice: 10000,
|
|
247
|
+
specialPrice: null,
|
|
248
|
+
marketPrice: 20000,
|
|
249
|
+
salePercent: 500
|
|
250
|
+
}];
|
|
229
251
|
var LAYOUT_IMAGE_SIZE = {
|
|
230
252
|
layout1: {
|
|
231
253
|
w: '100%',
|
|
@@ -572,6 +594,9 @@ function (_super) {
|
|
|
572
594
|
hideTabs = _a.hideTabs,
|
|
573
595
|
contentWidth = _a.contentWidth;
|
|
574
596
|
var products = this.state["products" + tabIndex] || [];
|
|
597
|
+
|
|
598
|
+
var _products = products.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : products;
|
|
599
|
+
|
|
575
600
|
var isDivide = groupSource.length <= 3;
|
|
576
601
|
var layout = panelProps.customize.layout.h5Layout;
|
|
577
602
|
|
|
@@ -587,10 +612,26 @@ function (_super) {
|
|
|
587
612
|
}, 140);
|
|
588
613
|
if (layout === 'layout1' && contentWidth) imgHeight = (contentWidth - 12) / 2;
|
|
589
614
|
if (layout === 'layout3' && contentWidth) imgHeight = (contentWidth - 12 * 2) / 3;
|
|
615
|
+
var background = panelProps.background.tabBackground;
|
|
616
|
+
var tabStyle = {};
|
|
617
|
+
|
|
618
|
+
if (background) {
|
|
619
|
+
if (background.tabBgType === 'color') {
|
|
620
|
+
tabStyle.backgroundColor = background.color;
|
|
621
|
+
tabStyle.opacity = background.opacity ? background.opacity : 1;
|
|
622
|
+
} else {
|
|
623
|
+
tabStyle.backgroundImage = "url(" + background.image + ")";
|
|
624
|
+
tabStyle.backgroundPosition = 'center center';
|
|
625
|
+
tabStyle.backgroundSize = 'cover';
|
|
626
|
+
tabStyle.backgroundRepeat = 'no-repeat';
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
590
630
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
591
631
|
className: "m-recommend-mobile recommend_" + panelProps.id
|
|
592
632
|
}, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
|
|
593
|
-
className: "tab-select-wrap"
|
|
633
|
+
className: "tab-select-wrap",
|
|
634
|
+
style: tabStyle
|
|
594
635
|
}, groupSource.map(function (tab, index) {
|
|
595
636
|
var _image = index == tabIndex && tab.hover.open && tab.hover.image.open ? tab.hover.image : tab.image;
|
|
596
637
|
|
|
@@ -619,7 +660,7 @@ function (_super) {
|
|
|
619
660
|
tab.groupName.text = text;
|
|
620
661
|
}
|
|
621
662
|
}));
|
|
622
|
-
}), groupSource.length >
|
|
663
|
+
}), groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
623
664
|
className: "active-line",
|
|
624
665
|
style: {
|
|
625
666
|
width: tabWidth,
|
|
@@ -629,7 +670,7 @@ function (_super) {
|
|
|
629
670
|
})), ['layout1', 'layout2', 'layout3'].includes(layout) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
630
671
|
key: "macyContainer",
|
|
631
672
|
className: "macyContainer macyContainer_" + panelProps.id
|
|
632
|
-
},
|
|
673
|
+
}, _products.map(function (item) {
|
|
633
674
|
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
634
675
|
key: item.productId,
|
|
635
676
|
data: item // fixHeight={layout === 'layout3'}
|
|
@@ -653,7 +694,7 @@ function (_super) {
|
|
|
653
694
|
panelProps: panelProps.content,
|
|
654
695
|
showProgress: false
|
|
655
696
|
});
|
|
656
|
-
})), _seeAll.open &&
|
|
697
|
+
})), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
657
698
|
className: "btnSeeAll",
|
|
658
699
|
data: _seeAll
|
|
659
700
|
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -663,7 +704,7 @@ function (_super) {
|
|
|
663
704
|
})
|
|
664
705
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
665
706
|
className: "scrollProductList"
|
|
666
|
-
},
|
|
707
|
+
}, _products.map(function (item) {
|
|
667
708
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
668
709
|
className: "productCard"
|
|
669
710
|
}, /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
@@ -684,7 +725,7 @@ function (_super) {
|
|
|
684
725
|
panelProps: panelProps.content,
|
|
685
726
|
showProgress: false
|
|
686
727
|
}));
|
|
687
|
-
})), _seeAll.open &&
|
|
728
|
+
})), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
688
729
|
className: "btnSeeAll",
|
|
689
730
|
data: _seeAll
|
|
690
731
|
})));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.m-recommend-mobile {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
+
min-height: 4rem;
|
|
4
5
|
}
|
|
5
6
|
.m-recommend-mobile .cylon-tabs-nav-operations {
|
|
6
7
|
display: none !important;
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
align-items: flex-start;
|
|
66
67
|
}
|
|
67
68
|
.m-recommend-mobile .scrollContainer .scrollProductList .productCard {
|
|
68
|
-
margin-right: 0.
|
|
69
|
+
margin-right: 0.16rem;
|
|
69
70
|
}
|
|
70
71
|
.m-recommend-mobile .btnSeeAll {
|
|
71
72
|
display: block;
|
|
@@ -74,3 +75,25 @@
|
|
|
74
75
|
margin: 0 auto;
|
|
75
76
|
flex: none;
|
|
76
77
|
}
|
|
78
|
+
.m-recommend-mobile .m-product-item-wrap {
|
|
79
|
+
border-radius: 0.16rem;
|
|
80
|
+
}
|
|
81
|
+
.m-recommend-mobile .m-product-item-wrap .img-wrap {
|
|
82
|
+
border-radius: 0.16rem 0.16rem 0 0;
|
|
83
|
+
}
|
|
84
|
+
.m-recommend-mobile .m-product-item-wrap.horizontal .img-wrap {
|
|
85
|
+
border-radius: 0.16rem 0 0 0.16rem;
|
|
86
|
+
}
|
|
87
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap {
|
|
88
|
+
border: none;
|
|
89
|
+
background-color: transparent;
|
|
90
|
+
}
|
|
91
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap .img-wrap {
|
|
92
|
+
border-radius: 0.16rem;
|
|
93
|
+
}
|
|
94
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap .img-wrap .product-img {
|
|
95
|
+
border-radius: 0.16rem;
|
|
96
|
+
}
|
|
97
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap .content-wrap {
|
|
98
|
+
padding: 0.16rem 0;
|
|
99
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.groupSourceJSON = exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
12
|
+
var _index = require("../../../../assets/images/base64/index");
|
|
13
|
+
|
|
14
|
+
var groupSourceJSON = function groupSourceJSON() {
|
|
15
|
+
var groupId = (0, _uuid.v4)();
|
|
16
|
+
return {
|
|
17
|
+
id: groupId,
|
|
18
|
+
image: {
|
|
19
|
+
parentId: groupId,
|
|
20
|
+
id: (0, _uuid.v4)(),
|
|
21
|
+
open: true,
|
|
22
|
+
type: 'IMAGE',
|
|
23
|
+
content: {
|
|
24
|
+
h5Name: 'Image Name',
|
|
25
|
+
pcName: 'Image Name',
|
|
26
|
+
h5ImgSrc: '',
|
|
27
|
+
pcImgSrc: '',
|
|
28
|
+
clickUrl: ''
|
|
29
|
+
},
|
|
30
|
+
hover: {
|
|
31
|
+
open: false,
|
|
32
|
+
backgroundType: 'enlarge',
|
|
33
|
+
magnification: 1.5,
|
|
34
|
+
pcImgHoverUrl: '',
|
|
35
|
+
h5ImgHoverUrl: ''
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.groupSourceJSON = groupSourceJSON;
|
|
42
|
+
|
|
43
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
44
|
+
var _a;
|
|
45
|
+
|
|
46
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
47
|
+
var compId = (0, _uuid.v4)();
|
|
48
|
+
return {
|
|
49
|
+
id: compId,
|
|
50
|
+
type: 'SEARCH_BANNER',
|
|
51
|
+
content: {
|
|
52
|
+
logo: {
|
|
53
|
+
id: (0, _uuid.v4)(),
|
|
54
|
+
open: true,
|
|
55
|
+
type: 'IMAGE',
|
|
56
|
+
content: {
|
|
57
|
+
h5Name: 'name2',
|
|
58
|
+
pcName: 'name2',
|
|
59
|
+
h5ImgSrc: '',
|
|
60
|
+
pcImgSrc: '',
|
|
61
|
+
clickUrl: ''
|
|
62
|
+
},
|
|
63
|
+
hover: {
|
|
64
|
+
open: false,
|
|
65
|
+
backgroundType: 'enlarge',
|
|
66
|
+
magnification: 1.5,
|
|
67
|
+
pcImgHoverUrl: '',
|
|
68
|
+
h5ImgHoverUrl: ''
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
box: {
|
|
72
|
+
id: (0, _uuid.v4)(),
|
|
73
|
+
open: true,
|
|
74
|
+
color: {
|
|
75
|
+
pc: '#fff',
|
|
76
|
+
mobile: '#fff'
|
|
77
|
+
},
|
|
78
|
+
backgroundColor: {
|
|
79
|
+
pc: 'transparent',
|
|
80
|
+
mobile: 'transparent'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
keyword: {
|
|
84
|
+
id: (0, _uuid.v4)(),
|
|
85
|
+
open: true,
|
|
86
|
+
type: 'InputField',
|
|
87
|
+
placeholder: 'Tshirt Woman',
|
|
88
|
+
content: {
|
|
89
|
+
sizeType: 'Customize font styles',
|
|
90
|
+
fontFamily: defaultFontFamily,
|
|
91
|
+
fontWeight: 600,
|
|
92
|
+
fontSize: 12,
|
|
93
|
+
pcFontSize: 14,
|
|
94
|
+
color: '#CE1126'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
placeholder: {
|
|
98
|
+
id: (0, _uuid.v4)(),
|
|
99
|
+
open: true,
|
|
100
|
+
text: ''
|
|
101
|
+
},
|
|
102
|
+
cartIcon: {
|
|
103
|
+
id: (0, _uuid.v4)(),
|
|
104
|
+
open: true,
|
|
105
|
+
type: 'IMAGE',
|
|
106
|
+
content: {
|
|
107
|
+
h5Name: 'name2',
|
|
108
|
+
pcName: 'name2',
|
|
109
|
+
h5ImgSrc: _index.searchCartIcon,
|
|
110
|
+
pcImgSrc: '',
|
|
111
|
+
clickUrl: {
|
|
112
|
+
name: '/main/cart',
|
|
113
|
+
value: '/main/cart'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
hover: {
|
|
117
|
+
open: false,
|
|
118
|
+
backgroundType: 'enlarge',
|
|
119
|
+
magnification: 1.5,
|
|
120
|
+
pcImgHoverUrl: '',
|
|
121
|
+
h5ImgHoverUrl: ''
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
chatbotIcon: {
|
|
125
|
+
id: (0, _uuid.v4)(),
|
|
126
|
+
open: true,
|
|
127
|
+
type: 'IMAGE',
|
|
128
|
+
content: {
|
|
129
|
+
h5Name: 'name2',
|
|
130
|
+
pcName: 'name2',
|
|
131
|
+
h5ImgSrc: _index.searchChatbotIcon,
|
|
132
|
+
pcImgSrc: '',
|
|
133
|
+
clickUrl: {
|
|
134
|
+
name: '/new-chat',
|
|
135
|
+
value: '/new-chat'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
hover: {
|
|
139
|
+
open: false,
|
|
140
|
+
backgroundType: 'enlarge',
|
|
141
|
+
magnification: 1.5,
|
|
142
|
+
pcImgHoverUrl: '',
|
|
143
|
+
h5ImgHoverUrl: ''
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
messageIcon: {
|
|
147
|
+
id: (0, _uuid.v4)(),
|
|
148
|
+
open: true,
|
|
149
|
+
type: 'IMAGE',
|
|
150
|
+
content: {
|
|
151
|
+
h5Name: 'name2',
|
|
152
|
+
pcName: 'name2',
|
|
153
|
+
h5ImgSrc: _index.searchMessageIcon,
|
|
154
|
+
pcImgSrc: '',
|
|
155
|
+
clickUrl: {
|
|
156
|
+
name: '/message-center',
|
|
157
|
+
value: '/message-center'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
hover: {
|
|
161
|
+
open: false,
|
|
162
|
+
backgroundType: 'enlarge',
|
|
163
|
+
magnification: 1.5,
|
|
164
|
+
pcImgHoverUrl: '',
|
|
165
|
+
h5ImgHoverUrl: ''
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
groupSource: [groupSourceJSON()],
|
|
170
|
+
setting: {
|
|
171
|
+
// 自动轮播
|
|
172
|
+
autoplay: {
|
|
173
|
+
open: true,
|
|
174
|
+
interval: 4
|
|
175
|
+
},
|
|
176
|
+
// 切换按钮
|
|
177
|
+
navigation: {
|
|
178
|
+
open: true,
|
|
179
|
+
size: 16,
|
|
180
|
+
hoverSize: 16,
|
|
181
|
+
color: '#aaa',
|
|
182
|
+
hoverColor: '#fff'
|
|
183
|
+
},
|
|
184
|
+
// 面板指示点
|
|
185
|
+
dots: {
|
|
186
|
+
open: true,
|
|
187
|
+
layout: 'layout1',
|
|
188
|
+
color: {
|
|
189
|
+
pc: '#fff',
|
|
190
|
+
mobile: '#fff'
|
|
191
|
+
},
|
|
192
|
+
hoverColor: {
|
|
193
|
+
pc: '#fff',
|
|
194
|
+
mobile: '#fff'
|
|
195
|
+
},
|
|
196
|
+
size: {
|
|
197
|
+
pc: 16,
|
|
198
|
+
mobile: 8
|
|
199
|
+
},
|
|
200
|
+
hoverSize: {
|
|
201
|
+
pc: 16,
|
|
202
|
+
mobile: 8
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
spacing: {
|
|
207
|
+
pc: {
|
|
208
|
+
paddingTop: 0,
|
|
209
|
+
paddingBottom: 0,
|
|
210
|
+
marginBottom: window.magicDesign.compSpacing * 1.5,
|
|
211
|
+
fillUp: false
|
|
212
|
+
},
|
|
213
|
+
mobile: {
|
|
214
|
+
paddingTop: 0,
|
|
215
|
+
paddingBottom: 0,
|
|
216
|
+
paddingLeft: 0,
|
|
217
|
+
paddingRight: 0,
|
|
218
|
+
marginBottom: window.magicDesign.compSpacing
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
customize: {
|
|
222
|
+
layout: 'left',
|
|
223
|
+
align: 'left'
|
|
224
|
+
},
|
|
225
|
+
background: {
|
|
226
|
+
opacity: 100,
|
|
227
|
+
color: '#fff',
|
|
228
|
+
image: '',
|
|
229
|
+
bgType: 'color'
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
exports.getDefaultJSON = getDefaultJSON;
|