@fonixtree/magic-design 0.1.68 → 0.1.70-nuri
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/.DS_Store +0 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +3 -2
- package/es/composite-comp/bol/components/Banner/index.js +14 -42
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/es/composite-comp/bol/components/Button/index.js +3 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/Carousel/pc/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/ImageText/pc/index.js +3 -4
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/es/composite-comp/bol/components/Tag/index.js +3 -4
- package/es/composite-comp/bol/components/Text/index.js +3 -4
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -4
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -4
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +1 -4
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -4
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +1 -4
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -4
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +1 -4
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +1 -4
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
- package/es/core/Designer/index.js +10 -4
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +2 -0
- package/es/locale/es/es.json +2 -0
- package/es/locale/id/id.json +2 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +5 -1
- package/es/utils/businessUtil.js +3 -2
- package/es/utils/commonUtil.js +58 -6
- package/es/utils/coreUtil.js +22 -26
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +3 -2
- package/lib/composite-comp/bol/components/Banner/index.js +14 -42
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/Button/index.js +3 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/lib/composite-comp/bol/components/Tag/index.js +3 -4
- package/lib/composite-comp/bol/components/Text/index.js +3 -4
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -4
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -4
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +1 -4
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +1 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +1 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +1 -4
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
- package/lib/core/Designer/index.js +10 -4
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +2 -0
- package/lib/locale/es/es.json +2 -0
- package/lib/locale/id/id.json +2 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +5 -1
- package/lib/utils/businessUtil.js +3 -2
- package/lib/utils/commonUtil.js +58 -6
- package/lib/utils/coreUtil.js +22 -26
- package/package.json +1 -1
package/es/utils/commonUtil.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.copy2ClipBoard = copy2ClipBoard;
|
|
|
14
14
|
exports.covertKey = covertKey;
|
|
15
15
|
exports.dragSource = void 0;
|
|
16
16
|
exports.ensure = ensure;
|
|
17
|
-
exports.getColorRgba = void 0;
|
|
17
|
+
exports.getGAData = exports.getColorRgba = void 0;
|
|
18
18
|
exports.getPageDataMap = getPageDataMap;
|
|
19
19
|
exports.nextTick = exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
|
|
20
20
|
exports.pushGA = pushGA;
|
|
@@ -33,8 +33,26 @@ var _uuid = require("uuid");
|
|
|
33
33
|
|
|
34
34
|
var _qs = _interopRequireDefault(require("qs"));
|
|
35
35
|
|
|
36
|
+
var _constants = require("../constants");
|
|
37
|
+
|
|
36
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
39
|
|
|
40
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
41
|
+
__assign = Object.assign || function (t) {
|
|
42
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
43
|
+
s = arguments[i];
|
|
44
|
+
|
|
45
|
+
for (var p in s) {
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return t;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
return __assign.apply(this, arguments);
|
|
54
|
+
};
|
|
55
|
+
|
|
38
56
|
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
39
57
|
function adopt(value) {
|
|
40
58
|
return value instanceof P ? value : new P(function (resolve) {
|
|
@@ -781,9 +799,33 @@ exports.pxToRem = pxToRem;
|
|
|
781
799
|
var compatibleNewPageData = function compatibleNewPageData(pageData) {
|
|
782
800
|
if (pageData.childNodes && pageData.childNodes.length > 0) {
|
|
783
801
|
pageData.childNodes.forEach(function (child) {
|
|
784
|
-
//
|
|
802
|
+
// 兼容新功能:banner 轮播的 dots 点 区分pc 移动
|
|
803
|
+
if (child.type === 'BANNER') {
|
|
804
|
+
if (!child.setting.dots.color.pc || !child.setting.dots.hoverColor.pc || !child.setting.dots.size.pc) {
|
|
805
|
+
child.setting.dots = __assign(__assign({}, child.setting.dots), {
|
|
806
|
+
color: {
|
|
807
|
+
pc: '#fff',
|
|
808
|
+
mobile: '#fff'
|
|
809
|
+
},
|
|
810
|
+
hoverColor: {
|
|
811
|
+
pc: '#fff',
|
|
812
|
+
mobile: '#fff'
|
|
813
|
+
},
|
|
814
|
+
size: {
|
|
815
|
+
pc: 16,
|
|
816
|
+
mobile: 8
|
|
817
|
+
},
|
|
818
|
+
hoverSize: {
|
|
819
|
+
pc: 16,
|
|
820
|
+
mobile: 8
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
} // 兼容新开发的功能: video新增播放按钮 的设置
|
|
825
|
+
|
|
826
|
+
|
|
785
827
|
if (child.type === 'VIDEO') {
|
|
786
|
-
console.log('--compatibleNewPageData -- video ');
|
|
828
|
+
// console.log('--compatibleNewPageData -- video ');
|
|
787
829
|
child.groupSource.forEach(function (group) {
|
|
788
830
|
if (!group.playIcon) {
|
|
789
831
|
group.playIcon = {
|
|
@@ -797,11 +839,21 @@ var compatibleNewPageData = function compatibleNewPageData(pageData) {
|
|
|
797
839
|
iconColor: 'Light'
|
|
798
840
|
};
|
|
799
841
|
}
|
|
800
|
-
});
|
|
801
|
-
console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
|
|
842
|
+
}); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
|
|
802
843
|
}
|
|
803
844
|
});
|
|
804
845
|
}
|
|
805
846
|
};
|
|
806
847
|
|
|
807
|
-
exports.compatibleNewPageData = compatibleNewPageData;
|
|
848
|
+
exports.compatibleNewPageData = compatibleNewPageData;
|
|
849
|
+
|
|
850
|
+
var getGAData = function getGAData(data) {
|
|
851
|
+
var _a;
|
|
852
|
+
|
|
853
|
+
return {
|
|
854
|
+
moduleId: data.id,
|
|
855
|
+
moduleName: data.moduleIndex + '.' + ((_a = _constants.compInfoMap[data.type]) === null || _a === void 0 ? void 0 : _a.name)
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
exports.getGAData = getGAData;
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -11,8 +11,6 @@ var _businessUtil = require("./businessUtil");
|
|
|
11
11
|
|
|
12
12
|
var _commonUtil = require("./commonUtil");
|
|
13
13
|
|
|
14
|
-
var _androidUtil = require("./androidUtil");
|
|
15
|
-
|
|
16
14
|
var _constants = require("../constants");
|
|
17
15
|
|
|
18
16
|
var _MessageModal = _interopRequireDefault(require("../common/MessageModal"));
|
|
@@ -302,35 +300,33 @@ var clickUrl = function clickUrl(url) {
|
|
|
302
300
|
data = _a.data;
|
|
303
301
|
|
|
304
302
|
var _b = data.params,
|
|
305
|
-
params = _b === void 0 ? {} : _b;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
} // 领取优惠券
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
if (params.type === 'GET_COUPON') {
|
|
320
|
-
getCoupon(params.couponId);
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
303
|
+
params = _b === void 0 ? {} : _b; // if (browserVersion().isApp) {
|
|
304
|
+
// sendToApp(data);
|
|
305
|
+
// } else {
|
|
306
|
+
// 视频
|
|
307
|
+
|
|
308
|
+
if (params.type === 'VIDEO') {
|
|
309
|
+
(0, _Video.createVideoModal)((0, _uuid.v4)(), __assign(__assign({}, params.data), {
|
|
310
|
+
source: params.data.sourceUrl
|
|
311
|
+
}));
|
|
312
|
+
return;
|
|
313
|
+
} // 领取优惠券
|
|
323
314
|
|
|
324
|
-
if (params.type === 'SHARE_URL' || params.type === 'AFFILIATE_PRODUCT') {
|
|
325
|
-
if (window.magicDesign.handleAction) {
|
|
326
|
-
window.magicDesign.handleAction(params);
|
|
327
|
-
}
|
|
328
315
|
|
|
329
|
-
|
|
316
|
+
if (params.type === 'GET_COUPON') {
|
|
317
|
+
getCoupon(params.couponId);
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
if (params.type === 'SHARE_URL' || params.type === 'AFFILIATE_PRODUCT') {
|
|
322
|
+
if (window.magicDesign.handleAction) {
|
|
323
|
+
window.magicDesign.handleAction(params);
|
|
330
324
|
}
|
|
331
325
|
|
|
332
|
-
|
|
326
|
+
return;
|
|
333
327
|
}
|
|
328
|
+
|
|
329
|
+
(0, _commonUtil.navigateTo)(link); // }
|
|
334
330
|
};
|
|
335
331
|
|
|
336
332
|
exports.clickUrl = clickUrl;
|
|
Binary file
|
|
@@ -265,8 +265,9 @@ function AffiliateProductTable(props) {
|
|
|
265
265
|
var rowSelection = {
|
|
266
266
|
onChange: function onChange(selectedRowKeys, selectedRow) {
|
|
267
267
|
_onChange({
|
|
268
|
-
value: selectedRow[0].
|
|
269
|
-
name: selectedRow[0].productName
|
|
268
|
+
value: selectedRow[0].productName,
|
|
269
|
+
name: selectedRow[0].productName,
|
|
270
|
+
productId: selectedRow[0].affiliateProductId
|
|
270
271
|
});
|
|
271
272
|
},
|
|
272
273
|
type: 'radio'
|
|
@@ -49,22 +49,6 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
|
|
52
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
53
|
-
__assign = Object.assign || function (t) {
|
|
54
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
55
|
-
s = arguments[i];
|
|
56
|
-
|
|
57
|
-
for (var p in s) {
|
|
58
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return __assign.apply(this, arguments);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
52
|
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
69
53
|
var c = arguments.length,
|
|
70
54
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -82,33 +66,21 @@ function (_super) {
|
|
|
82
66
|
|
|
83
67
|
function Banner() {
|
|
84
68
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
85
|
-
}
|
|
69
|
+
} // componentWillMount() {
|
|
70
|
+
// // 兼容新功能: 轮播的 dots 点 区分pc 移动
|
|
71
|
+
// const { nodeData } = this.props;
|
|
72
|
+
// if (!nodeData.setting.dots.color.pc || !nodeData.setting.dots.hoverColor.pc || !nodeData.setting.dots.size.pc) {
|
|
73
|
+
// nodeData.setting.dots = { ...nodeData.setting.dots,
|
|
74
|
+
// ...{
|
|
75
|
+
// color: { pc: '#fff', mobile: '#fff' },
|
|
76
|
+
// hoverColor: { pc: '#fff', mobile: '#fff' },
|
|
77
|
+
// size: { pc: 16, mobile: 8 },
|
|
78
|
+
// hoverSize: { pc: 16, mobile: 8 },
|
|
79
|
+
// },
|
|
80
|
+
// };
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
86
83
|
|
|
87
|
-
Banner.prototype.componentWillMount = function () {
|
|
88
|
-
// 兼容新功能: 轮播的 dots 点 区分pc 移动
|
|
89
|
-
var nodeData = this.props.nodeData;
|
|
90
|
-
|
|
91
|
-
if (!nodeData.setting.dots.color.pc || !nodeData.setting.dots.hoverColor.pc || !nodeData.setting.dots.size.pc) {
|
|
92
|
-
nodeData.setting.dots = __assign(__assign({}, nodeData.setting.dots), {
|
|
93
|
-
color: {
|
|
94
|
-
pc: '#fff',
|
|
95
|
-
mobile: '#fff'
|
|
96
|
-
},
|
|
97
|
-
hoverColor: {
|
|
98
|
-
pc: '#fff',
|
|
99
|
-
mobile: '#fff'
|
|
100
|
-
},
|
|
101
|
-
size: {
|
|
102
|
-
pc: 16,
|
|
103
|
-
mobile: 8
|
|
104
|
-
},
|
|
105
|
-
hoverSize: {
|
|
106
|
-
pc: 16,
|
|
107
|
-
mobile: 8
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
84
|
|
|
113
85
|
Banner.prototype.render = function () {
|
|
114
86
|
var nodeData = this.props.nodeData; // console.log('---banner', nodeData);
|
|
@@ -182,10 +182,7 @@ function (_super) {
|
|
|
182
182
|
carouseIndex = _a.carouseIndex,
|
|
183
183
|
hoverState = _a.hoverState;
|
|
184
184
|
var autoplay = data.setting.autoplay.open;
|
|
185
|
-
var GAData =
|
|
186
|
-
moduleId: data.id,
|
|
187
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
188
|
-
};
|
|
185
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
189
186
|
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
190
187
|
|
|
191
188
|
if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
|
|
@@ -1,80 +1,54 @@
|
|
|
1
1
|
.m-banner-mobile {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.swiper-ban {
|
|
58
|
-
position: absolute;
|
|
59
|
-
width: 100%;
|
|
60
|
-
bottom: 10px;
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
|
|
65
|
-
.ban {
|
|
66
|
-
font-size: 16px;
|
|
67
|
-
width: 1.5em;
|
|
68
|
-
height: 0.3em;
|
|
69
|
-
background: #FFF;
|
|
70
|
-
cursor: inherit;
|
|
71
|
-
margin-right: 0.3em;
|
|
72
|
-
transition: all .5s;
|
|
73
|
-
|
|
74
|
-
&.active {
|
|
75
|
-
width: 1.5em;
|
|
76
|
-
opacity: 1;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
3
|
+
}
|
|
4
|
+
.m-banner-mobile .cylon-carousel .slick-track {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
.m-banner-mobile .carouselItem {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
.m-banner-mobile .carouselItem .carouseContent {
|
|
13
|
+
padding: 0 0.56rem;
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
margin-bottom: auto;
|
|
19
|
+
}
|
|
20
|
+
.m-banner-mobile .carouselItem .title {
|
|
21
|
+
margin-bottom: 0.16rem;
|
|
22
|
+
}
|
|
23
|
+
.m-banner-mobile .carouselItem .sub-title {
|
|
24
|
+
margin-bottom: 0.4rem;
|
|
25
|
+
}
|
|
26
|
+
.m-banner-mobile .carouselItem .btn-wrap {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: flex-start;
|
|
30
|
+
}
|
|
31
|
+
.m-banner-mobile .carouselItem .btn-wrap .btn {
|
|
32
|
+
margin-right: 0.24rem;
|
|
33
|
+
}
|
|
34
|
+
.m-banner-mobile .swiper-ban {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 100%;
|
|
37
|
+
bottom: 0.2rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
.m-banner-mobile .swiper-ban .ban {
|
|
43
|
+
font-size: 0.32rem;
|
|
44
|
+
width: 1.5em;
|
|
45
|
+
height: 0.3em;
|
|
46
|
+
background: #FFF;
|
|
47
|
+
cursor: inherit;
|
|
48
|
+
margin-right: 0.3em;
|
|
49
|
+
transition: all 0.5s;
|
|
50
|
+
}
|
|
51
|
+
.m-banner-mobile .swiper-ban .ban.active {
|
|
52
|
+
width: 1.5em;
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
@@ -227,10 +227,7 @@ function (_super) {
|
|
|
227
227
|
autoplay = false;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
var GAData =
|
|
231
|
-
moduleId: data.id,
|
|
232
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
233
|
-
};
|
|
230
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
234
231
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
235
232
|
className: "m-banner-pc"
|
|
236
233
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
@@ -17,6 +17,8 @@ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/
|
|
|
17
17
|
|
|
18
18
|
var _ConfigPanel = require("../../../../core/Designer/ConfigPanel");
|
|
19
19
|
|
|
20
|
+
var _commonUtil = require("../../../../utils/commonUtil");
|
|
21
|
+
|
|
20
22
|
require("./index.less");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -92,10 +94,7 @@ function (_super) {
|
|
|
92
94
|
var _a;
|
|
93
95
|
|
|
94
96
|
var nodeData = this.props.nodeData;
|
|
95
|
-
var GAData =
|
|
96
|
-
moduleId: nodeData.id,
|
|
97
|
-
moduleName: nodeData.moduleIndex + '.' + nodeData.type
|
|
98
|
-
};
|
|
97
|
+
var GAData = (0, _commonUtil.getGAData)(nodeData);
|
|
99
98
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
99
|
className: (0, _classnames["default"])('button-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
|
|
101
100
|
onClick: this.onComponentClick
|
|
@@ -199,10 +199,7 @@ function (_super) {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
var floorColNum = Math.floor(colNum);
|
|
202
|
-
var GAData =
|
|
203
|
-
moduleId: data.id,
|
|
204
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
205
|
-
};
|
|
202
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
206
203
|
var autoplay = data.setting.autoplay.open;
|
|
207
204
|
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
208
205
|
|
|
@@ -1,103 +1,84 @@
|
|
|
1
1
|
.m-carousel-mobile {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border-radius: 50%;
|
|
86
|
-
background: #FFF;
|
|
87
|
-
cursor: inherit;
|
|
88
|
-
margin-right: 10px;
|
|
89
|
-
transition: all .5s;
|
|
90
|
-
|
|
91
|
-
&:last-child {
|
|
92
|
-
margin-right: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.active {
|
|
96
|
-
width: 2em;
|
|
97
|
-
height: 1em;
|
|
98
|
-
border-radius: 100px;
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
4
|
+
}
|
|
5
|
+
.m-carousel-mobile .content {
|
|
6
|
+
display: flex;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
}
|
|
9
|
+
.m-carousel-mobile .slider-wrap {
|
|
10
|
+
width: 100%;
|
|
11
|
+
margin: 0 auto;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
}
|
|
14
|
+
.m-carousel-mobile .slider-wrap .slick-list {
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
.m-carousel-mobile .slider-wrap .slick-list:hover {
|
|
18
|
+
padding-top: 2rem;
|
|
19
|
+
margin-top: -2rem;
|
|
20
|
+
padding-bottom: 2rem;
|
|
21
|
+
margin-bottom: -2rem;
|
|
22
|
+
}
|
|
23
|
+
.m-carousel-mobile .slider-wrap .slick-list .slick-track {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.24rem;
|
|
27
|
+
}
|
|
28
|
+
.m-carousel-mobile .slider-wrap .img-wrap .img {
|
|
29
|
+
width: fit-content;
|
|
30
|
+
height: fit-content;
|
|
31
|
+
display: block;
|
|
32
|
+
margin: 0 auto;
|
|
33
|
+
}
|
|
34
|
+
.m-carousel-mobile .slider-wrap .img-wrap .title {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
margin-top: 0.24rem;
|
|
38
|
+
}
|
|
39
|
+
.m-carousel-mobile .slider-wrap .img-wrap .text {
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
margin-top: 0.12rem;
|
|
43
|
+
}
|
|
44
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags {
|
|
45
|
+
margin-top: 0.16rem;
|
|
46
|
+
margin-bottom: 0.24rem;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div {
|
|
53
|
+
margin-right: 0.16rem;
|
|
54
|
+
}
|
|
55
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div:last-child {
|
|
56
|
+
margin-right: 0;
|
|
57
|
+
}
|
|
58
|
+
.m-carousel-mobile .swiper-ban {
|
|
59
|
+
position: absolute;
|
|
60
|
+
width: 100%;
|
|
61
|
+
bottom: 0.12rem;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
66
|
+
.m-carousel-mobile .swiper-ban .ban {
|
|
67
|
+
font-size: 0.16rem;
|
|
68
|
+
width: 1em;
|
|
69
|
+
height: 1em;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
background: #FFF;
|
|
72
|
+
cursor: inherit;
|
|
73
|
+
margin-right: 0.2rem;
|
|
74
|
+
transition: all 0.5s;
|
|
75
|
+
}
|
|
76
|
+
.m-carousel-mobile .swiper-ban .ban:last-child {
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
}
|
|
79
|
+
.m-carousel-mobile .swiper-ban .ban.active {
|
|
80
|
+
width: 2em;
|
|
81
|
+
height: 1em;
|
|
82
|
+
border-radius: 2rem;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
@@ -209,10 +209,7 @@ function (_super) {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
var floorColNum = Math.floor(colNum);
|
|
212
|
-
var GAData =
|
|
213
|
-
moduleId: data.id,
|
|
214
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
215
|
-
};
|
|
212
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
216
213
|
var autoplay = data.setting.autoplay.open;
|
|
217
214
|
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
218
215
|
|
|
@@ -112,10 +112,7 @@ function (_super) {
|
|
|
112
112
|
|
|
113
113
|
ImageGalleryMobile.prototype.render = function () {
|
|
114
114
|
var data = this.props.data;
|
|
115
|
-
var GAData =
|
|
116
|
-
moduleId: data.id,
|
|
117
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
118
|
-
};
|
|
115
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
119
116
|
var isHorizontal = data.customize.layout.h5Layout === 'layout2';
|
|
120
117
|
var colNum = isHorizontal ? data.customize.rowNum : 1;
|
|
121
118
|
var newData = data.groupSource.reduce(function (prev, curr, index) {
|