@fonixtree/magic-design 0.1.57 → 0.1.59
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/assets/fonts/magic-box-iconfont.css +47 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +47 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +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/less/cylon-antd.less +17659 -23296
- package/es/assets/less/modal.less +1 -0
- package/es/assets/less/slider.less +49 -1
- package/es/common/ImagePicker/index.js +161 -64
- package/es/common/ImagePicker/index.less +103 -2
- package/es/common/LinkModal/AffiliateProductTable/index.js +347 -0
- package/es/common/LinkModal/SelectVideoModal/index.js +0 -2
- package/es/common/LinkModal/index.js +6 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Banner/pc/index.js +4 -3
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +44 -5
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +3 -3
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -41
- package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -1
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -1
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +3 -2
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +10 -8
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/es/composite-comp/dito/components/PcNavigation/index.js +0 -1
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
- package/es/constants/index.js +2 -1
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
- package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/es/core/Designer/AiImageGenerator/index.js +221 -0
- package/es/core/Designer/AiImageGenerator/index.less +79 -0
- package/es/core/Designer/ChatRobot/index.js +204 -0
- package/es/core/Designer/ChatRobot/index.less +74 -0
- package/es/core/Designer/index.js +13 -5
- package/es/core/Renderer/index.js +1 -1
- package/es/locale/en/en.json +3 -0
- package/es/locale/es/es.json +3 -0
- package/es/locale/id/id.json +3 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/es/meta-comp/config-panels/PlayIconConfig/index.less +4 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +3 -3
- package/es/mobx/Store.js +3 -0
- package/es/utils/businessUtil.js +12 -0
- package/es/utils/commonUtil.js +4 -3
- package/es/utils/coreUtil.js +2 -3
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +47 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +47 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +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/less/cylon-antd.less +17659 -23296
- package/lib/assets/less/modal.less +1 -0
- package/lib/assets/less/slider.less +49 -1
- package/lib/common/ImagePicker/index.js +161 -64
- package/lib/common/ImagePicker/index.less +103 -2
- package/lib/common/LinkModal/AffiliateProductTable/index.js +347 -0
- package/lib/common/LinkModal/SelectVideoModal/index.js +0 -2
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Banner/pc/index.js +4 -3
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +44 -5
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +3 -3
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -41
- package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +3 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +10 -8
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -1
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
- package/lib/constants/index.js +2 -1
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
- package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/lib/core/Designer/AiImageGenerator/index.js +221 -0
- package/lib/core/Designer/AiImageGenerator/index.less +79 -0
- package/lib/core/Designer/ChatRobot/index.js +204 -0
- package/lib/core/Designer/ChatRobot/index.less +74 -0
- package/lib/core/Designer/index.js +13 -5
- package/lib/core/Renderer/index.js +1 -1
- package/lib/locale/en/en.json +3 -0
- package/lib/locale/es/es.json +3 -0
- package/lib/locale/id/id.json +3 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/PlayIconConfig/index.less +4 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +3 -3
- package/lib/mobx/Store.js +3 -0
- package/lib/utils/businessUtil.js +12 -0
- package/lib/utils/commonUtil.js +4 -3
- package/lib/utils/coreUtil.js +2 -3
- package/package.json +2 -2
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
.video-layout1-wrap {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
5
|
-
.video-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
|
|
5
|
+
.video-item-wrap {
|
|
6
|
+
height: 212px;
|
|
7
|
+
position: relative;
|
|
8
|
+
margin-bottom: 10px;
|
|
9
|
+
|
|
10
|
+
&:last-child{
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.play-btn {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 50%;
|
|
17
|
+
left: 50%;
|
|
18
|
+
transform: translate(-50%, -50%);
|
|
19
|
+
width: 60px;
|
|
20
|
+
height: 60px;
|
|
21
|
+
z-index: 1;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
|
|
24
|
+
img {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -192,7 +192,7 @@ function (_super) {
|
|
|
192
192
|
alt: "",
|
|
193
193
|
src: _playCircle["default"]
|
|
194
194
|
})), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
195
|
-
|
|
195
|
+
customize: data.customize,
|
|
196
196
|
data: group,
|
|
197
197
|
GAData: __assign(__assign({}, GAData), {
|
|
198
198
|
groupId: group.id,
|
|
@@ -2,41 +2,48 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
position: relative;
|
|
5
|
-
padding-bottom:
|
|
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
|
-
|
|
5
|
+
padding-bottom: 36px;
|
|
6
|
+
|
|
7
|
+
.slider-wrap {
|
|
8
|
+
width: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
.slider-list-wrap {
|
|
12
|
+
display: flex;
|
|
13
|
+
transform: translateX(-100%);
|
|
14
|
+
transition: all .3s linear;
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
&.noAnimation {
|
|
18
|
+
animation: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.video-item-wrap {
|
|
23
|
+
height: 212px;
|
|
24
|
+
position: relative;
|
|
25
|
+
width: 100%;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
|
|
28
|
+
&:last-child {
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.play-btn {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 50%;
|
|
35
|
+
left: 50%;
|
|
36
|
+
transform: translate(-50%, -50%);
|
|
37
|
+
width: 60px;
|
|
38
|
+
height: 60px;
|
|
39
|
+
z-index: 1;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
|
|
42
|
+
img {
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -167,7 +167,7 @@ function (_super) {
|
|
|
167
167
|
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
168
168
|
data: data.share
|
|
169
169
|
})), /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
170
|
-
|
|
170
|
+
customize: data.customize,
|
|
171
171
|
data: group,
|
|
172
172
|
GAData: __assign(__assign({}, GAData), {
|
|
173
173
|
groupId: group.id,
|
|
@@ -175,6 +175,7 @@ function (_super) {
|
|
|
175
175
|
}),
|
|
176
176
|
layout: 'h5-' + data.customize.layout.h5Layout,
|
|
177
177
|
noShare: true,
|
|
178
|
+
notVertical: true,
|
|
178
179
|
onPlayClick: function onPlayClick() {
|
|
179
180
|
return _this.playOrPause(group);
|
|
180
181
|
},
|
|
@@ -1,44 +1,57 @@
|
|
|
1
1
|
.video-layout3-wrap {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
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
|
-
|
|
4
|
+
.video-tag-container {
|
|
5
|
+
padding-top: 20px;
|
|
6
|
+
padding-bottom: 38px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.video-layout3-item-con {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
margin-bottom: 10px;
|
|
13
|
+
|
|
14
|
+
&:last-child {
|
|
15
|
+
margin-bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.video-item-wrap {
|
|
20
|
+
height: 212px;
|
|
21
|
+
position: relative;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
&:last-child {
|
|
25
|
+
margin-bottom: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.play-btn {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 50%;
|
|
31
|
+
left: 50%;
|
|
32
|
+
transform: translate(-50%, -50%);
|
|
33
|
+
width: 60px;
|
|
34
|
+
height: 60px;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
|
|
38
|
+
img {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.bottomLeft {
|
|
44
|
+
left: 12px;
|
|
45
|
+
bottom: 10px;
|
|
46
|
+
transform: unset;
|
|
47
|
+
top: unset;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.video-share-btn {
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: 12px;
|
|
54
|
+
bottom: 12px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -43,60 +43,19 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
43
43
|
};
|
|
44
44
|
}();
|
|
45
45
|
|
|
46
|
-
var
|
|
47
|
-
__assign = Object.assign || function (t) {
|
|
48
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
49
|
-
s = arguments[i];
|
|
50
|
-
|
|
51
|
-
for (var p in s) {
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return __assign.apply(this, arguments);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var BannerMobile =
|
|
46
|
+
var VideoMobile =
|
|
63
47
|
/** @class */
|
|
64
48
|
function (_super) {
|
|
65
|
-
__extends(
|
|
49
|
+
__extends(VideoMobile, _super);
|
|
66
50
|
|
|
67
|
-
function
|
|
51
|
+
function VideoMobile() {
|
|
68
52
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
69
53
|
|
|
70
|
-
_this.state = {};
|
|
71
|
-
|
|
72
|
-
_this.getBackgroundStyle = function (item) {
|
|
73
|
-
// const { data: { spacing } } = this.props;
|
|
74
|
-
// const { spacing, background } = data;
|
|
75
|
-
// const { device } = window.magicDesign;
|
|
76
|
-
var wrapStyle = {}; // 边距
|
|
77
|
-
// if (spacing && spacing[device]) {
|
|
78
|
-
// wrapStyle = { ...wrapStyle, ...spacing[device] };
|
|
79
|
-
// }
|
|
80
|
-
// 背景
|
|
81
|
-
|
|
82
|
-
if (item.background) {
|
|
83
|
-
if (item.background.bgType === 'color') {
|
|
84
|
-
wrapStyle.backgroundColor = item.background.color;
|
|
85
|
-
wrapStyle.opacity = item.background.opacity ? item.background.opacity : 1;
|
|
86
|
-
} else {
|
|
87
|
-
wrapStyle.backgroundImage = "url(" + item.background.image + ")";
|
|
88
|
-
wrapStyle.backgroundPosition = 'center';
|
|
89
|
-
wrapStyle.backgroundSize = 'cover';
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return __assign({}, wrapStyle);
|
|
94
|
-
};
|
|
95
|
-
|
|
54
|
+
_this.state = {};
|
|
96
55
|
return _this;
|
|
97
56
|
}
|
|
98
57
|
|
|
99
|
-
|
|
58
|
+
VideoMobile.prototype.render = function () {
|
|
100
59
|
var data = this.props.data;
|
|
101
60
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
61
|
className: "m-video-mobile"
|
|
@@ -112,9 +71,9 @@ function (_super) {
|
|
|
112
71
|
}));
|
|
113
72
|
};
|
|
114
73
|
|
|
115
|
-
|
|
116
|
-
return
|
|
74
|
+
VideoMobile.defaultProps = {};
|
|
75
|
+
return VideoMobile;
|
|
117
76
|
}(_react["default"].Component);
|
|
118
77
|
|
|
119
|
-
var _default =
|
|
78
|
+
var _default = VideoMobile;
|
|
120
79
|
exports["default"] = _default;
|
|
@@ -159,7 +159,7 @@ function (_super) {
|
|
|
159
159
|
alt: "",
|
|
160
160
|
src: _playCircle["default"]
|
|
161
161
|
})), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
162
|
-
|
|
162
|
+
customize: data.customize,
|
|
163
163
|
data: group,
|
|
164
164
|
GAData: __assign(__assign({}, GAData), {
|
|
165
165
|
groupId: group.id,
|
|
@@ -161,7 +161,7 @@ function (_super) {
|
|
|
161
161
|
alt: "",
|
|
162
162
|
src: _playCircle["default"]
|
|
163
163
|
})), !isFirstGroupPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
164
|
-
|
|
164
|
+
customize: data.customize,
|
|
165
165
|
data: firstGroup,
|
|
166
166
|
GAData: __assign(__assign({}, GAData), {
|
|
167
167
|
groupId: firstGroup.id,
|
|
@@ -214,7 +214,7 @@ function (_super) {
|
|
|
214
214
|
alt: "",
|
|
215
215
|
src: _playCircle["default"]
|
|
216
216
|
})), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
217
|
-
|
|
217
|
+
customize: data.customize,
|
|
218
218
|
data: group,
|
|
219
219
|
GAData: __assign(__assign({}, GAData), {
|
|
220
220
|
groupId: group.id,
|
|
@@ -168,7 +168,7 @@ function (_super) {
|
|
|
168
168
|
alt: "",
|
|
169
169
|
src: _playCircle["default"]
|
|
170
170
|
})), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
171
|
-
|
|
171
|
+
customize: data.customize,
|
|
172
172
|
data: group,
|
|
173
173
|
GAData: __assign(__assign({}, GAData), {
|
|
174
174
|
groupId: group.id,
|
|
@@ -175,7 +175,7 @@ function (_super) {
|
|
|
175
175
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
176
|
className: "video-tag-wrap"
|
|
177
177
|
}, /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
178
|
-
|
|
178
|
+
customize: data.customize,
|
|
179
179
|
data: group,
|
|
180
180
|
GAData: __assign(__assign({}, GAData), {
|
|
181
181
|
groupId: group.id,
|
|
@@ -186,7 +186,7 @@ function (_super) {
|
|
|
186
186
|
onPlayClick: function onPlayClick() {
|
|
187
187
|
return _this.playOrPause(group);
|
|
188
188
|
},
|
|
189
|
-
position: "
|
|
189
|
+
position: "absolute"
|
|
190
190
|
})));
|
|
191
191
|
}));
|
|
192
192
|
};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
.video-container-wrap {
|
|
6
6
|
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
7
|
padding: 0px 40px;
|
|
9
8
|
margin-bottom: 40px;
|
|
9
|
+
align-items: stretch;
|
|
10
10
|
|
|
11
11
|
&:last-child {
|
|
12
12
|
margin-bottom: 0;
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.video-tag-wrap {
|
|
50
|
-
padding:
|
|
50
|
+
padding: 0 20px;
|
|
51
|
+
position: relative;
|
|
51
52
|
flex: 1;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -175,7 +175,7 @@ function (_super) {
|
|
|
175
175
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
176
|
className: "video-tag-wrap"
|
|
177
177
|
}, /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
178
|
-
|
|
178
|
+
customize: data.customize,
|
|
179
179
|
data: group,
|
|
180
180
|
GAData: __assign(__assign({}, GAData), {
|
|
181
181
|
groupId: group.id,
|
|
@@ -186,7 +186,7 @@ function (_super) {
|
|
|
186
186
|
onPlayClick: function onPlayClick() {
|
|
187
187
|
return _this.playOrPause(group);
|
|
188
188
|
},
|
|
189
|
-
position: "
|
|
189
|
+
position: "absolute"
|
|
190
190
|
})));
|
|
191
191
|
}));
|
|
192
192
|
};
|
|
@@ -5,20 +5,21 @@
|
|
|
5
5
|
.video-container-wrap {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: row-reverse;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
padding: 0 40px;
|
|
9
|
+
margin-bottom: 40px;
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
|
|
12
|
+
&:last-child {
|
|
13
|
+
margin-bottom: 0;
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
.video-item-wrap {
|
|
13
18
|
height: 212px;
|
|
14
19
|
position: relative;
|
|
15
|
-
margin-bottom: 10px;
|
|
20
|
+
// margin-bottom: 10px;
|
|
16
21
|
width: 440px;
|
|
17
22
|
|
|
18
|
-
&:last-child {
|
|
19
|
-
margin-bottom: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
23
|
.play-btn {
|
|
23
24
|
position: absolute;
|
|
24
25
|
top: 50%;
|
|
@@ -44,7 +45,8 @@
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.video-tag-wrap {
|
|
47
|
-
padding:
|
|
48
|
+
padding: 0 20px;
|
|
49
|
+
position: relative;
|
|
48
50
|
flex: 1;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -318,7 +318,7 @@ function (_super) {
|
|
|
318
318
|
return _this.setState((_a = {}, _a["hover_" + item.id] = false, _a));
|
|
319
319
|
},
|
|
320
320
|
style: (0, _commonUtil.pxToRem)({
|
|
321
|
-
width: "calc((100% - " + MOBILE_IMG_SIZE[colNum].gap * (colNum - 1) + "
|
|
321
|
+
width: "calc((100% - " + (0, _commonUtil.convertToRem)(MOBILE_IMG_SIZE[colNum].gap * (colNum - 1)) + ") / " + colNum + ")"
|
|
322
322
|
})
|
|
323
323
|
}, item.image.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
324
324
|
className: "image",
|
|
@@ -1,27 +1,40 @@
|
|
|
1
|
-
.m-Wallet-mobile
|
|
2
|
-
|
|
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
|
-
|
|
1
|
+
.m-Wallet-mobile {
|
|
2
|
+
|
|
3
|
+
.headline {
|
|
4
|
+
margin-bottom: 7px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.content {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
|
|
11
|
+
&.column_3 {
|
|
12
|
+
.item-wrap {
|
|
13
|
+
.title {
|
|
14
|
+
top: 13%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.amount {
|
|
18
|
+
bottom: 13%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.item-wrap {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
position: relative;
|
|
28
|
+
border-radius: 10px;
|
|
29
|
+
|
|
30
|
+
.image {
|
|
31
|
+
border-radius: 10px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.text-content {
|
|
36
|
+
position: absolute;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -140,10 +140,12 @@ function (_super) {
|
|
|
140
140
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
141
141
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
142
142
|
data: data.customize,
|
|
143
|
+
defaultVertical: "bottom",
|
|
143
144
|
layoutSource: (0, _coreUtil.isPc)() ? _layout.videoPCLayout : _layout.videoH5Layout,
|
|
144
145
|
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
145
146
|
_this.getLayout(v);
|
|
146
|
-
}
|
|
147
|
+
},
|
|
148
|
+
showVertical: true
|
|
147
149
|
})
|
|
148
150
|
}, {
|
|
149
151
|
key: 'Background',
|
|
@@ -199,7 +199,8 @@ function (_super) {
|
|
|
199
199
|
isHideAlign = _a.isHideAlign,
|
|
200
200
|
layoutSource = _a.layoutSource,
|
|
201
201
|
selectedLayoutFun = _a.selectedLayoutFun,
|
|
202
|
-
showVertical = _a.showVertical
|
|
202
|
+
showVertical = _a.showVertical,
|
|
203
|
+
defaultVertical = _a.defaultVertical;
|
|
203
204
|
var showRowNum = this.state.showRowNum;
|
|
204
205
|
var layoutVal = data.layout;
|
|
205
206
|
|
|
@@ -246,7 +247,7 @@ function (_super) {
|
|
|
246
247
|
|
|
247
248
|
_this.selfRender();
|
|
248
249
|
},
|
|
249
|
-
value: (data === null || data === void 0 ? void 0 : data.vertical) ||
|
|
250
|
+
value: (data === null || data === void 0 ? void 0 : data.vertical) || defaultVertical
|
|
250
251
|
}))), _showRowNum && /*#__PURE__*/_react["default"].createElement("div", {
|
|
251
252
|
className: "selectWrap"
|
|
252
253
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
@@ -278,7 +279,8 @@ function (_super) {
|
|
|
278
279
|
isHideAlign: false,
|
|
279
280
|
layoutObj: null,
|
|
280
281
|
component: '',
|
|
281
|
-
showVertical: false
|
|
282
|
+
showVertical: false,
|
|
283
|
+
defaultVertical: 'top'
|
|
282
284
|
};
|
|
283
285
|
CustomizeConfig = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], CustomizeConfig);
|
|
284
286
|
return CustomizeConfig;
|