@fonixtree/magic-design 1.0.166 → 1.0.168
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/AvenirNext-Bold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +11 -3
- 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/layout-icon/campaignLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/es/assets/less/font.less +29 -0
- package/es/common/Collapse/index.js +3 -1
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/Field/index.js +2 -1
- package/es/common/Field/index.less +4 -0
- package/es/common/Iconfont/index.js +4 -2
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +18 -1
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +9 -0
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +14 -10
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/es/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
- package/es/composite-comp/dito/components/Campaign/index.js +88 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
- package/es/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
- package/es/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +0 -7
- package/es/composite-comp/dito/components/News/defaultJSON.js +0 -4
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -2
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -9
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +14 -10
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
- package/es/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
- package/es/constants/component-types.js +9 -3
- package/es/constants/index.js +38 -1
- package/es/constants/layout.js +16 -2
- package/es/core/Designer/ConfigPanel/index.js +4 -0
- package/es/core/Designer/ToolBarModal/index.js +5 -39
- package/es/decorator/compositeDecorator.js +5 -2
- package/es/locale/en/en.json +6 -1
- package/es/locale/es/es.json +6 -1
- package/es/locale/id/id.json +6 -1
- package/es/meta-comp/components/Button/index.js +4 -1
- package/es/meta-comp/components/Button/index.less +8 -1
- package/es/meta-comp/config-panels/ButtonConfig/index.js +15 -11
- package/es/meta-comp/config-panels/TextConfig/index.js +33 -16
- package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +11 -3
- 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/layout-icon/campaignLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/lib/assets/less/font.less +29 -0
- package/lib/common/Collapse/index.js +3 -1
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/Field/index.js +2 -1
- package/lib/common/Field/index.less +4 -0
- package/lib/common/Iconfont/index.js +4 -2
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +18 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +14 -10
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/lib/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
- package/lib/composite-comp/dito/components/Campaign/index.js +88 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +0 -7
- package/lib/composite-comp/dito/components/News/defaultJSON.js +0 -4
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -2
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -9
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +14 -10
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
- package/lib/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
- package/lib/constants/component-types.js +9 -3
- package/lib/constants/index.js +38 -1
- package/lib/constants/layout.js +16 -2
- package/lib/core/Designer/ConfigPanel/index.js +4 -0
- package/lib/core/Designer/ToolBarModal/index.js +5 -39
- package/lib/decorator/compositeDecorator.js +5 -2
- package/lib/locale/en/en.json +6 -1
- package/lib/locale/es/es.json +6 -1
- package/lib/locale/id/id.json +6 -1
- package/lib/meta-comp/components/Button/index.js +4 -1
- package/lib/meta-comp/components/Button/index.less +8 -1
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +15 -11
- package/lib/meta-comp/config-panels/TextConfig/index.js +33 -16
- package/package.json +1 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
|
@@ -7,18 +7,30 @@ exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
-
var _base = require("../../../../assets/images/base64");
|
|
11
|
-
|
|
12
10
|
var getDefaultJSON = function getDefaultJSON() {
|
|
13
11
|
var contentId = (0, _uuid.v4)();
|
|
14
12
|
return {
|
|
15
13
|
id: (0, _uuid.v4)(),
|
|
16
14
|
type: 'FLASH_DEAL',
|
|
17
15
|
title: {
|
|
18
|
-
|
|
16
|
+
image: {
|
|
19
17
|
id: (0, _uuid.v4)(),
|
|
20
18
|
open: true,
|
|
21
|
-
|
|
19
|
+
type: 'IMAGE',
|
|
20
|
+
content: {
|
|
21
|
+
h5Name: 'name2',
|
|
22
|
+
pcName: 'name2',
|
|
23
|
+
h5ImgSrc: '',
|
|
24
|
+
pcImgSrc: '',
|
|
25
|
+
clickUrl: ''
|
|
26
|
+
},
|
|
27
|
+
hover: {
|
|
28
|
+
open: false,
|
|
29
|
+
backgroundType: 'enlarge',
|
|
30
|
+
magnification: 1.5,
|
|
31
|
+
pcImgHoverUrl: '',
|
|
32
|
+
h5ImgHoverUrl: ''
|
|
33
|
+
}
|
|
22
34
|
},
|
|
23
35
|
headline: {
|
|
24
36
|
id: (0, _uuid.v4)(),
|
|
@@ -149,7 +161,8 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
149
161
|
fontFamily: 'Open Sans',
|
|
150
162
|
fontWeight: 500,
|
|
151
163
|
fontSize: 14,
|
|
152
|
-
color: '#2C2C2C'
|
|
164
|
+
color: '#2C2C2C',
|
|
165
|
+
pcFontSize: 19
|
|
153
166
|
},
|
|
154
167
|
underline: {
|
|
155
168
|
open: false,
|
|
@@ -173,7 +186,8 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
173
186
|
fontFamily: 'Open Sans',
|
|
174
187
|
fontWeight: 600,
|
|
175
188
|
fontSize: 14,
|
|
176
|
-
color: '#CE1126'
|
|
189
|
+
color: '#CE1126',
|
|
190
|
+
pcFontSize: 32
|
|
177
191
|
},
|
|
178
192
|
underline: {
|
|
179
193
|
open: false,
|
|
@@ -197,6 +211,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
197
211
|
fontFamily: 'Open Sans',
|
|
198
212
|
fontWeight: 500,
|
|
199
213
|
fontSize: 10,
|
|
214
|
+
pcFontSize: 16,
|
|
200
215
|
color: '#929292'
|
|
201
216
|
},
|
|
202
217
|
underline: {
|
|
@@ -254,11 +269,10 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
254
269
|
}
|
|
255
270
|
},
|
|
256
271
|
customize: {
|
|
257
|
-
layout:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
pcMinRowNum: 5
|
|
272
|
+
layout: {
|
|
273
|
+
h5Layout: 'layout1',
|
|
274
|
+
pcLayout: 'layout1'
|
|
275
|
+
}
|
|
262
276
|
},
|
|
263
277
|
background: {
|
|
264
278
|
opacity: 100,
|
|
@@ -377,15 +377,15 @@ function (_super) {
|
|
|
377
377
|
};
|
|
378
378
|
|
|
379
379
|
FlashDealMobile.prototype.render = function () {
|
|
380
|
-
var _a, _b;
|
|
380
|
+
var _a, _b, _c, _d, _e;
|
|
381
381
|
|
|
382
382
|
var panelProps = this.props.panelProps;
|
|
383
|
-
var
|
|
384
|
-
list =
|
|
385
|
-
effDate =
|
|
386
|
-
expDate =
|
|
387
|
-
now =
|
|
388
|
-
isWill =
|
|
383
|
+
var _f = this.state,
|
|
384
|
+
list = _f.list,
|
|
385
|
+
effDate = _f.effDate,
|
|
386
|
+
expDate = _f.expDate,
|
|
387
|
+
now = _f.now,
|
|
388
|
+
isWill = _f.isWill;
|
|
389
389
|
|
|
390
390
|
var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
|
|
391
391
|
|
|
@@ -395,16 +395,15 @@ function (_super) {
|
|
|
395
395
|
className: "flash-deal-title"
|
|
396
396
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
397
397
|
className: "left"
|
|
398
|
-
}, panelProps.title.
|
|
399
|
-
alt: "",
|
|
398
|
+
}, ((_a = panelProps.title.image) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
400
399
|
className: "icon",
|
|
401
|
-
|
|
400
|
+
data: panelProps.title.image
|
|
402
401
|
}), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
403
402
|
className: "title",
|
|
404
403
|
data: panelProps.title.headline
|
|
405
404
|
}), isWill && /*#__PURE__*/_react["default"].createElement("span", {
|
|
406
405
|
className: "sub-title"
|
|
407
|
-
}, (0, _locale.i18n)('NEXT')), ((
|
|
406
|
+
}, (0, _locale.i18n)('NEXT')), ((_b = panelProps.title) === null || _b === void 0 ? void 0 : _b.countDown) && ((_c = panelProps.title.countDown) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
|
|
408
407
|
effDate: effDate,
|
|
409
408
|
expDate: expDate,
|
|
410
409
|
now: now,
|
|
@@ -419,17 +418,19 @@ function (_super) {
|
|
|
419
418
|
data: panelProps.title.button
|
|
420
419
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
421
420
|
className: (0, _classnames["default"])('flash-deal-list', {
|
|
422
|
-
'flash-deal-list-vertical': panelProps.customize.layout === '
|
|
423
|
-
'flash-deal-list-horizontal': panelProps.customize.layout === 'layout2'
|
|
421
|
+
'flash-deal-list-vertical': ((_d = panelProps.customize.layout) === null || _d === void 0 ? void 0 : _d.h5Layout) !== 'layout2',
|
|
422
|
+
'flash-deal-list-horizontal': ((_e = panelProps.customize.layout) === null || _e === void 0 ? void 0 : _e.h5Layout) === 'layout2'
|
|
424
423
|
})
|
|
425
424
|
}, _list.map(function (item) {
|
|
425
|
+
var _a;
|
|
426
|
+
|
|
426
427
|
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
427
428
|
key: item.id,
|
|
428
429
|
data: __assign(__assign({}, item), {
|
|
429
430
|
salePercent: isWill ? 0 : item.salePercent
|
|
430
431
|
}) // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
|
|
431
432
|
,
|
|
432
|
-
layout: panelProps.customize.layout === 'layout2' ? 'horizontal' : 'vertical',
|
|
433
|
+
layout: ((_a = panelProps.customize.layout) === null || _a === void 0 ? void 0 : _a.h5Layout) === 'layout2' ? 'horizontal' : 'vertical',
|
|
433
434
|
onItemClick: function onItemClick() {
|
|
434
435
|
if (window.magicDesign.pushGA) {
|
|
435
436
|
window.magicDesign.pushGA({}, 'select_promotion', {
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
13
|
+
|
|
14
|
+
var _currencyUtil = require("../../../../../../utils/currencyUtil");
|
|
15
|
+
|
|
16
|
+
var _common = require("../../../../../../common");
|
|
17
|
+
|
|
18
|
+
var _components = require("../../../../../../meta-comp/components");
|
|
19
|
+
|
|
20
|
+
var _businessUtil = require("../../../../../../utils/businessUtil");
|
|
21
|
+
|
|
22
|
+
require("./index.less");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
71
|
+
var t = {};
|
|
72
|
+
|
|
73
|
+
for (var p in s) {
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
78
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
79
|
+
}
|
|
80
|
+
return t;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var ProductItem =
|
|
84
|
+
/** @class */
|
|
85
|
+
function (_super) {
|
|
86
|
+
__extends(ProductItem, _super);
|
|
87
|
+
|
|
88
|
+
function ProductItem() {
|
|
89
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
90
|
+
|
|
91
|
+
_this.state = {};
|
|
92
|
+
return _this;
|
|
93
|
+
}
|
|
94
|
+
|
|
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"]);
|
|
102
|
+
|
|
103
|
+
var promotions = (0, _businessUtil.getPromotionList)(data);
|
|
104
|
+
var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
|
|
105
|
+
/** 当是拼团时 显示价格 */
|
|
106
|
+
|
|
107
|
+
if (data.sppType && promotions.length) {
|
|
108
|
+
price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrency)(data.specialPrice) : (0, _currencyUtil.formatCurrency)(data.salesPrice);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
var integerPart = price;
|
|
112
|
+
var decimalPart = null;
|
|
113
|
+
|
|
114
|
+
if (unknownPrice) {
|
|
115
|
+
if (price.length > 5) {
|
|
116
|
+
integerPart = price.slice(0, -5).replace(/\d/g, '? ') + price.slice(-5);
|
|
117
|
+
} else {
|
|
118
|
+
integerPart = price.replace(/\d/, '? ');
|
|
119
|
+
}
|
|
120
|
+
} else if (Array.isArray(price)) {
|
|
121
|
+
integerPart = price[0];
|
|
122
|
+
decimalPart = price[1];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
var pricePrefix = (0, _commonUtil.ensure)(function () {
|
|
126
|
+
return window.systemParams.prefix;
|
|
127
|
+
}, 'Rp');
|
|
128
|
+
|
|
129
|
+
var _price = integerPart + " " + (decimalPart ? '.' + decimalPart : '');
|
|
130
|
+
|
|
131
|
+
var oldPrice = data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null;
|
|
132
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
133
|
+
className: (0, _classnames["default"])('m-pc-flash-product-item'),
|
|
134
|
+
onClick: function onClick() {
|
|
135
|
+
return onItemClick();
|
|
136
|
+
}
|
|
137
|
+
}, rest), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
className: "img-wrap"
|
|
139
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
|
|
140
|
+
className: "product-img",
|
|
141
|
+
lazy: true,
|
|
142
|
+
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
|
|
143
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
+
className: "content-wrap"
|
|
145
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
+
className: "product-name-wrap"
|
|
147
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
+
className: "box"
|
|
149
|
+
}, panelProps.productName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
150
|
+
data: __assign(__assign({}, panelProps.productName), {
|
|
151
|
+
text: data.offerName
|
|
152
|
+
}),
|
|
153
|
+
readonly: true
|
|
154
|
+
}))), (panelProps.activityPrice.open || panelProps.salesPrice.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
+
className: "price-wrap"
|
|
156
|
+
}, panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
157
|
+
className: "prefix"
|
|
158
|
+
}, pricePrefix), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
159
|
+
className: "price",
|
|
160
|
+
data: __assign(__assign({}, panelProps.activityPrice), {
|
|
161
|
+
text: _price
|
|
162
|
+
}),
|
|
163
|
+
readonly: true
|
|
164
|
+
})), panelProps.salesPrice.open && oldPrice && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
165
|
+
className: "old-price",
|
|
166
|
+
data: __assign(__assign({}, panelProps.salesPrice), {
|
|
167
|
+
text: oldPrice
|
|
168
|
+
}),
|
|
169
|
+
readonly: true,
|
|
170
|
+
style: {
|
|
171
|
+
color: panelProps.salesPrice.content.color
|
|
172
|
+
}
|
|
173
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
|
+
className: "rate-sold-wrap"
|
|
175
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
|
+
className: "rate-wrap"
|
|
177
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
178
|
+
color: "#FCD117",
|
|
179
|
+
size: 16,
|
|
180
|
+
type: "icon-star"
|
|
181
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
182
|
+
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
|
+
};
|
|
187
|
+
|
|
188
|
+
ProductItem.defaultProps = {
|
|
189
|
+
data: {},
|
|
190
|
+
panelProps: {},
|
|
191
|
+
layout: 'vertical'
|
|
192
|
+
};
|
|
193
|
+
return ProductItem;
|
|
194
|
+
}(_react["default"].Component);
|
|
195
|
+
|
|
196
|
+
var _default = ProductItem;
|
|
197
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.m-pc-flash-product-item {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
background: #FFFFFF;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 270px;
|
|
8
|
+
|
|
9
|
+
.img-wrap {
|
|
10
|
+
position: relative;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
border-radius: 16px;
|
|
13
|
+
border: 1px solid #E0E0E0;
|
|
14
|
+
|
|
15
|
+
.product-img {
|
|
16
|
+
width: 270px;
|
|
17
|
+
height: 270px;
|
|
18
|
+
object-fit: cover;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.content-wrap {
|
|
23
|
+
padding: 8px;
|
|
24
|
+
|
|
25
|
+
.product-name-wrap {
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-box-orient: vertical;
|
|
30
|
+
-webkit-line-clamp: 2;
|
|
31
|
+
line-height: 24px;
|
|
32
|
+
height: 48px;
|
|
33
|
+
white-space: wrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.price-wrap {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: baseline;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
margin-top: 8px;
|
|
41
|
+
|
|
42
|
+
.prefix {
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
font-size: 20px;
|
|
45
|
+
color: #CE1126;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.price {
|
|
49
|
+
width: auto !important;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
text-overflow: ellipsis;
|
|
53
|
+
margin-right: 8px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.old-price {
|
|
57
|
+
text-decoration: line-through;
|
|
58
|
+
width: fit-content;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.rate-sold-wrap {
|
|
64
|
+
margin-top: 4px;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
|
|
68
|
+
.rate-wrap {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
|
|
72
|
+
.rate-text {
|
|
73
|
+
font-size: 16px;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
color: #666666;
|
|
76
|
+
margin-left: 4px;
|
|
77
|
+
}
|
|
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
|
+
|
|
88
|
+
&:before {
|
|
89
|
+
content: '';
|
|
90
|
+
display: block;
|
|
91
|
+
width: 2px;
|
|
92
|
+
height: 16px;
|
|
93
|
+
background-color: #666666;
|
|
94
|
+
margin-right: 10px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
}
|
|
@@ -13,7 +13,7 @@ var _lodash = _interopRequireDefault(require("lodash.throttle"));
|
|
|
13
13
|
|
|
14
14
|
var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
|
|
15
15
|
|
|
16
|
-
var _ProductItem = _interopRequireDefault(require("
|
|
16
|
+
var _ProductItem = _interopRequireDefault(require("./ProductItem"));
|
|
17
17
|
|
|
18
18
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
19
19
|
|
|
@@ -474,40 +474,40 @@ function (_super) {
|
|
|
474
474
|
FlashDealPc.prototype.render = function () {
|
|
475
475
|
var _this = this;
|
|
476
476
|
|
|
477
|
+
var _a, _b;
|
|
478
|
+
|
|
477
479
|
var panelProps = this.props.panelProps;
|
|
478
|
-
var
|
|
479
|
-
list =
|
|
480
|
-
effDate =
|
|
481
|
-
expDate =
|
|
482
|
-
now =
|
|
483
|
-
isWill =
|
|
484
|
-
scrollToLeftDisabled =
|
|
485
|
-
scrollToRightDisabled =
|
|
480
|
+
var _c = this.state,
|
|
481
|
+
list = _c.list,
|
|
482
|
+
effDate = _c.effDate,
|
|
483
|
+
expDate = _c.expDate,
|
|
484
|
+
now = _c.now,
|
|
485
|
+
isWill = _c.isWill,
|
|
486
|
+
scrollToLeftDisabled = _c.scrollToLeftDisabled,
|
|
487
|
+
scrollToRightDisabled = _c.scrollToRightDisabled;
|
|
486
488
|
|
|
487
489
|
var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
|
|
488
490
|
|
|
489
|
-
var imgHeight = panelProps.customize.pcRowNum === 6 ? 153 : 193;
|
|
490
|
-
var imgWidth = panelProps.customize.pcRowNum === 6 ? 153 : 193;
|
|
491
491
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
492
492
|
className: "m-flash-deal-pc"
|
|
493
493
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
494
494
|
className: "flash-deal-title"
|
|
495
495
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
496
496
|
className: "left"
|
|
497
|
-
}, panelProps.title.
|
|
498
|
-
alt: "",
|
|
497
|
+
}, ((_a = panelProps.title.image) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
499
498
|
className: "icon",
|
|
500
|
-
|
|
501
|
-
}), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
499
|
+
data: panelProps.title.image
|
|
500
|
+
}), !(0, _coreUtil.isPc)() && panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
502
501
|
className: "title",
|
|
503
502
|
data: panelProps.title.headline
|
|
504
|
-
}), isWill && /*#__PURE__*/_react["default"].createElement("span", {
|
|
503
|
+
}), !(0, _coreUtil.isPc)() && isWill && /*#__PURE__*/_react["default"].createElement("span", {
|
|
505
504
|
className: "sub-title"
|
|
506
|
-
}, (0, _locale.i18n)('NEXT')), /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
|
|
505
|
+
}, (0, _locale.i18n)('NEXT')), ((_b = panelProps.title.countDown) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
|
|
507
506
|
effDate: effDate,
|
|
508
507
|
expDate: expDate,
|
|
509
508
|
now: now,
|
|
510
|
-
refresh: this.getNextFlashSale
|
|
509
|
+
refresh: this.getNextFlashSale,
|
|
510
|
+
type: "pc"
|
|
511
511
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
512
512
|
className: "right",
|
|
513
513
|
onClick: function onClick() {
|
|
@@ -536,10 +536,6 @@ function (_super) {
|
|
|
536
536
|
data: __assign(__assign({}, item), {
|
|
537
537
|
salePercent: isWill ? 0 : item.salePercent
|
|
538
538
|
}),
|
|
539
|
-
fixHeight: true,
|
|
540
|
-
imgHeight: imgHeight,
|
|
541
|
-
imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
|
|
542
|
-
,
|
|
543
539
|
onItemClick: function onItemClick() {
|
|
544
540
|
return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
545
541
|
},
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
.m-flash-deal-pc {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
padding: 16px 16px 28px 16px;
|
|
5
4
|
|
|
6
5
|
.flash-deal-title {
|
|
7
6
|
display: flex;
|
|
8
7
|
justify-content: space-between;
|
|
9
8
|
align-items: center;
|
|
9
|
+
padding: 0 64px;
|
|
10
|
+
margin-bottom: 40px;
|
|
10
11
|
|
|
11
12
|
.left {
|
|
12
13
|
display: flex;
|
|
@@ -18,7 +19,6 @@
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.title {
|
|
21
|
-
font-family: 'Montserrat';
|
|
22
22
|
font-style: normal;
|
|
23
23
|
font-weight: 600;
|
|
24
24
|
font-size: 14px;
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.sub-title {
|
|
31
|
-
font-family: 'Montserrat';
|
|
32
31
|
font-style: normal;
|
|
33
32
|
font-weight: 600;
|
|
34
33
|
font-size: 10px;
|
|
@@ -44,7 +43,6 @@
|
|
|
44
43
|
align-items: center;
|
|
45
44
|
|
|
46
45
|
.text {
|
|
47
|
-
font-family: 'Montserrat';
|
|
48
46
|
font-style: normal;
|
|
49
47
|
font-weight: 600;
|
|
50
48
|
font-size: 12px;
|
|
@@ -66,27 +64,26 @@
|
|
|
66
64
|
|
|
67
65
|
.arrow-icon {
|
|
68
66
|
display: block;
|
|
69
|
-
width:
|
|
70
|
-
height:
|
|
71
|
-
line-height:
|
|
67
|
+
width: 48px;
|
|
68
|
+
height: 48px;
|
|
69
|
+
line-height: 50px;
|
|
72
70
|
text-align: center;
|
|
73
71
|
background: #FFFFFF;
|
|
74
|
-
box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
|
|
75
72
|
border-radius: 100px;
|
|
73
|
+
border: 1px solid #F0F0F0;
|
|
76
74
|
cursor: pointer;
|
|
77
75
|
|
|
78
76
|
&.left {
|
|
79
|
-
margin-right:
|
|
77
|
+
margin-right: 16px;
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
&.right {
|
|
83
|
-
margin-left:
|
|
81
|
+
margin-left: 16px;
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
.flash-deal-list {
|
|
89
|
-
margin-top: 16px;
|
|
90
87
|
overflow-x: auto;
|
|
91
88
|
overflow-y: hidden;
|
|
92
89
|
white-space: nowrap;
|
|
@@ -95,27 +92,19 @@
|
|
|
95
92
|
justify-content: flex-start;
|
|
96
93
|
position: relative;
|
|
97
94
|
flex: 1;
|
|
95
|
+
gap: 40px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
98
|
|
|
99
|
-
.loading-wrap {
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
justify-content: center;
|
|
103
|
-
padding: 30px;
|
|
104
|
-
position: absolute;
|
|
105
|
-
top: 0;
|
|
106
|
-
bottom: 0;
|
|
107
|
-
left: 0;
|
|
108
|
-
right: 0;
|
|
109
|
-
margin: auto;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// 秒杀特有样式
|
|
113
|
-
.m-product-item-wrap {
|
|
114
|
-
width: 142px;
|
|
115
|
-
margin-right: 24px;
|
|
116
99
|
|
|
117
|
-
|
|
118
|
-
|
|
100
|
+
@media(min-width: 750px) {
|
|
101
|
+
.m-flash-deal-pc {
|
|
102
|
+
.flash-deal-title {
|
|
103
|
+
.left {
|
|
104
|
+
.icon {
|
|
105
|
+
height: 36px;
|
|
106
|
+
margin-right: 16px;
|
|
107
|
+
}
|
|
119
108
|
}
|
|
120
109
|
}
|
|
121
110
|
}
|
|
@@ -24,7 +24,6 @@ var groupSourceJSON = function groupSourceJSON(parentId, text) {
|
|
|
24
24
|
},
|
|
25
25
|
buttonText: {
|
|
26
26
|
sizeType: 'Customize font styles',
|
|
27
|
-
fontFamily: 'Open Sans',
|
|
28
27
|
fontWeight: 600,
|
|
29
28
|
pcFontSize: 14,
|
|
30
29
|
fontStyle: 'normal',
|
|
@@ -84,7 +83,6 @@ var groupSourceJSON = function groupSourceJSON(parentId, text) {
|
|
|
84
83
|
text: 'title',
|
|
85
84
|
content: {
|
|
86
85
|
sizeType: 'Customize font styles',
|
|
87
|
-
fontFamily: 'Open Sans',
|
|
88
86
|
fontWeight: 700,
|
|
89
87
|
pcFontSize: 29,
|
|
90
88
|
color: '#232F46',
|
|
@@ -106,7 +104,6 @@ var groupSourceJSON = function groupSourceJSON(parentId, text) {
|
|
|
106
104
|
text: 'text',
|
|
107
105
|
content: {
|
|
108
106
|
sizeType: 'Customize font styles',
|
|
109
|
-
fontFamily: 'Open Sans',
|
|
110
107
|
fontWeight: 600,
|
|
111
108
|
pcFontSize: 14,
|
|
112
109
|
color: '#232F46',
|
|
@@ -131,7 +128,6 @@ var groupSourceJSON = function groupSourceJSON(parentId, text) {
|
|
|
131
128
|
},
|
|
132
129
|
buttonText: {
|
|
133
130
|
sizeType: 'Customize font styles',
|
|
134
|
-
fontFamily: 'Open Sans',
|
|
135
131
|
fontWeight: 600,
|
|
136
132
|
pcFontSize: 14,
|
|
137
133
|
fontStyle: 'normal',
|
|
@@ -174,7 +170,6 @@ var groupSourceJSON = function groupSourceJSON(parentId, text) {
|
|
|
174
170
|
},
|
|
175
171
|
buttonText: {
|
|
176
172
|
sizeType: 'Customize font styles',
|
|
177
|
-
fontFamily: 'Open Sans',
|
|
178
173
|
fontWeight: 600,
|
|
179
174
|
pcFontSize: 14,
|
|
180
175
|
fontStyle: 'normal',
|
|
@@ -219,7 +214,6 @@ var groupSourceJSON = function groupSourceJSON(parentId, text) {
|
|
|
219
214
|
},
|
|
220
215
|
buttonText: {
|
|
221
216
|
sizeType: 'Customize font styles',
|
|
222
|
-
fontFamily: 'Open Sans',
|
|
223
217
|
fontWeight: 700,
|
|
224
218
|
pcFontSize: 14,
|
|
225
219
|
fontStyle: 'normal',
|
|
@@ -270,7 +264,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
270
264
|
text: 'Headline',
|
|
271
265
|
content: {
|
|
272
266
|
sizeType: 'Customize font styles',
|
|
273
|
-
fontFamily: 'Open Sans',
|
|
274
267
|
fontWeight: 700,
|
|
275
268
|
pcFontSize: 29,
|
|
276
269
|
color: '#232F46',
|