@fonixtree/magic-design 0.0.150 → 0.0.151
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/layout-video-h5-1.png +0 -0
- package/es/common/ImageModal/index.js +75 -31
- package/es/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CatgTable/index.js +1 -1
- package/es/common/LinkModal/CouponTable/index.js +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +5 -5
- package/es/common/LinkModal/FunctionTable/index.js +1 -1
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.js +2 -2
- package/es/common/ProductModal/index.js +4 -4
- package/es/common/UrlPicker/index.js +1 -1
- package/es/common/Video/closeImg.png +0 -0
- package/es/common/Video/index.js +14 -1
- package/es/common/Video/index.less +10 -6
- package/es/composite-comp/bol/components/Text/index.js +22 -8
- package/es/composite-comp/bol/components/Text/index.less +4 -6
- package/es/composite-comp/bol/components/Video/components/ShareBtn/index.less +7 -4
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +9 -3
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +2 -2
- package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +7 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +2 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -5
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +3 -3
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +17 -8
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +16 -3
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -11
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +7 -4
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -2
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +11 -4
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -2
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +9 -2
- package/es/composite-comp/bol/components/Video/pc/index.js +14 -5
- package/es/composite-comp/common/components/ImageLabel/index.less +3 -2
- package/es/composite-comp/common/components/ProductItem/index.js +3 -2
- package/es/composite-comp/common/components/ProductItem/index.less +4 -9
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +4 -2
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +4 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +5 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -6
- package/es/constants/index.js +3 -1
- package/es/core/Designer/ConfigPanel/index.js +12 -3
- package/es/core/Designer/LeftTitle/index.js +66 -0
- package/es/core/Designer/LeftTitle/index.less +9 -0
- package/es/core/Designer/QuickMenuBar/index.js +15 -5
- package/es/core/Designer/RenderHtml/index.js +89 -0
- package/es/core/Designer/RenderHtml/index.less +5 -0
- package/es/core/Designer/index.js +223 -4
- package/es/core/Renderer/index.js +5 -2
- package/es/decorator/compositeDecorator.js +2 -2
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/id/id.json +1 -0
- package/es/meta-comp/components/Text/index.js +55 -16
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/commonUtil.js +11 -0
- package/es/utils/coreUtil.js +8 -4
- package/lib/assets/images/layout-icon/layout-video-h5-1.png +0 -0
- package/lib/common/ImageModal/index.js +75 -31
- package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CatgTable/index.js +1 -1
- package/lib/common/LinkModal/CouponTable/index.js +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +5 -5
- package/lib/common/LinkModal/FunctionTable/index.js +1 -1
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.js +2 -2
- package/lib/common/ProductModal/index.js +4 -4
- package/lib/common/UrlPicker/index.js +1 -1
- package/lib/common/Video/closeImg.png +0 -0
- package/lib/common/Video/index.js +14 -1
- package/lib/common/Video/index.less +10 -6
- package/lib/composite-comp/bol/components/Text/index.js +22 -8
- package/lib/composite-comp/bol/components/Text/index.less +4 -6
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.less +7 -4
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +9 -3
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +7 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -5
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +3 -3
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +17 -8
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +16 -3
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -11
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +7 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +11 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +9 -2
- package/lib/composite-comp/bol/components/Video/pc/index.js +14 -5
- package/lib/composite-comp/common/components/ImageLabel/index.less +3 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +3 -2
- package/lib/composite-comp/common/components/ProductItem/index.less +4 -9
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +4 -2
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +4 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +5 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -6
- package/lib/constants/index.js +3 -1
- package/lib/core/Designer/ConfigPanel/index.js +12 -3
- package/lib/core/Designer/LeftTitle/index.js +66 -0
- package/lib/core/Designer/LeftTitle/index.less +9 -0
- package/lib/core/Designer/QuickMenuBar/index.js +15 -5
- package/lib/core/Designer/RenderHtml/index.js +89 -0
- package/lib/core/Designer/RenderHtml/index.less +5 -0
- package/lib/core/Designer/index.js +223 -4
- package/lib/core/Renderer/index.js +5 -2
- package/lib/decorator/compositeDecorator.js +2 -2
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/id/id.json +1 -0
- package/lib/meta-comp/components/Text/index.js +55 -16
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/commonUtil.js +11 -0
- package/lib/utils/coreUtil.js +8 -4
- package/package.json +3 -2
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
display: flex;
|
|
13
13
|
transform: translateX(-100%);
|
|
14
14
|
transition: all .3s linear;
|
|
15
|
+
position: relative;
|
|
15
16
|
|
|
16
17
|
&.noAnimation {
|
|
17
18
|
animation: none;
|
|
@@ -21,7 +22,6 @@
|
|
|
21
22
|
.video-item-wrap {
|
|
22
23
|
height: 212px;
|
|
23
24
|
position: relative;
|
|
24
|
-
margin-bottom: 10px;
|
|
25
25
|
width: 100%;
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
top: 50%;
|
|
35
35
|
left: 50%;
|
|
36
36
|
transform: translate(-50%, -50%);
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
37
|
+
width: 60px;
|
|
38
|
+
height: 60px;
|
|
39
39
|
z-index: 1;
|
|
40
40
|
|
|
41
41
|
img {
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
10
12
|
var _common = require("../../../../../../common");
|
|
11
13
|
|
|
12
14
|
var _playCircle = _interopRequireDefault(require("../../imgs/play-circle.png"));
|
|
@@ -15,10 +17,12 @@ var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
|
15
17
|
|
|
16
18
|
var _coreUtil = require("../../../../../../utils/coreUtil");
|
|
17
19
|
|
|
18
|
-
require("./index.less");
|
|
19
|
-
|
|
20
20
|
var _VideoTag = _interopRequireDefault(require("../../components/VideoTag"));
|
|
21
21
|
|
|
22
|
+
var _ShareBtn = _interopRequireDefault(require("../../components/ShareBtn"));
|
|
23
|
+
|
|
24
|
+
require("./index.less");
|
|
25
|
+
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
27
|
|
|
24
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -65,8 +69,6 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
65
69
|
/* eslint-disable no-lonely-if */
|
|
66
70
|
|
|
67
71
|
|
|
68
|
-
var debug = require('debug')('worker:Layout3');
|
|
69
|
-
|
|
70
72
|
var Layout3 =
|
|
71
73
|
/** @class */
|
|
72
74
|
function (_super) {
|
|
@@ -137,14 +139,21 @@ function (_super) {
|
|
|
137
139
|
source: group.video.sourceUrl
|
|
138
140
|
}),
|
|
139
141
|
videoId: group.id
|
|
140
|
-
}), !isPlaying &&
|
|
141
|
-
className: "play-btn
|
|
142
|
+
}), !isPlaying && /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: (0, _classnames["default"])('play-btn', {
|
|
144
|
+
middle: group.video.playButton == 'Middle',
|
|
145
|
+
bottomLeft: group.video.playButton == 'Bottom Left'
|
|
146
|
+
})
|
|
142
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
143
148
|
alt: "",
|
|
144
149
|
src: _playCircle["default"]
|
|
145
|
-
}))
|
|
150
|
+
})), data.share.open && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
151
|
+
data: data.share
|
|
152
|
+
})), /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
153
|
+
align: data.customize.align,
|
|
146
154
|
data: group,
|
|
147
|
-
|
|
155
|
+
layout: 'h5-' + data.customize.layout.h5Layout,
|
|
156
|
+
noShare: true,
|
|
148
157
|
position: "relative",
|
|
149
158
|
share: __assign({
|
|
150
159
|
url: (0, _commonUtil.addUrlQuery)(window.location.href, {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
margin-bottom: 10px;
|
|
9
9
|
|
|
10
|
-
&:last-child{
|
|
10
|
+
&:last-child {
|
|
11
11
|
margin-bottom: 0;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -26,14 +26,27 @@
|
|
|
26
26
|
top: 50%;
|
|
27
27
|
left: 50%;
|
|
28
28
|
transform: translate(-50%, -50%);
|
|
29
|
-
width:
|
|
30
|
-
height:
|
|
29
|
+
width: 60px;
|
|
30
|
+
height: 60px;
|
|
31
31
|
z-index: 1;
|
|
32
32
|
|
|
33
33
|
img {
|
|
34
34
|
width: 100%;
|
|
35
35
|
height: 100%;
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
&.bottomLeft {
|
|
39
|
+
left: 16px;
|
|
40
|
+
bottom: 16px;
|
|
41
|
+
transform: unset;
|
|
42
|
+
top: unset;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.video-share-btn {
|
|
47
|
+
position: absolute;
|
|
48
|
+
right: 20px;
|
|
49
|
+
bottom: 20px;
|
|
37
50
|
}
|
|
38
51
|
}
|
|
39
52
|
}
|
|
@@ -65,8 +65,6 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
65
65
|
return __assign.apply(this, arguments);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
var debug = require('debug')('worker:Layout1');
|
|
69
|
-
|
|
70
68
|
var Layout1 =
|
|
71
69
|
/** @class */
|
|
72
70
|
function (_super) {
|
|
@@ -86,7 +84,6 @@ function (_super) {
|
|
|
86
84
|
var _this = this;
|
|
87
85
|
|
|
88
86
|
var data = this.props.data;
|
|
89
|
-
console.log('data: ', data);
|
|
90
87
|
var hasPlaying = Object.keys(this.videoRefMap).find(function (key) {
|
|
91
88
|
return _this.videoRefMap[key].playing;
|
|
92
89
|
});
|
|
@@ -145,18 +142,19 @@ function (_super) {
|
|
|
145
142
|
alt: "",
|
|
146
143
|
src: _playCircle["default"]
|
|
147
144
|
})), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
145
|
+
align: data.customize.align,
|
|
148
146
|
data: group,
|
|
149
147
|
noShare: true,
|
|
150
148
|
padding: 48
|
|
149
|
+
}), data.share.open && !hasPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
150
|
+
data: __assign({
|
|
151
|
+
url: (0, _commonUtil.addUrlQuery)(window.location.href, {
|
|
152
|
+
scroll: 'node-' + data.id
|
|
153
|
+
})
|
|
154
|
+
}, data.share),
|
|
155
|
+
pc: true
|
|
151
156
|
}));
|
|
152
|
-
}))
|
|
153
|
-
data: __assign({
|
|
154
|
-
url: (0, _commonUtil.addUrlQuery)(window.location.href, {
|
|
155
|
-
scroll: 'node-' + data.id
|
|
156
|
-
})
|
|
157
|
-
}, data.share),
|
|
158
|
-
pc: true
|
|
159
|
-
}));
|
|
157
|
+
})));
|
|
160
158
|
};
|
|
161
159
|
|
|
162
160
|
Layout1.defaultProps = {};
|
|
@@ -85,15 +85,16 @@ function (_super) {
|
|
|
85
85
|
Layout2.prototype.render = function () {
|
|
86
86
|
var _this = this;
|
|
87
87
|
|
|
88
|
-
var _a;
|
|
89
|
-
|
|
90
88
|
var data = this.props.data;
|
|
91
|
-
console.log('data: ', data);
|
|
92
89
|
var hasPlaying = Object.keys(this.videoRefMap).find(function (key) {
|
|
93
90
|
return _this.videoRefMap[key].playing;
|
|
94
91
|
});
|
|
95
92
|
var firstGroup = data.groupSource[0] || null;
|
|
96
|
-
var isFirstGroupPlaying =
|
|
93
|
+
var isFirstGroupPlaying = (0, _commonUtil.ensure)(function () {
|
|
94
|
+
var _a;
|
|
95
|
+
|
|
96
|
+
return !!((_a = _this.videoRefMap[firstGroup.id]) === null || _a === void 0 ? void 0 : _a.playing);
|
|
97
|
+
}, false);
|
|
97
98
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
99
|
className: "video-pc-layout2-wrap",
|
|
99
100
|
style: {
|
|
@@ -139,6 +140,7 @@ function (_super) {
|
|
|
139
140
|
alt: "",
|
|
140
141
|
src: _playCircle["default"]
|
|
141
142
|
})), !isFirstGroupPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
143
|
+
align: data.customize.align,
|
|
142
144
|
data: firstGroup,
|
|
143
145
|
noShare: true,
|
|
144
146
|
padding: 32
|
|
@@ -194,6 +196,7 @@ function (_super) {
|
|
|
194
196
|
alt: "",
|
|
195
197
|
src: _playCircle["default"]
|
|
196
198
|
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
199
|
+
align: data.customize.align,
|
|
197
200
|
data: group,
|
|
198
201
|
noShare: true,
|
|
199
202
|
padding: 32
|
|
@@ -151,6 +151,7 @@ function (_super) {
|
|
|
151
151
|
alt: "",
|
|
152
152
|
src: _playCircle["default"]
|
|
153
153
|
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
154
|
+
align: data.customize.align,
|
|
154
155
|
data: group,
|
|
155
156
|
noShare: true,
|
|
156
157
|
padding: 20
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
10
12
|
var _common = require("../../../../../../common");
|
|
11
13
|
|
|
12
14
|
var _playCircle = _interopRequireDefault(require("../../imgs/play-circle.png"));
|
|
@@ -137,8 +139,11 @@ function (_super) {
|
|
|
137
139
|
source: group.video.sourceUrl
|
|
138
140
|
}),
|
|
139
141
|
videoId: group.id
|
|
140
|
-
}), !isPlaying &&
|
|
141
|
-
className: "play-btn
|
|
142
|
+
}), !isPlaying && /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: (0, _classnames["default"])('play-btn', {
|
|
144
|
+
middle: group.video.playButton == 'Middle',
|
|
145
|
+
bottomLeft: group.video.playButton == 'Bottom Left'
|
|
146
|
+
})
|
|
142
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
143
148
|
alt: "",
|
|
144
149
|
src: _playCircle["default"]
|
|
@@ -153,7 +158,9 @@ function (_super) {
|
|
|
153
158
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
159
|
className: "video-tag-wrap"
|
|
155
160
|
}, /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
161
|
+
align: data.customize.align,
|
|
156
162
|
data: group,
|
|
163
|
+
layout: 'pc-' + data.customize.layout.pcLayout,
|
|
157
164
|
noShare: true,
|
|
158
165
|
position: "relative"
|
|
159
166
|
})));
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
|
|
5
|
-
.video-container-wrap{
|
|
5
|
+
.video-container-wrap {
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
padding: 0px 40px;
|
|
9
9
|
margin-bottom: 40px;
|
|
10
10
|
|
|
11
|
-
&:last-child{
|
|
11
|
+
&:last-child {
|
|
12
12
|
margin-bottom: 0;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
position: relative;
|
|
19
19
|
width: 440px;
|
|
20
20
|
|
|
21
|
-
&:last-child{
|
|
21
|
+
&:last-child {
|
|
22
22
|
margin-bottom: 0;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -35,10 +35,17 @@
|
|
|
35
35
|
width: 100%;
|
|
36
36
|
height: 100%;
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
&.bottomLeft {
|
|
40
|
+
left: 16px;
|
|
41
|
+
bottom: 16px;
|
|
42
|
+
transform: unset;
|
|
43
|
+
top: unset;
|
|
44
|
+
}
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
|
|
41
|
-
.video-tag-wrap{
|
|
48
|
+
.video-tag-wrap {
|
|
42
49
|
padding: 40px;
|
|
43
50
|
flex: 1;
|
|
44
51
|
}
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
10
12
|
var _common = require("../../../../../../common");
|
|
11
13
|
|
|
12
14
|
var _playCircle = _interopRequireDefault(require("../../imgs/play-circle.png"));
|
|
@@ -137,8 +139,11 @@ function (_super) {
|
|
|
137
139
|
source: group.video.sourceUrl
|
|
138
140
|
}),
|
|
139
141
|
videoId: group.id
|
|
140
|
-
}), !isPlaying &&
|
|
141
|
-
className: "play-btn
|
|
142
|
+
}), !isPlaying && /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: (0, _classnames["default"])('play-btn', {
|
|
144
|
+
middle: group.video.playButton == 'Middle',
|
|
145
|
+
bottomLeft: group.video.playButton == 'Bottom Left'
|
|
146
|
+
})
|
|
142
147
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
143
148
|
alt: "",
|
|
144
149
|
src: _playCircle["default"]
|
|
@@ -153,7 +158,9 @@ function (_super) {
|
|
|
153
158
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
159
|
className: "video-tag-wrap"
|
|
155
160
|
}, /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
161
|
+
align: data.customize.align,
|
|
156
162
|
data: group,
|
|
163
|
+
layout: 'pc-' + data.customize.layout.pcLayout,
|
|
157
164
|
noShare: true,
|
|
158
165
|
position: "relative"
|
|
159
166
|
})));
|
|
@@ -24,14 +24,21 @@
|
|
|
24
24
|
top: 50%;
|
|
25
25
|
left: 50%;
|
|
26
26
|
transform: translate(-50%, -50%);
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
27
|
+
width: 60px;
|
|
28
|
+
height: 60px;
|
|
29
29
|
z-index: 1;
|
|
30
30
|
|
|
31
31
|
img {
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: 100%;
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
&.bottomLeft {
|
|
37
|
+
left: 16px;
|
|
38
|
+
bottom: 16px;
|
|
39
|
+
transform: unset;
|
|
40
|
+
top: unset;
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
43
|
}
|
|
37
44
|
|
|
@@ -17,6 +17,8 @@ var _Layout4 = _interopRequireDefault(require("./Layout4"));
|
|
|
17
17
|
|
|
18
18
|
var _Layout5 = _interopRequireDefault(require("./Layout5"));
|
|
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 }; }
|
|
@@ -97,6 +99,13 @@ function (_super) {
|
|
|
97
99
|
return __assign({}, wrapStyle);
|
|
98
100
|
};
|
|
99
101
|
|
|
102
|
+
_this.keyDoFunc = function (data) {
|
|
103
|
+
data.groupSource.forEach(function (group) {
|
|
104
|
+
Reflect.deleteProperty(group, 'text');
|
|
105
|
+
Reflect.deleteProperty(group, 'title');
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
|
|
100
109
|
return _this;
|
|
101
110
|
}
|
|
102
111
|
|
|
@@ -105,19 +114,19 @@ function (_super) {
|
|
|
105
114
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
115
|
className: "m-video-mobile"
|
|
107
116
|
}, data.customize.layout.pcLayout == 'layout1' && /*#__PURE__*/_react["default"].createElement(_Layout["default"], {
|
|
108
|
-
key:
|
|
117
|
+
key: (0, _commonUtil.covertKey)(data, this.keyDoFunc),
|
|
109
118
|
data: data
|
|
110
119
|
}), data.customize.layout.pcLayout == 'layout2' && /*#__PURE__*/_react["default"].createElement(_Layout2["default"], {
|
|
111
|
-
key:
|
|
120
|
+
key: (0, _commonUtil.covertKey)(data, this.keyDoFunc),
|
|
112
121
|
data: data
|
|
113
122
|
}), data.customize.layout.pcLayout == 'layout3' && /*#__PURE__*/_react["default"].createElement(_Layout3["default"], {
|
|
114
|
-
key:
|
|
123
|
+
key: (0, _commonUtil.covertKey)(data, this.keyDoFunc),
|
|
115
124
|
data: data
|
|
116
125
|
}), data.customize.layout.pcLayout == 'layout4' && /*#__PURE__*/_react["default"].createElement(_Layout4["default"], {
|
|
117
|
-
key:
|
|
126
|
+
key: (0, _commonUtil.covertKey)(data, this.keyDoFunc),
|
|
118
127
|
data: data
|
|
119
128
|
}), data.customize.layout.pcLayout == 'layout5' && /*#__PURE__*/_react["default"].createElement(_Layout5["default"], {
|
|
120
|
-
key:
|
|
129
|
+
key: (0, _commonUtil.covertKey)(data, this.keyDoFunc),
|
|
121
130
|
data: data
|
|
122
131
|
}));
|
|
123
132
|
};
|
|
@@ -186,16 +186,17 @@ function (_super) {
|
|
|
186
186
|
});
|
|
187
187
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
188
188
|
className: "product-name-wrap"
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: "box"
|
|
189
191
|
}, prodLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
190
192
|
labels: prodLabels,
|
|
191
193
|
small: true
|
|
192
194
|
}), showProName && panelProps.productName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
193
|
-
className: "product-name",
|
|
194
195
|
data: __assign(__assign({}, panelProps.productName), {
|
|
195
196
|
text: data.offerName
|
|
196
197
|
}),
|
|
197
198
|
readonly: true
|
|
198
|
-
})), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
199
|
+
}))), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
199
200
|
className: "price",
|
|
200
201
|
data: __assign(__assign({}, panelProps.activityPrice), {
|
|
201
202
|
text: _price
|
|
@@ -34,18 +34,13 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.product-name-wrap {
|
|
37
|
-
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-overflow: ellipsis;
|
|
38
39
|
display: -webkit-box;
|
|
39
|
-
-webkit-line-clamp: 2;
|
|
40
40
|
-webkit-box-orient: vertical;
|
|
41
|
-
|
|
42
|
-
clear: both;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.product-name {
|
|
41
|
+
-webkit-line-clamp: 2;
|
|
46
42
|
line-height: 18px;
|
|
47
|
-
|
|
48
|
-
white-space: normal;
|
|
43
|
+
max-height: 40px;
|
|
49
44
|
}
|
|
50
45
|
|
|
51
46
|
.price {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
min-width: 130px;
|
|
10
|
-
margin-right:
|
|
10
|
+
margin-right: 44px;
|
|
11
11
|
|
|
12
12
|
&:hover {
|
|
13
13
|
@keyframes show-active{
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
.menu-drop {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
|
+
flex-shrink: 0;
|
|
42
43
|
&> img {
|
|
43
44
|
width: 16px;
|
|
44
45
|
margin-right: 10px;
|
|
@@ -91,11 +92,12 @@
|
|
|
91
92
|
.category-group {
|
|
92
93
|
display: flex;
|
|
93
94
|
overflow-x: auto;
|
|
94
|
-
|
|
95
|
+
flex: 1;
|
|
95
96
|
scroll-snap-type: x;
|
|
96
97
|
.one-category {
|
|
97
98
|
margin-right: 44px;
|
|
98
99
|
scroll-snap-align: end;
|
|
100
|
+
width: fit-content !important;
|
|
99
101
|
cursor: pointer;
|
|
100
102
|
&:last-of-type {
|
|
101
103
|
margin-right: 0;
|
|
@@ -283,7 +283,7 @@ function (_super) {
|
|
|
283
283
|
};
|
|
284
284
|
|
|
285
285
|
_this.initTab = function (index, hideTabs) {
|
|
286
|
-
var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
|
|
286
|
+
var selectedTabDom = document.querySelector(".recommend_" + _this.props.panelProps.id + " .tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
|
|
287
287
|
var tabLeft = 0;
|
|
288
288
|
var tabWidth = 0;
|
|
289
289
|
|
|
@@ -589,7 +589,7 @@ function (_super) {
|
|
|
589
589
|
if (layout === 'layout1' && contentWidth) imgHeight = (contentWidth - 12) / 2;
|
|
590
590
|
if (layout === 'layout3' && contentWidth) imgHeight = (contentWidth - 12 * 2) / 3;
|
|
591
591
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
592
|
-
className: "m-recommend-mobile"
|
|
592
|
+
className: "m-recommend-mobile recommend_" + panelProps.id
|
|
593
593
|
}, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
|
|
594
594
|
className: "tab-select-wrap"
|
|
595
595
|
}, groupSource.map(function (tab, index) {
|
|
@@ -278,12 +278,14 @@ function (_super) {
|
|
|
278
278
|
type: "icon-ChatDots"
|
|
279
279
|
}), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
|
|
280
280
|
className: "num"
|
|
281
|
-
}, messageNum))), data.content && ((_j = data.content.logo) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement(
|
|
281
|
+
}, messageNum))), data.content && ((_j = data.content.logo) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
282
|
+
className: "logo"
|
|
283
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
282
284
|
data: data.content.logo,
|
|
283
285
|
style: {
|
|
284
286
|
height: 30
|
|
285
287
|
}
|
|
286
|
-
}));
|
|
288
|
+
})));
|
|
287
289
|
};
|
|
288
290
|
|
|
289
291
|
SearchMobile.defaultProps = {
|
package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js
CHANGED
|
@@ -215,7 +215,7 @@ function (_super) {
|
|
|
215
215
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
216
216
|
|
|
217
217
|
_this.state = {
|
|
218
|
-
intelligentType: '
|
|
218
|
+
intelligentType: 'Hot',
|
|
219
219
|
intelligentValue: [],
|
|
220
220
|
categoryData: [],
|
|
221
221
|
brandData: [],
|
|
@@ -255,7 +255,7 @@ function (_super) {
|
|
|
255
255
|
];
|
|
256
256
|
return [4
|
|
257
257
|
/*yield*/
|
|
258
|
-
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/offercatgs/list")];
|
|
258
|
+
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/offercatgs/list")];
|
|
259
259
|
|
|
260
260
|
case 1:
|
|
261
261
|
res = _a.sent();
|
|
@@ -275,7 +275,7 @@ function (_super) {
|
|
|
275
275
|
];
|
|
276
276
|
return [4
|
|
277
277
|
/*yield*/
|
|
278
|
-
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/brands/list")];
|
|
278
|
+
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/brands/list")];
|
|
279
279
|
|
|
280
280
|
case 3:
|
|
281
281
|
res = _a.sent();
|
|
@@ -295,7 +295,7 @@ function (_super) {
|
|
|
295
295
|
];
|
|
296
296
|
return [4
|
|
297
297
|
/*yield*/
|
|
298
|
-
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/labels/list")];
|
|
298
|
+
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/operation/v1/labels/list")];
|
|
299
299
|
|
|
300
300
|
case 5:
|
|
301
301
|
res = _a.sent();
|
|
@@ -356,8 +356,6 @@ function (_super) {
|
|
|
356
356
|
showSearch: true,
|
|
357
357
|
value: intelligentType
|
|
358
358
|
}, /*#__PURE__*/_react["default"].createElement(Option, {
|
|
359
|
-
value: "ALL"
|
|
360
|
-
}, (0, _locale.i18n)('ALL')), /*#__PURE__*/_react["default"].createElement(Option, {
|
|
361
359
|
value: "Hot"
|
|
362
360
|
}, (0, _locale.i18n)('HOT')), /*#__PURE__*/_react["default"].createElement(Option, {
|
|
363
361
|
value: "Like"
|
package/es/constants/index.js
CHANGED
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORAGE_KEY = exports.CREDIT_STATE = void 0;
|
|
7
7
|
var STORAGE_KEY = {
|
|
8
|
-
LOCALE: 'magicLocale'
|
|
8
|
+
LOCALE: 'magicLocale',
|
|
9
|
+
MAGIC_RENDER_HTML: 'MAGIC_RENDER_HTML',
|
|
10
|
+
MAGIC_RENDER_PAGEDATA: 'MAGIC_RENDER_PAGEDATA'
|
|
9
11
|
};
|
|
10
12
|
/** 授信状态 */
|
|
11
13
|
|
|
@@ -217,7 +217,7 @@ function (_super) {
|
|
|
217
217
|
};
|
|
218
218
|
|
|
219
219
|
_this.getSecondConfigName = function () {
|
|
220
|
-
var _a, _b, _c, _d, _e
|
|
220
|
+
var _a, _b, _c, _d, _e;
|
|
221
221
|
|
|
222
222
|
var selectedNode = _this.state.selectedNode;
|
|
223
223
|
|
|
@@ -228,6 +228,9 @@ function (_super) {
|
|
|
228
228
|
var panelProps = selectedNode.groupSource.find(function (src) {
|
|
229
229
|
return src.id === _this.state.clickedGroup;
|
|
230
230
|
});
|
|
231
|
+
var panelIndex = selectedNode.groupSource.findIndex(function (src) {
|
|
232
|
+
return src.id === _this.state.clickedGroup;
|
|
233
|
+
});
|
|
231
234
|
|
|
232
235
|
if (!panelProps) {
|
|
233
236
|
return;
|
|
@@ -249,14 +252,20 @@ function (_super) {
|
|
|
249
252
|
|
|
250
253
|
case 'MOBILE_NAVIGATION':
|
|
251
254
|
case 'PC_NAVIGATION':
|
|
252
|
-
groupName = (
|
|
255
|
+
groupName = (panelProps === null || panelProps === void 0 ? void 0 : panelProps.title.text) || (0, _locale.i18n)('NAVIGATION_NAME');
|
|
253
256
|
break;
|
|
254
257
|
|
|
255
258
|
case 'RECOMMEND':
|
|
256
259
|
groupName = panelProps.groupName.text;
|
|
260
|
+
break;
|
|
261
|
+
|
|
262
|
+
case 'VIDEO':
|
|
263
|
+
groupName = 'Video' + (panelIndex + 1);
|
|
264
|
+
break;
|
|
257
265
|
|
|
258
266
|
case 'TAG':
|
|
259
|
-
groupName =
|
|
267
|
+
groupName = panelProps.button.text;
|
|
268
|
+
break;
|
|
260
269
|
}
|
|
261
270
|
|
|
262
271
|
return groupName || 'Group Name';
|