@fonixtree/magic-design 2.0.205 → 2.0.206
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/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/common/Collapse/index.js +3 -1
- package/es/common/Field/index.js +5 -4
- package/es/common/Field/index.less +4 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
- package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- 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/GroupedCarousel/pc/index.js +8 -2
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +2 -2
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -16
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +1 -1
- 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/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/es/constants/component-types.js +9 -3
- package/es/constants/index.js +4 -0
- package/es/constants/layout.js +32 -2
- package/es/core/Designer/ConfigPanel/index.js +6 -2
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/index.js +4 -2
- package/es/meta-comp/config-panels/ImageConfig/index.js +0 -2
- package/es/meta-comp/config-panels/TextConfig/index.js +17 -7
- package/es/meta-comp/config-panels/TextConfig/index.less +7 -0
- package/es/utils/commonUtil.js +59 -89
- 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/common/Collapse/index.js +3 -1
- package/lib/common/Field/index.js +5 -4
- package/lib/common/Field/index.less +4 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- 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/GroupedCarousel/pc/index.js +8 -2
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +2 -2
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -16
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +1 -1
- 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/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/lib/constants/component-types.js +9 -3
- package/lib/constants/index.js +4 -0
- package/lib/constants/layout.js +32 -2
- package/lib/core/Designer/ConfigPanel/index.js +6 -2
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/index.js +4 -2
- package/lib/meta-comp/config-panels/ImageConfig/index.js +0 -2
- package/lib/meta-comp/config-panels/TextConfig/index.js +17 -7
- package/lib/meta-comp/config-panels/TextConfig/index.less +7 -0
- package/lib/utils/commonUtil.js +59 -89
- package/package.json +1 -1
|
@@ -144,6 +144,10 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
144
144
|
case 'PERSONAL_INFOMATION':
|
|
145
145
|
groupName = panelProps.sourceType;
|
|
146
146
|
break;
|
|
147
|
+
|
|
148
|
+
case 'CAMPAIGN':
|
|
149
|
+
groupName = panelProps.type;
|
|
150
|
+
break;
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
return groupName || 'Group Name';
|
|
@@ -377,8 +381,8 @@ function (_super) {
|
|
|
377
381
|
className: "config_header"
|
|
378
382
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
379
383
|
className: "title",
|
|
380
|
-
title: (_a = _constants.compInfoMap[selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.type]) === null || _a === void 0 ? void 0 : _a.name
|
|
381
|
-
}, (_b = _constants.compInfoMap[selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.type]) === null || _b === void 0 ? void 0 : _b.name), /*#__PURE__*/_react["default"].createElement("div", {
|
|
384
|
+
title: (selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.label) || ((_a = _constants.compInfoMap[selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.type]) === null || _a === void 0 ? void 0 : _a.name)
|
|
385
|
+
}, (selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.label) || ((_b = _constants.compInfoMap[selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.type]) === null || _b === void 0 ? void 0 : _b.name)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
382
386
|
className: "right_wrap"
|
|
383
387
|
}, /*#__PURE__*/_react["default"].createElement(_TerminalSelect["default"], {
|
|
384
388
|
onChange: this.onTerminalChange,
|
|
@@ -293,7 +293,7 @@ function PageCompList(_a) {
|
|
|
293
293
|
type: "icon-drag"
|
|
294
294
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
295
295
|
className: "card-title ml16"
|
|
296
|
-
}, index + 1, ". ", (_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name)), pageType !== 'Menu' && /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
296
|
+
}, index + 1, ". ", comp.label || ((_b = _constants.compInfoMap[comp.type]) === null || _b === void 0 ? void 0 : _b.name))), pageType !== 'Menu' && /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
297
297
|
overlay: menu,
|
|
298
298
|
placement: "bottomRight",
|
|
299
299
|
trigger: ['click']
|
|
@@ -427,7 +427,8 @@ function (_super) {
|
|
|
427
427
|
|
|
428
428
|
_this.addComponent = function (_a) {
|
|
429
429
|
var type = _a.type,
|
|
430
|
-
terminalType = _a.terminalType
|
|
430
|
+
terminalType = _a.terminalType,
|
|
431
|
+
label = _a.label;
|
|
431
432
|
var MPageData = _this.state.MPageData;
|
|
432
433
|
var compType = _componentTypes.componentMap[type];
|
|
433
434
|
|
|
@@ -440,7 +441,8 @@ function (_super) {
|
|
|
440
441
|
|
|
441
442
|
var newData = __spreadArrays(MPageData, [__assign(__assign({}, compInst), {
|
|
442
443
|
terminalType: terminalType,
|
|
443
|
-
activeTerminal: terminalType
|
|
444
|
+
activeTerminal: terminalType,
|
|
445
|
+
label: label
|
|
444
446
|
})]);
|
|
445
447
|
|
|
446
448
|
_this.history.push(newData);
|
|
@@ -360,8 +360,6 @@ function (_super) {
|
|
|
360
360
|
}];
|
|
361
361
|
|
|
362
362
|
if (needHover) {
|
|
363
|
-
console.log('needHover', needHover);
|
|
364
|
-
|
|
365
363
|
var HoverSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
366
364
|
split: data.hover.backgroundType === 'new',
|
|
367
365
|
title: (0, _locale.i18n)('IMAGE')
|
|
@@ -177,7 +177,8 @@ function (_super) {
|
|
|
177
177
|
|
|
178
178
|
var _a = this.props,
|
|
179
179
|
data = _a.data,
|
|
180
|
-
outputType = _a.outputType
|
|
180
|
+
outputType = _a.outputType,
|
|
181
|
+
editText = _a.editText;
|
|
181
182
|
var textData = _mobx.store.textSelection ? _mobx.store.textSelection : data.content;
|
|
182
183
|
|
|
183
184
|
if (!data.spacing) {
|
|
@@ -361,11 +362,19 @@ function (_super) {
|
|
|
361
362
|
|
|
362
363
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
363
364
|
ref: this.containerRef,
|
|
364
|
-
className: "m-text-config"
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
365
|
+
className: "m-text-config"
|
|
366
|
+
}, editText && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
367
|
+
className: "text-input",
|
|
368
|
+
split: "solid",
|
|
369
|
+
title: (0, _locale.i18n)('TEXT')
|
|
370
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
371
|
+
onChange: function onChange(e) {
|
|
372
|
+
data.text = e.target.value;
|
|
373
|
+
|
|
374
|
+
_this.selfRender();
|
|
375
|
+
},
|
|
376
|
+
value: data.text
|
|
377
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
|
|
369
378
|
// headerSize="small"
|
|
370
379
|
, {
|
|
371
380
|
onRefresh: this.selfRender,
|
|
@@ -375,7 +384,8 @@ function (_super) {
|
|
|
375
384
|
};
|
|
376
385
|
|
|
377
386
|
TextConfig.defaultProps = {
|
|
378
|
-
data: null
|
|
387
|
+
data: null,
|
|
388
|
+
editText: false
|
|
379
389
|
};
|
|
380
390
|
return TextConfig;
|
|
381
391
|
}(_BaseConfig["default"]);
|
package/es/utils/commonUtil.js
CHANGED
|
@@ -21,7 +21,6 @@ exports.getUrlParams = void 0;
|
|
|
21
21
|
exports.goLogin = goLogin;
|
|
22
22
|
exports.importAsync = void 0;
|
|
23
23
|
exports.isLogin = isLogin;
|
|
24
|
-
exports.jumpUrlConfig = void 0;
|
|
25
24
|
exports.navigateBack = navigateBack;
|
|
26
25
|
exports.onListenTouch = exports.nextTick = exports.needReverse = exports.navigateTo = void 0;
|
|
27
26
|
exports.pushGA = pushGA;
|
|
@@ -46,8 +45,6 @@ var _androidUtil = require("./androidUtil");
|
|
|
46
45
|
|
|
47
46
|
var _storeUtil = require("./storeUtil");
|
|
48
47
|
|
|
49
|
-
var _businessUtil = require("./businessUtil");
|
|
50
|
-
|
|
51
48
|
var _coreUtil = require("./coreUtil");
|
|
52
49
|
|
|
53
50
|
var _constants = require("../constants");
|
|
@@ -574,99 +571,72 @@ var JsonToUrl = function JsonToUrl(data) {
|
|
|
574
571
|
|
|
575
572
|
var urlParamsStr = tempArr.join('&');
|
|
576
573
|
return urlParamsStr;
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
574
|
+
}; // export const jumpUrlConfig = item => {
|
|
575
|
+
// const { objType, objValue } = item || {};
|
|
576
|
+
// let jumpUrl = '';
|
|
577
|
+
// switch (objType) {
|
|
578
|
+
// // 新增case
|
|
579
|
+
// case 'ProductList': {
|
|
580
|
+
// const { offerIdList } = objValue.filteredProductsRela;
|
|
581
|
+
// jumpUrl = `/product/list?from=home&objType=ProductList&offerIdList=${offerIdList}`;
|
|
582
|
+
// break;
|
|
583
|
+
// }
|
|
584
|
+
// case 'Category':
|
|
585
|
+
// jumpUrl = isPc() ? `/product/list?from=home&objType=Category&catgIds=${objValue.objId}` : `/product/list/${objValue.objId}`;
|
|
586
|
+
// break;
|
|
587
|
+
// case 'StoreCategory':
|
|
588
|
+
// jumpUrl = isPc() ? `/product/list?from=home&objType=Category&catgIds=${objValue.objId}&storeCatgIds=${objValue.objId}` : `/product/list/${objValue.objId}?storeCatgIds=${objValue.objId}`;
|
|
589
|
+
// break;
|
|
590
|
+
// case 'Coupons':
|
|
591
|
+
// getAdCoupon(objValue.objId);
|
|
592
|
+
// return;
|
|
593
|
+
// case 'ProductDetail': {
|
|
594
|
+
// const offerId = objValue.objId && objValue.objId.split(',')[0];
|
|
595
|
+
// const productId = objValue.objId && objValue.objId.split(',')[1];
|
|
596
|
+
// jumpUrl = `/product/detail/${offerId}?productId=${productId}`;
|
|
597
|
+
// break;
|
|
598
|
+
// }
|
|
599
|
+
// case 'ProductDetailPage': {
|
|
600
|
+
// const offerId = objValue.objId && objValue.objId.split(',')[0];
|
|
601
|
+
// const productId = objValue.objId && objValue.objId.split(',')[1];
|
|
602
|
+
// jumpUrl = `/product/detail/${offerId}?productId=${productId}`;
|
|
603
|
+
// break;
|
|
604
|
+
// }
|
|
605
|
+
// case 'FilteredProducts': {
|
|
606
|
+
// let params = JsonToUrl(objValue.filteredProductsRela);
|
|
607
|
+
// params = params.replace('productName', 'q').replace('cmpTypeId', 'campaignType');
|
|
608
|
+
// jumpUrl = isPc() ? `/product/list?from=home&objType=FilteredProducts&${params}` : `/product/list/null?${params}`;
|
|
609
|
+
// break;
|
|
610
|
+
// }
|
|
611
|
+
// case 'FunctionPage': {
|
|
612
|
+
// const url = objValue.objId && objValue.objId.split(',')[1];
|
|
613
|
+
// jumpUrl = `${url}`;
|
|
614
|
+
// break;
|
|
615
|
+
// }
|
|
616
|
+
// case 'CustomizedPage':
|
|
617
|
+
// jumpUrl = `/poster/${objValue.objId}`;
|
|
618
|
+
// break;
|
|
619
|
+
// case 'URL': {
|
|
620
|
+
// if (objValue.urlRelaDto?.openMode === 'new') {
|
|
621
|
+
// window.open(objValue.urlRelaDto.url);
|
|
622
|
+
// } else {
|
|
623
|
+
// window.location.href = objValue?.urlRelaDto?.url ?? objValue.url;
|
|
624
|
+
// }
|
|
625
|
+
// return;
|
|
626
|
+
// }
|
|
627
|
+
// default:
|
|
628
|
+
// break;
|
|
629
|
+
// }
|
|
630
|
+
// clickUrl(jumpUrl);
|
|
631
|
+
// };
|
|
618
632
|
|
|
619
|
-
case 'ProductDetailPage':
|
|
620
|
-
{
|
|
621
|
-
var offerId = objValue.objId && objValue.objId.split(',')[0];
|
|
622
|
-
var productId = objValue.objId && objValue.objId.split(',')[1];
|
|
623
|
-
jumpUrl = "/product/detail/" + offerId + "?productId=" + productId;
|
|
624
|
-
break;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
case 'FilteredProducts':
|
|
628
|
-
{
|
|
629
|
-
var params = JsonToUrl(objValue.filteredProductsRela);
|
|
630
|
-
params = params.replace('productName', 'q').replace('cmpTypeId', 'campaignType');
|
|
631
|
-
jumpUrl = (0, _coreUtil.isPc)() ? "/product/list?from=home&objType=FilteredProducts&" + params : "/product/list/null?" + params;
|
|
632
|
-
break;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
case 'FunctionPage':
|
|
636
|
-
{
|
|
637
|
-
var url = objValue.objId && objValue.objId.split(',')[1];
|
|
638
|
-
jumpUrl = "" + url;
|
|
639
|
-
break;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
case 'CustomizedPage':
|
|
643
|
-
jumpUrl = "/poster/" + objValue.objId;
|
|
644
|
-
break;
|
|
645
|
-
|
|
646
|
-
case 'URL':
|
|
647
|
-
{
|
|
648
|
-
if (((_a = objValue.urlRelaDto) === null || _a === void 0 ? void 0 : _a.openMode) === 'new') {
|
|
649
|
-
window.open(objValue.urlRelaDto.url);
|
|
650
|
-
} else {
|
|
651
|
-
window.location.href = (_c = (_b = objValue === null || objValue === void 0 ? void 0 : objValue.urlRelaDto) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : objValue.url;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
return;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
default:
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
(0, _coreUtil.clickUrl)(jumpUrl);
|
|
662
|
-
};
|
|
663
633
|
/**
|
|
664
634
|
* 补0 函数
|
|
665
635
|
* @param {*} num 数字
|
|
666
636
|
*/
|
|
667
637
|
|
|
668
638
|
|
|
669
|
-
exports.
|
|
639
|
+
exports.JsonToUrl = JsonToUrl;
|
|
670
640
|
|
|
671
641
|
var addZero = function addZero(num) {
|
|
672
642
|
return String(num).length === 1 ? "0" + String(num) : String(num);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -267,7 +267,8 @@ function (_super) {
|
|
|
267
267
|
_this.getHeader = function (panel) {
|
|
268
268
|
var activeKey = _this.state.activeKey;
|
|
269
269
|
var name = panel.name,
|
|
270
|
-
key = panel.key
|
|
270
|
+
key = panel.key,
|
|
271
|
+
onClick = panel.onClick;
|
|
271
272
|
var _a = _this.props,
|
|
272
273
|
headerStyle = _a.headerStyle,
|
|
273
274
|
showActiveColor = _a.showActiveColor;
|
|
@@ -277,6 +278,7 @@ function (_super) {
|
|
|
277
278
|
} : {};
|
|
278
279
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
279
280
|
className: "header_wrap",
|
|
281
|
+
onClick: onClick,
|
|
280
282
|
onMouseEnter: function onMouseEnter() {
|
|
281
283
|
return _this.headerMouseEnter(panel);
|
|
282
284
|
},
|
|
@@ -72,13 +72,14 @@ function (_super) {
|
|
|
72
72
|
topSplit = _a.topSplit,
|
|
73
73
|
rest = __rest(_a, ["title", "children", "layout", "split", "topSplit"]);
|
|
74
74
|
|
|
75
|
-
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
76
|
-
className: (0, _classnames["default"])('m-field', {
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({}, rest, {
|
|
76
|
+
className: (0, _classnames["default"])('m-field', "" + rest.className, {
|
|
77
77
|
split: split,
|
|
78
78
|
topSplit: topSplit,
|
|
79
|
-
bold: split === 'bold'
|
|
79
|
+
bold: split === 'bold',
|
|
80
|
+
solid: split === 'solid'
|
|
80
81
|
})
|
|
81
|
-
}
|
|
82
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
83
|
className: (0, _classnames["default"])('field-item', {
|
|
83
84
|
horizontal: layout === 'horizontal'
|
|
84
85
|
})
|
|
@@ -114,6 +114,7 @@ function (_super) {
|
|
|
114
114
|
var data = this.props.data;
|
|
115
115
|
var GAData = (0, _commonUtil.getGAData)(data);
|
|
116
116
|
var isHorizontal = data.customize.layout.h5Layout === 'layout2';
|
|
117
|
+
var isFluidLayout = data.customize.layout.h5Layout === 'layout3' || data.customize.layout.h5Layout === 'layout4';
|
|
117
118
|
var colNum = isHorizontal ? data.customize.rowNum : 1;
|
|
118
119
|
var newData = data.groupSource.reduce(function (prev, curr, index) {
|
|
119
120
|
var i = Math.floor(index / colNum);
|
|
@@ -122,7 +123,7 @@ function (_super) {
|
|
|
122
123
|
}, []);
|
|
123
124
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
125
|
className: "m-image-gallery-mobile"
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
}, !isFluidLayout && /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
127
|
className: "content"
|
|
127
128
|
}, newData.map(function (arr, index) {
|
|
128
129
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -150,7 +151,37 @@ function (_super) {
|
|
|
150
151
|
maxWidth: "100%"
|
|
151
152
|
}));
|
|
152
153
|
}));
|
|
153
|
-
}))
|
|
154
|
+
})), data.customize.layout.h5Layout === 'layout3' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
+
className: "fluid-content"
|
|
156
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
|
+
className: "left-img"
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
159
|
+
data: data.groupSource[0].image,
|
|
160
|
+
maxWidth: "100%"
|
|
161
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
|
+
className: "right-img"
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
164
|
+
data: data.groupSource[1].image,
|
|
165
|
+
maxWidth: "100%"
|
|
166
|
+
}), /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
167
|
+
data: data.groupSource[2].image,
|
|
168
|
+
maxWidth: "100%"
|
|
169
|
+
}))), data.customize.layout.h5Layout === 'layout4' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "fluid-content"
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
172
|
+
className: "left-img"
|
|
173
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
174
|
+
data: data.groupSource[0].image,
|
|
175
|
+
maxWidth: "100%"
|
|
176
|
+
}), /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
177
|
+
data: data.groupSource[1].image,
|
|
178
|
+
maxWidth: "100%"
|
|
179
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
|
+
className: "right-img"
|
|
181
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
182
|
+
data: data.groupSource[2].image,
|
|
183
|
+
maxWidth: "100%"
|
|
184
|
+
}))));
|
|
154
185
|
};
|
|
155
186
|
|
|
156
187
|
ImageGalleryMobile.defaultProps = {
|
|
@@ -16,3 +16,18 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
}
|
|
19
|
+
.m-image-gallery-mobile .fluid-content {
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
.m-image-gallery-mobile .fluid-content > div {
|
|
23
|
+
width: calc((100% - 0.4rem) / 2);
|
|
24
|
+
}
|
|
25
|
+
.m-image-gallery-mobile .fluid-content .left-img > div:nth-child(2) {
|
|
26
|
+
margin-top: 0.2rem;
|
|
27
|
+
}
|
|
28
|
+
.m-image-gallery-mobile .fluid-content .right-img {
|
|
29
|
+
margin-left: 0.4rem;
|
|
30
|
+
}
|
|
31
|
+
.m-image-gallery-mobile .fluid-content .right-img > div:nth-child(2) {
|
|
32
|
+
margin-top: 0.2rem;
|
|
33
|
+
}
|
|
@@ -124,7 +124,8 @@ function (_super) {
|
|
|
124
124
|
key: group.id,
|
|
125
125
|
className: "video-item-wrap",
|
|
126
126
|
style: (0, _commonUtil.pxToRem)({
|
|
127
|
-
height: data.mobileHeight
|
|
127
|
+
height: data.mobileHeight,
|
|
128
|
+
borderRadius: data.arc
|
|
128
129
|
})
|
|
129
130
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
130
131
|
ref: function ref(el) {
|
|
@@ -156,7 +156,8 @@ function (_super) {
|
|
|
156
156
|
key: group.id,
|
|
157
157
|
className: "video-item-wrap",
|
|
158
158
|
style: (0, _commonUtil.pxToRem)({
|
|
159
|
-
height: data.mobileHeight
|
|
159
|
+
height: data.mobileHeight,
|
|
160
|
+
borderRadius: data.arc
|
|
160
161
|
})
|
|
161
162
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
162
163
|
ref: function ref(el) {
|
|
@@ -126,7 +126,8 @@ function (_super) {
|
|
|
126
126
|
key: group.id,
|
|
127
127
|
className: "video-item-wrap",
|
|
128
128
|
style: (0, _commonUtil.pxToRem)({
|
|
129
|
-
height: data.mobileHeight
|
|
129
|
+
height: data.mobileHeight,
|
|
130
|
+
borderRadius: data.arc
|
|
130
131
|
})
|
|
131
132
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
132
133
|
ref: function ref(el) {
|
|
@@ -123,7 +123,8 @@ function (_super) {
|
|
|
123
123
|
key: group.id,
|
|
124
124
|
className: "video-item-wrap",
|
|
125
125
|
style: {
|
|
126
|
-
height: data.pcHeight
|
|
126
|
+
height: data.pcHeight,
|
|
127
|
+
borderRadius: data.arc
|
|
127
128
|
}
|
|
128
129
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
129
130
|
ref: function ref(el) {
|
|
@@ -128,7 +128,10 @@ function (_super) {
|
|
|
128
128
|
}
|
|
129
129
|
}, firstGroup && /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
130
|
key: firstGroup.id,
|
|
131
|
-
className: "video-left-wrap"
|
|
131
|
+
className: "video-left-wrap",
|
|
132
|
+
style: {
|
|
133
|
+
borderRadius: data.arc
|
|
134
|
+
}
|
|
132
135
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
133
136
|
ref: function ref(el) {
|
|
134
137
|
if (!_this.videoRefMap[firstGroup.id]) {
|
|
@@ -181,7 +184,10 @@ function (_super) {
|
|
|
181
184
|
var isPlaying = !!((_a = _this.videoRefMap[group.id]) === null || _a === void 0 ? void 0 : _a.playing);
|
|
182
185
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
186
|
key: group.id,
|
|
184
|
-
className: "video-item-wrap"
|
|
187
|
+
className: "video-item-wrap",
|
|
188
|
+
style: {
|
|
189
|
+
borderRadius: data.arc
|
|
190
|
+
}
|
|
185
191
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
186
192
|
ref: function ref(el) {
|
|
187
193
|
if (!_this.videoRefMap[group.id]) {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
height: 100%;
|
|
25
25
|
position: relative;
|
|
26
26
|
width: 50%;
|
|
27
|
+
overflow: hidden;
|
|
27
28
|
|
|
28
29
|
.play-btn {
|
|
29
30
|
position: absolute;
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
flex-direction: column;
|
|
49
50
|
flex: 1;
|
|
50
51
|
width: 100%;
|
|
52
|
+
overflow: hidden;
|
|
51
53
|
|
|
52
54
|
.play-btn {
|
|
53
55
|
position: absolute;
|
|
@@ -133,7 +133,10 @@ function (_super) {
|
|
|
133
133
|
var isPlaying = !!((_a = _this.videoRefMap[group.id]) === null || _a === void 0 ? void 0 : _a.playing);
|
|
134
134
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
135
|
key: group.id,
|
|
136
|
-
className: "video-item-wrap"
|
|
136
|
+
className: "video-item-wrap",
|
|
137
|
+
style: {
|
|
138
|
+
borderRadius: data.arc
|
|
139
|
+
}
|
|
137
140
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
138
141
|
ref: function ref(el) {
|
|
139
142
|
if (!_this.videoRefMap[group.id]) {
|
|
@@ -126,7 +126,8 @@ function (_super) {
|
|
|
126
126
|
key: group.id,
|
|
127
127
|
className: "video-item-wrap",
|
|
128
128
|
style: {
|
|
129
|
-
height: data.pcHeight
|
|
129
|
+
height: data.pcHeight,
|
|
130
|
+
borderRadius: data.arc
|
|
130
131
|
}
|
|
131
132
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
132
133
|
ref: function ref(el) {
|
|
@@ -126,7 +126,8 @@ function (_super) {
|
|
|
126
126
|
key: group.id,
|
|
127
127
|
className: "video-item-wrap",
|
|
128
128
|
style: {
|
|
129
|
-
height: data.pcHeight
|
|
129
|
+
height: data.pcHeight,
|
|
130
|
+
borderRadius: data.arc
|
|
130
131
|
}
|
|
131
132
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
132
133
|
ref: function ref(el) {
|
|
@@ -131,6 +131,7 @@ function (_super) {
|
|
|
131
131
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
132
|
className: "btn_wrap"
|
|
133
133
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
134
|
+
disabled: source.length >= 3,
|
|
134
135
|
icon: "icon-add",
|
|
135
136
|
onClick: this.onAddClick,
|
|
136
137
|
type: "primary"
|
|
@@ -58,7 +58,7 @@ function ImageGalleryConfig(props) {
|
|
|
58
58
|
component: "imageGallery",
|
|
59
59
|
data: data.customize,
|
|
60
60
|
isHideAlign: true,
|
|
61
|
-
layoutSource: _layout.imageGalleryLayout,
|
|
61
|
+
layoutSource: (0, _coreUtil.isPc)() ? _layout.imageGalleryPcLayout : _layout.imageGalleryLayout,
|
|
62
62
|
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
63
63
|
return getLayout(v);
|
|
64
64
|
}
|