@fonixtree/magic-design 2.0.95 → 2.0.98

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 (193) hide show
  1. package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  2. package/es/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  3. package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  4. package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  5. package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  6. package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  7. package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  8. package/es/common/Collapse/index.js +10 -8
  9. package/es/common/FontStyles/index.less +3 -1
  10. package/es/common/LinkModal/MiniAppApi/const.js +637 -0
  11. package/es/common/LinkModal/MiniAppApi/index.js +61 -0
  12. package/es/common/LinkModal/index.js +6 -0
  13. package/es/common/MonpayCountDown/index.js +160 -0
  14. package/es/common/RatingText/index.js +105 -0
  15. package/es/common/RatingText/index.less +12 -0
  16. package/es/common/index.js +8 -0
  17. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  18. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  19. package/es/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  20. package/es/composite-comp/bol/components/Banner/pc/index.js +2 -1
  21. package/es/composite-comp/bol/components/Banner/pc/index.less +9 -3
  22. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  23. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  24. package/es/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  25. package/es/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  26. package/es/composite-comp/common/components/ProductItem/index.js +5 -11
  27. package/es/composite-comp/common/components/ProductItem/index.less +10 -0
  28. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  29. package/es/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  30. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  31. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  32. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  33. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  34. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  35. package/es/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  36. package/es/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  37. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  38. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  39. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  40. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  41. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  42. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  43. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  44. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  45. package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  46. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  47. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  48. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  49. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  50. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  51. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  52. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  53. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  54. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  55. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  56. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  57. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  58. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  59. package/es/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  60. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  61. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  62. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  63. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  64. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  65. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  66. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  67. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  68. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  69. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  70. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  71. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  72. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  73. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  74. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  75. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  76. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  77. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  78. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  79. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  80. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  81. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  82. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  83. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  84. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  85. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  86. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  87. package/es/constants/component-types.js +13 -3
  88. package/es/constants/index.js +10 -1
  89. package/es/constants/layout.js +43 -4
  90. package/es/core/Designer/ConfigPanel/index.js +1 -1
  91. package/es/core/Designer/index.js +5 -2
  92. package/es/locale/en/en.json +11 -0
  93. package/es/locale/es/es.json +11 -0
  94. package/es/locale/id/id.json +11 -0
  95. package/es/utils/businessUtil.js +12 -0
  96. package/es/utils/dateUtil.js +13 -0
  97. package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  98. package/lib/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  99. package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  100. package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  101. package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  102. package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  103. package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  104. package/lib/common/Collapse/index.js +10 -8
  105. package/lib/common/FontStyles/index.less +3 -1
  106. package/lib/common/LinkModal/MiniAppApi/const.js +637 -0
  107. package/lib/common/LinkModal/MiniAppApi/index.js +61 -0
  108. package/lib/common/LinkModal/index.js +6 -0
  109. package/lib/common/MonpayCountDown/index.js +160 -0
  110. package/lib/common/RatingText/index.js +105 -0
  111. package/lib/common/RatingText/index.less +12 -0
  112. package/lib/common/index.js +8 -0
  113. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  114. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  115. package/lib/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  116. package/lib/composite-comp/bol/components/Banner/pc/index.js +2 -1
  117. package/lib/composite-comp/bol/components/Banner/pc/index.less +9 -3
  118. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  119. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  120. package/lib/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  121. package/lib/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  122. package/lib/composite-comp/common/components/ProductItem/index.js +5 -11
  123. package/lib/composite-comp/common/components/ProductItem/index.less +10 -0
  124. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  125. package/lib/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  126. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  127. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  128. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  129. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  130. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  131. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  132. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  133. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  134. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  135. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  136. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  137. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  138. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  139. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  140. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  141. package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  142. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  143. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  144. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  145. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  146. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  147. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  148. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  149. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  150. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  151. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  152. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  153. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  154. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  155. package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  156. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  157. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  158. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  159. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  160. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  161. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  162. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  163. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  164. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  165. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  166. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  167. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  168. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  169. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  170. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  171. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  172. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  173. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  174. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  175. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  176. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  177. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  178. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  179. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  180. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  181. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  182. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  183. package/lib/constants/component-types.js +13 -3
  184. package/lib/constants/index.js +10 -1
  185. package/lib/constants/layout.js +43 -4
  186. package/lib/core/Designer/ConfigPanel/index.js +1 -1
  187. package/lib/core/Designer/index.js +5 -2
  188. package/lib/locale/en/en.json +11 -0
  189. package/lib/locale/es/es.json +11 -0
  190. package/lib/locale/id/id.json +11 -0
  191. package/lib/utils/businessUtil.js +12 -0
  192. package/lib/utils/dateUtil.js +13 -0
  193. package/package.json +1 -1
