@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.
Files changed (171) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +47 -3
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +47 -3
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/less/cylon-antd.less +17659 -23296
  10. package/es/assets/less/modal.less +1 -0
  11. package/es/assets/less/slider.less +49 -1
  12. package/es/common/ImagePicker/index.js +161 -64
  13. package/es/common/ImagePicker/index.less +103 -2
  14. package/es/common/LinkModal/AffiliateProductTable/index.js +347 -0
  15. package/es/common/LinkModal/SelectVideoModal/index.js +0 -2
  16. package/es/common/LinkModal/index.js +6 -0
  17. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  18. package/es/composite-comp/bol/components/Banner/pc/index.js +4 -3
  19. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  20. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  21. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  22. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +44 -5
  23. package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +3 -3
  24. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -1
  25. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
  26. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -1
  27. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
  28. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
  29. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -41
  30. package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
  31. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  32. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -1
  33. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +2 -2
  34. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -1
  35. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -2
  36. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +3 -2
  37. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -2
  38. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +10 -8
  39. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  40. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  41. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
  42. package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
  43. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  44. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  45. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  46. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  47. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  48. package/es/composite-comp/dito/components/PcNavigation/index.js +0 -1
  49. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
  50. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  51. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
  52. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  53. package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
  54. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
  55. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
  56. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
  57. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
  58. package/es/constants/index.js +2 -1
  59. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  60. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  61. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  62. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  63. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  64. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  65. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  66. package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  67. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  68. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  69. package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  70. package/es/core/Designer/AiImageGenerator/index.js +221 -0
  71. package/es/core/Designer/AiImageGenerator/index.less +79 -0
  72. package/es/core/Designer/ChatRobot/index.js +204 -0
  73. package/es/core/Designer/ChatRobot/index.less +74 -0
  74. package/es/core/Designer/index.js +13 -5
  75. package/es/core/Renderer/index.js +1 -1
  76. package/es/locale/en/en.json +3 -0
  77. package/es/locale/es/es.json +3 -0
  78. package/es/locale/id/id.json +3 -0
  79. package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
  80. package/es/meta-comp/config-panels/PlayIconConfig/index.less +4 -0
  81. package/es/meta-comp/config-panels/TextConfig/index.js +3 -3
  82. package/es/mobx/Store.js +3 -0
  83. package/es/utils/businessUtil.js +12 -0
  84. package/es/utils/commonUtil.js +4 -3
  85. package/es/utils/coreUtil.js +2 -3
  86. package/lib/assets/fonts/.DS_Store +0 -0
  87. package/lib/assets/fonts/magic-box-iconfont.css +47 -3
  88. package/lib/assets/fonts/magic-box-iconfont.css.bak +47 -3
  89. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  90. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  91. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  92. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  93. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  94. package/lib/assets/less/cylon-antd.less +17659 -23296
  95. package/lib/assets/less/modal.less +1 -0
  96. package/lib/assets/less/slider.less +49 -1
  97. package/lib/common/ImagePicker/index.js +161 -64
  98. package/lib/common/ImagePicker/index.less +103 -2
  99. package/lib/common/LinkModal/AffiliateProductTable/index.js +347 -0
  100. package/lib/common/LinkModal/SelectVideoModal/index.js +0 -2
  101. package/lib/common/LinkModal/index.js +6 -0
  102. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  103. package/lib/composite-comp/bol/components/Banner/pc/index.js +4 -3
  104. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  105. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  106. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  107. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +44 -5
  108. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +3 -3
  109. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +1 -1
  110. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
  111. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +1 -1
  112. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
  113. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
  114. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -41
  115. package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
  116. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  117. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +1 -1
  118. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +2 -2
  119. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +1 -1
  120. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -2
  121. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +3 -2
  122. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -2
  123. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +10 -8
  124. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  125. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  126. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
  127. package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
  128. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  129. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  130. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  131. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  132. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  133. package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -1
  134. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
  135. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  136. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
  137. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  138. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
  139. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
  140. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
  141. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
  142. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
  143. package/lib/constants/index.js +2 -1
  144. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  145. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  146. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  147. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  148. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  149. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  150. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  151. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  152. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  153. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  154. package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  155. package/lib/core/Designer/AiImageGenerator/index.js +221 -0
  156. package/lib/core/Designer/AiImageGenerator/index.less +79 -0
  157. package/lib/core/Designer/ChatRobot/index.js +204 -0
  158. package/lib/core/Designer/ChatRobot/index.less +74 -0
  159. package/lib/core/Designer/index.js +13 -5
  160. package/lib/core/Renderer/index.js +1 -1
  161. package/lib/locale/en/en.json +3 -0
  162. package/lib/locale/es/es.json +3 -0
  163. package/lib/locale/id/id.json +3 -0
  164. package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
  165. package/lib/meta-comp/config-panels/PlayIconConfig/index.less +4 -0
  166. package/lib/meta-comp/config-panels/TextConfig/index.js +3 -3
  167. package/lib/mobx/Store.js +3 -0
  168. package/lib/utils/businessUtil.js +12 -0
  169. package/lib/utils/commonUtil.js +4 -3
  170. package/lib/utils/coreUtil.js +2 -3
  171. 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-layout1-wrap .video-item-wrap {
6
- height: 4.24rem;
7
- position: relative;
8
- margin-bottom: 0.2rem;
9
- }
10
- .video-layout1-wrap .video-item-wrap:last-child {
11
- margin-bottom: 0;
12
- }
13
- .video-layout1-wrap .video-item-wrap .play-btn {
14
- position: absolute;
15
- top: 50%;
16
- left: 50%;
17
- transform: translate(-50%, -50%);
18
- width: 1.2rem;
19
- height: 1.2rem;
20
- z-index: 1;
21
- cursor: pointer;
22
- }
23
- .video-layout1-wrap .video-item-wrap .play-btn img {
24
- width: 100%;
25
- height: 100%;
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
- align: data.customize.align,
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: 0.72rem;
6
- }
7
- .video-layout2-wrap .slider-wrap {
8
- width: 100%;
9
- overflow: hidden;
10
- }
11
- .video-layout2-wrap .slider-wrap .slider-list-wrap {
12
- display: flex;
13
- transform: translateX(-100%);
14
- transition: all 0.3s linear;
15
- position: relative;
16
- }
17
- .video-layout2-wrap .slider-wrap .slider-list-wrap.noAnimation {
18
- animation: none;
19
- }
20
- .video-layout2-wrap .slider-wrap .video-item-wrap {
21
- height: 4.24rem;
22
- position: relative;
23
- width: 100%;
24
- flex-shrink: 0;
25
- }
26
- .video-layout2-wrap .slider-wrap .video-item-wrap:last-child {
27
- margin-bottom: 0;
28
- }
29
- .video-layout2-wrap .slider-wrap .video-item-wrap .play-btn {
30
- position: absolute;
31
- top: 50%;
32
- left: 50%;
33
- transform: translate(-50%, -50%);
34
- width: 1.2rem;
35
- height: 1.2rem;
36
- z-index: 1;
37
- cursor: pointer;
38
- }
39
- .video-layout2-wrap .slider-wrap .video-item-wrap .play-btn img {
40
- width: 100%;
41
- height: 100%;
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
- align: data.customize.align,
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
- .video-layout3-wrap .video-layout3-item-con {
6
- display: flex;
7
- flex-direction: column;
8
- margin-bottom: 0.2rem;
9
- }
10
- .video-layout3-wrap .video-layout3-item-con:last-child {
11
- margin-bottom: 0;
12
- }
13
- .video-layout3-wrap .video-item-wrap {
14
- height: 4.24rem;
15
- position: relative;
16
- }
17
- .video-layout3-wrap .video-item-wrap:last-child {
18
- margin-bottom: 0;
19
- }
20
- .video-layout3-wrap .video-item-wrap .play-btn {
21
- position: absolute;
22
- top: 50%;
23
- left: 50%;
24
- transform: translate(-50%, -50%);
25
- width: 1.2rem;
26
- height: 1.2rem;
27
- z-index: 1;
28
- cursor: pointer;
29
- }
30
- .video-layout3-wrap .video-item-wrap .play-btn img {
31
- width: 100%;
32
- height: 100%;
33
- }
34
- .video-layout3-wrap .video-item-wrap .play-btn.bottomLeft {
35
- left: 0.24rem;
36
- bottom: 0.2rem;
37
- transform: unset;
38
- top: unset;
39
- }
40
- .video-layout3-wrap .video-item-wrap .video-share-btn {
41
- position: absolute;
42
- right: 0.24rem;
43
- bottom: 0.24rem;
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 __assign = void 0 && (void 0).__assign || function () {
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(BannerMobile, _super);
49
+ __extends(VideoMobile, _super);
66
50
 
67
- function BannerMobile() {
51
+ function VideoMobile() {
68
52
  var _this = _super !== null && _super.apply(this, arguments) || this;
69
53
 
70
- _this.state = {}; // padding用统一设置
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
- BannerMobile.prototype.render = function () {
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
- BannerMobile.defaultProps = {};
116
- return BannerMobile;
74
+ VideoMobile.defaultProps = {};
75
+ return VideoMobile;
117
76
  }(_react["default"].Component);
118
77
 
119
- var _default = BannerMobile;
78
+ var _default = VideoMobile;
120
79
  exports["default"] = _default;
@@ -1,3 +1,4 @@
1
1
  .m-video-mobile {
2
- position: relative;
3
- }
2
+ position: relative;
3
+
4
+ }
@@ -159,7 +159,7 @@ function (_super) {
159
159
  alt: "",
160
160
  src: _playCircle["default"]
161
161
  })), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
162
- align: data.customize.align,
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
- align: data.customize.align,
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
- align: data.customize.align,
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
- align: data.customize.align,
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
- align: data.customize.align,
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: "relative"
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: 40px;
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
- align: data.customize.align,
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: "relative"
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
- align-items: center;
9
- padding: 40px;
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: 40px;
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) + "px) / " + colNum + ")"
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 .headline {
2
- margin-bottom: 0.14rem;
3
- }
4
- .m-Wallet-mobile .content {
5
- display: flex;
6
- flex-wrap: wrap;
7
- }
8
- .m-Wallet-mobile .content.column_3 .item-wrap .title {
9
- top: 13%;
10
- }
11
- .m-Wallet-mobile .content.column_3 .item-wrap .amount {
12
- bottom: 13%;
13
- }
14
- .m-Wallet-mobile .content .item-wrap {
15
- display: flex;
16
- align-items: center;
17
- justify-content: center;
18
- position: relative;
19
- border-radius: 0.2rem;
20
- }
21
- .m-Wallet-mobile .content .item-wrap .image {
22
- border-radius: 0.2rem;
23
- overflow: hidden;
24
- }
25
- .m-Wallet-mobile .content .item-wrap .text-content {
26
- position: absolute;
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
+ }
@@ -76,8 +76,6 @@ function (_super) {
76
76
  _this.state = {};
77
77
 
78
78
  _this.onClickItem = function (node) {
79
- console.log('---group', node);
80
-
81
79
  _this.props.store.setState({
82
80
  clickedGroup: node.id
83
81
  });
@@ -89,7 +89,6 @@ function (_super) {
89
89
 
90
90
  var data = this.props.data;
91
91
  var textData = data.content;
92
- console.log('data', data);
93
92
  return /*#__PURE__*/_react["default"].createElement("div", {
94
93
  className: "m-text-config",
95
94
  style: {
@@ -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) || 'top'
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;
@@ -87,7 +87,6 @@ function (_super) {
87
87
  }, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
88
88
  checked: obj.fillUp,
89
89
  onChange: function onChange(e) {
90
- console.log('ddd fill up', e.target.checked);
91
90
  obj.fillUp = e.target.checked;
92
91
 
93
92
  _this.selfRender();