@@ -0,0 +1,150 @@
1
+ .monpay-flash-deal-pc {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 16px 16px 28px 16px;
5
+
6
+ .flash-deal-title {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+
11
+ .left {
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ .icon {
16
+ height: 18px;
17
+ margin-right: 10px;
18
+ }
19
+
20
+ .title {
21
+ font-family: 'Montserrat';
22
+ font-style: normal;
23
+ font-weight: 600;
24
+ font-size: 14px;
25
+ line-height: 18px;
26
+ color: #2C2C2C;
27
+ margin-right: 10px;
28
+ }
29
+
30
+ .sub-title {
31
+ font-family: 'Montserrat';
32
+ font-style: normal;
33
+ font-weight: 600;
34
+ font-size: 10px;
35
+ line-height: 18px;
36
+ color: #2C2C2C;
37
+ margin-right: 6px;
38
+ align-self: end;
39
+ }
40
+ }
41
+
42
+ .right {
43
+ display: flex;
44
+ align-items: center;
45
+
46
+ .text {
47
+ font-family: 'Montserrat';
48
+ font-style: normal;
49
+ font-weight: 600;
50
+ font-size: 12px;
51
+ line-height: 15px;
52
+ color: #0038A8;
53
+ margin-right: 5px;
54
+ }
55
+
56
+ .btn {
57
+ white-space: nowrap;
58
+ }
59
+ }
60
+ }
61
+
62
+ .flash-deal-time {
63
+ margin-top: 16px;
64
+ white-space: nowrap;
65
+ overflow-x: auto;
66
+
67
+ .item {
68
+ margin-right: 10px;
69
+ border: 1px solid #E4E4E4;
70
+ padding: 6px 12px;
71
+ border-radius: 8px;
72
+ display: inline-block;
73
+ width: auto;
74
+
75
+ .time {
76
+ font-weight: 600;
77
+ font-size: 12px;
78
+ color: #000;
79
+ }
80
+
81
+ .status {
82
+ font-size: 10px;
83
+ font-weight: 400;
84
+ color: #545454;
85
+ }
86
+ }
87
+
88
+ }
89
+
90
+ .flash-deal-content {
91
+ display: flex;
92
+ align-items: center;
93
+ flex-direction: row;
94
+
95
+ .arrow-icon {
96
+ display: block;
97
+ width: 36px;
98
+ height: 36px;
99
+ line-height: 42px;
100
+ text-align: center;
101
+ background: #FFFFFF;
102
+ box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
103
+ border-radius: 100px;
104
+ cursor: pointer;
105
+
106
+ &.left {
107
+ margin-right: 30px;
108
+ }
109
+
110
+ &.right {
111
+ margin-left: 30px;
112
+ }
113
+ }
114
+ }
115
+
116
+ .flash-deal-list {
117
+ margin-top: 16px;
118
+ overflow-x: auto;
119
+ overflow-y: hidden;
120
+ white-space: nowrap;
121
+ display: flex;
122
+ align-items: flex-start;
123
+ justify-content: flex-start;
124
+ position: relative;
125
+ flex: 1;
126
+
127
+ .loading-wrap {
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ padding: 30px;
132
+ position: absolute;
133
+ top: 0;
134
+ bottom: 0;
135
+ left: 0;
136
+ right: 0;
137
+ margin: auto;
138
+ }
139
+
140
+ // 秒杀特有样式
141
+ .m-product-item-wrap {
142
+ width: 142px;
143
+ margin-right: 24px;
144
+
145
+ .product-name {
146
+ height: 36px;
147
+ }
148
+ }
149
+ }
150
+ }
@@ -0,0 +1,385 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
11
+ var groupId = (0, _uuid.v4)();
12
+ var imageId = (0, _uuid.v4)();
13
+ var groupNameId = (0, _uuid.v4)();
14
+ return {
15
+ id: groupId,
16
+ parentId: parentId,
17
+ image: {
18
+ parentId: groupId,
19
+ id: imageId,
20
+ open: true,
21
+ type: 'IMAGE',
22
+ content: {
23
+ h5Name: '',
24
+ pcName: '',
25
+ h5ImgSrc: logo,
26
+ pcImgSrc: logo,
27
+ clickUrl: ''
28
+ },
29
+ hover: {
30
+ open: false,
31
+ backgroundType: 'enlarge',
32
+ magnification: 1.5,
33
+ pcImgHoverUrl: '',
34
+ h5ImgHoverUrl: ''
35
+ }
36
+ },
37
+ groupName: {
38
+ parentId: groupId,
39
+ id: groupNameId,
40
+ open: true,
41
+ type: 'TEXT',
42
+ specialContent: [],
43
+ text: text,
44
+ content: {
45
+ sizeType: 'Customize font styles',
46
+ fontFamily: 'Open Sans',
47
+ fontWeight: 400,
48
+ fontSize: 14,
49
+ color: '#8493AF'
50
+ },
51
+ underline: {
52
+ open: false,
53
+ textDecorationColor: '',
54
+ textDecorationStyle: 'solid'
55
+ },
56
+ vertical: {}
57
+ },
58
+ seeAll: {
59
+ parentId: groupId,
60
+ id: (0, _uuid.v4)(),
61
+ open: true,
62
+ type: 'BUTTON',
63
+ text: 'See All',
64
+ content: {
65
+ url: '',
66
+ backgroundColor: '#fff'
67
+ },
68
+ buttonText: {
69
+ sizeType: 'Customize font styles',
70
+ fontFamily: 'Open Sans',
71
+ fontWeight: 400,
72
+ fontSize: 12,
73
+ fontStyle: 'normal',
74
+ color: '#232F46'
75
+ },
76
+ buttonBorder: {
77
+ open: true,
78
+ borderColor: '',
79
+ borderRadius: 0
80
+ },
81
+ spacing: {
82
+ pc: {
83
+ paddingTop: 0,
84
+ paddingBottom: 0,
85
+ paddingLeft: 0,
86
+ paddingRight: 0
87
+ },
88
+ mobile: {
89
+ paddingTop: 0,
90
+ paddingBottom: 0,
91
+ paddingLeft: 0,
92
+ paddingRight: 0
93
+ }
94
+ },
95
+ buttonIcon: {
96
+ iconUrl: '/get/resource/platform/conf/20220923/picture/Frame24271573200432656932864.png',
97
+ layout: 'left'
98
+ },
99
+ hover: null
100
+ },
101
+ sourceType: 'select',
102
+ prodIds: '',
103
+ intelligentType: 'Hot',
104
+ intelligentValue: [],
105
+ maxProdNum: 10,
106
+ hover: {
107
+ open: false,
108
+ image: {
109
+ parentId: groupId,
110
+ id: imageId,
111
+ open: false,
112
+ type: 'IMAGE',
113
+ content: {
114
+ h5Name: '',
115
+ pcName: '',
116
+ h5ImgSrc: logo,
117
+ pcImgSrc: logo,
118
+ clickUrl: ''
119
+ },
120
+ hover: {
121
+ open: false,
122
+ backgroundType: 'enlarge',
123
+ magnification: 1.5,
124
+ pcImgHoverUrl: '',
125
+ h5ImgHoverUrl: ''
126
+ }
127
+ },
128
+ groupName: {
129
+ parentId: groupId,
130
+ id: groupNameId,
131
+ open: false,
132
+ type: 'TEXT',
133
+ specialContent: [],
134
+ text: text,
135
+ content: {
136
+ sizeType: 'Customize font styles',
137
+ fontFamily: 'Open Sans',
138
+ fontWeight: 600,
139
+ fontSize: 14,
140
+ color: '#CE1126'
141
+ },
142
+ underline: {
143
+ open: false,
144
+ textDecorationColor: '',
145
+ textDecorationStyle: 'solid'
146
+ },
147
+ vertical: {}
148
+ }
149
+ }
150
+ };
151
+ };
152
+
153
+ exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
154
+
155
+ var getDefaultJSON = function getDefaultJSON() {
156
+ var groupId = (0, _uuid.v4)();
157
+ return {
158
+ id: groupId,
159
+ type: 'MONPAY_RECOMMEND',
160
+ title: {
161
+ headerImage: {
162
+ id: (0, _uuid.v4)(),
163
+ open: true,
164
+ type: 'IMAGE',
165
+ content: {
166
+ h5Name: '',
167
+ pcName: '',
168
+ h5ImgSrc: '',
169
+ pcImgSrc: '',
170
+ clickUrl: ''
171
+ },
172
+ hover: {
173
+ open: false,
174
+ backgroundType: 'enlarge',
175
+ magnification: 1.5,
176
+ pcImgHoverUrl: '',
177
+ h5ImgHoverUrl: ''
178
+ }
179
+ }
180
+ },
181
+ groupSource: [recommendGroupSourceJSON(groupId, '', 'Tab1'), recommendGroupSourceJSON(groupId, '', 'Tab2')],
182
+ content: {
183
+ label: {
184
+ id: (0, _uuid.v4)(),
185
+ open: true,
186
+ type: 'BUTTON',
187
+ text: 'Button',
188
+ content: {
189
+ url: '',
190
+ backgroundColor: '#CE1126'
191
+ },
192
+ buttonText: {
193
+ sizeType: 'Customize font styles',
194
+ fontFamily: 'Open Sans',
195
+ fontWeight: 600,
196
+ fontSize: 8,
197
+ fontStyle: 'normal',
198
+ color: '#fff'
199
+ },
200
+ buttonBorder: {
201
+ open: true,
202
+ borderColor: '',
203
+ borderRadius: 0
204
+ },
205
+ spacing: {
206
+ pc: {
207
+ paddingTop: 0,
208
+ paddingBottom: 0,
209
+ paddingLeft: 5,
210
+ paddingRight: 5
211
+ },
212
+ mobile: {
213
+ paddingTop: 0,
214
+ paddingBottom: 0,
215
+ paddingLeft: 5,
216
+ paddingRight: 5
217
+ }
218
+ },
219
+ buttonIcon: {
220
+ iconUrl: '',
221
+ layout: 'right'
222
+ },
223
+ hover: null
224
+ },
225
+ productName: {
226
+ id: (0, _uuid.v4)(),
227
+ open: true,
228
+ type: 'TEXT',
229
+ specialContent: [],
230
+ text: '',
231
+ content: {
232
+ sizeType: 'Customize font styles',
233
+ fontFamily: 'Open Sans',
234
+ fontWeight: 700,
235
+ fontSize: 14,
236
+ color: '#232F46'
237
+ },
238
+ underline: {
239
+ open: false,
240
+ textDecorationColor: '',
241
+ textDecorationStyle: 'solid'
242
+ },
243
+ vertical: {
244
+ open: false,
245
+ lineHeight: 18
246
+ }
247
+ },
248
+ activityPrice: {
249
+ id: (0, _uuid.v4)(),
250
+ open: true,
251
+ type: 'TEXT',
252
+ specialContent: [],
253
+ text: '',
254
+ content: {
255
+ sizeType: 'Customize font styles',
256
+ fontFamily: 'Open Sans',
257
+ fontWeight: 700,
258
+ fontSize: 14,
259
+ color: '#CE1126'
260
+ },
261
+ underline: {
262
+ open: false,
263
+ textDecorationColor: '',
264
+ textDecorationStyle: 'solid'
265
+ },
266
+ vertical: {
267
+ open: false,
268
+ lineHeight: 18
269
+ }
270
+ },
271
+ salesPrice: {
272
+ id: (0, _uuid.v4)(),
273
+ open: true,
274
+ type: 'TEXT',
275
+ specialContent: [],
276
+ text: '',
277
+ content: {
278
+ sizeType: 'Customize font styles',
279
+ fontFamily: 'Open Sans',
280
+ fontWeight: 500,
281
+ fontSize: 10,
282
+ color: '#8493AF'
283
+ },
284
+ underline: {
285
+ open: false,
286
+ textDecorationColor: '',
287
+ textDecorationStyle: 'solid'
288
+ },
289
+ vertical: {
290
+ open: false,
291
+ lineHeight: 18
292
+ }
293
+ },
294
+ salesProgress: {
295
+ open: true
296
+ },
297
+ evaluationScore: {
298
+ id: (0, _uuid.v4)(),
299
+ open: true,
300
+ type: 'TEXT',
301
+ specialContent: [],
302
+ text: '',
303
+ content: {
304
+ sizeType: 'Customize font styles',
305
+ fontFamily: 'Open Sans',
306
+ fontWeight: 400,
307
+ fontSize: 10,
308
+ color: '#545454'
309
+ },
310
+ underline: {
311
+ open: false,
312
+ textDecorationColor: '',
313
+ textDecorationStyle: 'solid'
314
+ },
315
+ vertical: {
316
+ open: false,
317
+ lineHeight: 18
318
+ }
319
+ },
320
+ sold: {
321
+ id: (0, _uuid.v4)(),
322
+ open: true,
323
+ type: 'TEXT',
324
+ specialContent: [],
325
+ text: '',
326
+ content: {
327
+ sizeType: 'Customize font styles',
328
+ fontFamily: 'Open Sans',
329
+ fontWeight: 400,
330
+ fontSize: 10,
331
+ color: '#545454'
332
+ },
333
+ underline: {
334
+ open: false,
335
+ textDecorationColor: '',
336
+ textDecorationStyle: 'solid'
337
+ },
338
+ vertical: {
339
+ open: false,
340
+ lineHeight: 18
341
+ }
342
+ },
343
+ filter: {
344
+ open: false
345
+ }
346
+ },
347
+ spacing: {
348
+ pc: {
349
+ paddingTop: 0,
350
+ paddingBottom: 0,
351
+ paddingLeft: 0,
352
+ paddingRight: 0,
353
+ marginBottom: window.magicDesign.compSpacing * 1.5
354
+ },
355
+ mobile: {
356
+ paddingTop: 0,
357
+ paddingBottom: 0,
358
+ paddingLeft: 0,
359
+ paddingRight: 0,
360
+ marginBottom: window.magicDesign.compSpacing
361
+ }
362
+ },
363
+ customize: {
364
+ layout: {
365
+ pcLayout: 'layout1',
366
+ h5Layout: 'layout1'
367
+ },
368
+ align: 'left',
369
+ pcRowNum: 6,
370
+ pcMaxRowNum: 6,
371
+ pcMinRowNum: 5,
372
+ rowNum: 2,
373
+ mobileMaxRowNum: 3,
374
+ mobileMinRowNum: 2
375
+ },
376
+ background: {
377
+ opacity: 100,
378
+ color: '#fff',
379
+ image: '',
380
+ bgType: 'color'
381
+ }
382
+ };
383
+ };
384
+
385
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _mobile = _interopRequireDefault(require("./mobile"));
11
+
12
+ var _pc = _interopRequireDefault(require("./pc"));
13
+
14
+ var _defaultJSON = require("./defaultJSON");
15
+
16
+ var _coreUtil = require("../../../../utils/coreUtil");
17
+
18
+ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+
26
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+
54
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
55
+ var c = arguments.length,
56
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
57
+ d;
58
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
59
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
+ }
61
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62
+ };
63
+
64
+ var Recommend =
65
+ /** @class */
66
+ function (_super) {
67
+ __extends(Recommend, _super);
68
+
69
+ function Recommend() {
70
+ return _super !== null && _super.apply(this, arguments) || this;
71
+ }
72
+
73
+ Recommend.prototype.render = function () {
74
+ var nodeData = this.props.nodeData;
75
+ return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
76
+ panelProps: nodeData
77
+ }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
78
+ panelProps: nodeData
79
+ }));
80
+ };
81
+
82
+ Recommend.defaultProps = {};
83
+ Recommend.type = 'MONPAY_RECOMMEND';
84
+ Recommend.getDefaultJSON = _defaultJSON.getDefaultJSON;
85
+ Recommend = __decorate([_compositeDecorator["default"]], Recommend);
86
+ return Recommend;
87
+ }(_react.Component);
88
+
89
+ var _default = Recommend;
90
+ exports["default"] = _default;