@fonixtree/magic-design 2.0.97 → 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 (187) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  3. package/es/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  4. package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  5. package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  6. package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  7. package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  8. package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  9. package/es/common/Collapse/index.js +10 -8
  10. package/es/common/FontStyles/index.less +3 -1
  11. package/es/common/MonpayCountDown/index.js +160 -0
  12. package/es/common/RatingText/index.js +105 -0
  13. package/es/common/RatingText/index.less +12 -0
  14. package/es/common/index.js +8 -0
  15. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  16. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  17. package/es/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  18. package/es/composite-comp/bol/components/Banner/pc/index.js +2 -1
  19. package/es/composite-comp/bol/components/Banner/pc/index.less +9 -3
  20. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  21. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  22. package/es/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  23. package/es/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  24. package/es/composite-comp/common/components/ProductItem/index.js +5 -11
  25. package/es/composite-comp/common/components/ProductItem/index.less +10 -0
  26. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  27. package/es/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  28. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  29. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  30. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  31. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  32. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  33. package/es/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  34. package/es/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  35. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  36. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  37. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  38. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  39. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  40. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  41. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  42. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  43. package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  44. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  45. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  46. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  47. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  48. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  49. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  50. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  51. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  52. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  53. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  54. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  55. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  56. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  57. package/es/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  58. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  59. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  60. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  61. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  62. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  63. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  64. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  65. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  66. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  67. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  68. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  69. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  70. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  71. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  72. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  73. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  74. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  75. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  76. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  77. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  78. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  79. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  80. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  81. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  82. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  83. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  84. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  85. package/es/constants/component-types.js +13 -3
  86. package/es/constants/index.js +8 -0
  87. package/es/constants/layout.js +43 -4
  88. package/es/core/Designer/ConfigPanel/index.js +1 -1
  89. package/es/core/Designer/index.js +5 -2
  90. package/es/locale/en/en.json +11 -0
  91. package/es/locale/es/es.json +11 -0
  92. package/es/locale/id/id.json +11 -0
  93. package/es/utils/dateUtil.js +13 -0
  94. package/lib/assets/fonts/.DS_Store +0 -0
  95. package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  96. package/lib/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  97. package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  98. package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  99. package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  100. package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  101. package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  102. package/lib/common/Collapse/index.js +10 -8
  103. package/lib/common/FontStyles/index.less +3 -1
  104. package/lib/common/MonpayCountDown/index.js +160 -0
  105. package/lib/common/RatingText/index.js +105 -0
  106. package/lib/common/RatingText/index.less +12 -0
  107. package/lib/common/index.js +8 -0
  108. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  109. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  110. package/lib/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  111. package/lib/composite-comp/bol/components/Banner/pc/index.js +2 -1
  112. package/lib/composite-comp/bol/components/Banner/pc/index.less +9 -3
  113. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  114. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  115. package/lib/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  116. package/lib/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  117. package/lib/composite-comp/common/components/ProductItem/index.js +5 -11
  118. package/lib/composite-comp/common/components/ProductItem/index.less +10 -0
  119. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  120. package/lib/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  121. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  122. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  123. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  124. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  125. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  126. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  127. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  128. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  129. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  130. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  131. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  132. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  133. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  134. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  135. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  136. package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  137. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  138. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  139. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  140. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  141. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  142. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  143. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  144. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  145. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  146. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  147. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  148. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  149. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +385 -0
  150. package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  151. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
  152. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
  153. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
  154. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +714 -0
  155. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  156. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
  157. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
  158. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
  159. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +763 -0
  160. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +124 -0
  161. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  162. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  163. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  164. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  165. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  166. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  167. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  168. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  169. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  170. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  171. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  172. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  173. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  174. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  175. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +431 -0
  176. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  177. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  178. package/lib/constants/component-types.js +13 -3
  179. package/lib/constants/index.js +8 -0
  180. package/lib/constants/layout.js +43 -4
  181. package/lib/core/Designer/ConfigPanel/index.js +1 -1
  182. package/lib/core/Designer/index.js +5 -2
  183. package/lib/locale/en/en.json +11 -0
  184. package/lib/locale/es/es.json +11 -0
  185. package/lib/locale/id/id.json +11 -0
  186. package/lib/utils/dateUtil.js +13 -0
  187. package/package.json +1 -1
@@ -59,6 +59,10 @@ var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/
59
59
 
60
60
  var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
61
61
 
62
+ var _MonpayRecommend = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayRecommend"));
63
+
64
+ var _MonpayFlashDeal = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayFlashDeal"));
65
+
62
66
  var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
63
67
 
64
68
  var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
@@ -113,6 +117,10 @@ var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/confi
113
117
 
114
118
  var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
115
119
 
120
+ var _MonpayRecommendConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayRecommendConfig"));
121
+
122
+ var _MonpayFlashDealConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayFlashDealConfig"));
123
+
116
124
  var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
117
125
 
118
126
  var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
@@ -151,6 +159,8 @@ var _OrdersSecondConfig = _interopRequireDefault(require("../composite-comp/dito
151
159
 
152
160
  var _CommonFunctionsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig"));
153
161
 
162
+ var _MonpayRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig"));
163
+
154
164
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
155
165
 
156
166
  var _a, _b, _c; // 组件
@@ -159,17 +169,17 @@ var _a, _b, _c; // 组件
159
169
  /**
160
170
  * 渲染组件索引
161
171
  */
162
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
172
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
163
173
  /**
164
174
  * 一级配置面板索引
165
175
  */
166
176
 
167
177
  exports.componentMap = componentMap;
168
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
178
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
169
179
  /**
170
180
  * 二级配置面板索引
171
181
  */
172
182
 
173
183
  exports.configPanelMap = configPanelMap;
174
- var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
184
+ var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MonpayRecommend["default"].type] = _MonpayRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_Orders["default"].type] = _OrdersSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
175
185
  exports.secondConfigPanelMap = secondConfigPanelMap;
@@ -146,6 +146,10 @@ var compInfoMap = {
146
146
  name: 'Flash Deal',
147
147
  icon: 'icon-flash-deal'
148
148
  },
149
+ MONPAY_FLASH_DEAL: {
150
+ name: 'Monpay Flash Deal',
151
+ icon: 'icon-flash-deal'
152
+ },
149
153
  GROUP_BUY: {
150
154
  name: 'Group Buy',
151
155
  icon: 'icon-group-buy'
@@ -178,6 +182,10 @@ var compInfoMap = {
178
182
  name: 'Affiliate Recommend',
179
183
  icon: 'icon-forms'
180
184
  },
185
+ MONPAY_RECOMMEND: {
186
+ name: 'Monpay Recommend',
187
+ icon: 'icon-forms'
188
+ },
181
189
  DIVIDER: {
182
190
  name: 'Divider',
183
191
  icon: 'icon-divider-1'
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
6
+ exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.monpayRecommendLayoutMobile = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
7
7
 
8
8
  var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
9
9
 
@@ -59,6 +59,14 @@ var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-
59
59
 
60
60
  var _layoutRecommend5 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-5.png"));
61
61
 
62
+ var _layoutRecommendMobile = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-1.png"));
63
+
64
+ var _layoutRecommendMobile2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-2.png"));
65
+
66
+ var _layoutRecommendMobile3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-3.png"));
67
+
68
+ var _layoutRecommendMobile4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-4.png"));
69
+
62
70
  var _layoutVideoH = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-1.png"));
63
71
 
64
72
  var _layoutVideoH2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-2.png"));
@@ -81,6 +89,10 @@ var _layoutNavigationTile = _interopRequireDefault(require("../assets/images/lay
81
89
 
82
90
  var _layoutNavigationNormal = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-normal.png"));
83
91
 
92
+ var _bannerSlideLayout = _interopRequireDefault(require("../assets/images/layout-icon/banner-slide-layout1.png"));
93
+
94
+ var _bannerSlideLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/banner-slide-layout2.png"));
95
+
84
96
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
85
97
 
86
98
  // import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
@@ -214,6 +226,24 @@ var recommendLayoutMobile = [{
214
226
  image: _layoutRecommend5["default"]
215
227
  }];
216
228
  exports.recommendLayoutMobile = recommendLayoutMobile;
229
+ var monpayRecommendLayoutMobile = [{
230
+ id: 'layout1',
231
+ name: 'layout1',
232
+ image: _layoutRecommendMobile["default"]
233
+ }, {
234
+ id: 'layout2',
235
+ name: 'layout2',
236
+ image: _layoutRecommendMobile2["default"]
237
+ }, {
238
+ id: 'layout3',
239
+ name: 'layout3',
240
+ image: _layoutRecommendMobile3["default"]
241
+ }, {
242
+ id: 'layout4',
243
+ name: 'layout4',
244
+ image: _layoutRecommendMobile4["default"]
245
+ }];
246
+ exports.monpayRecommendLayoutMobile = monpayRecommendLayoutMobile;
217
247
  var recommendLayoutPc = [{
218
248
  id: 'layout1',
219
249
  name: 'layout1',
@@ -236,8 +266,7 @@ var affiliateLayoutMobile = [{
236
266
  id: 'layout2',
237
267
  name: 'layout2',
238
268
  image: _layoutRecommend2["default"]
239
- }, // { id: 'layout3', name: 'layout3', image: recommendLayout3 },
240
- {
269
+ }, {
241
270
  id: 'layout4',
242
271
  name: 'layout4',
243
272
  image: _layoutRecommend4["default"]
@@ -312,4 +341,14 @@ var pcNavigationLayout = [{
312
341
  name: 'normal',
313
342
  image: _layoutNavigationNormal["default"]
314
343
  }];
315
- exports.pcNavigationLayout = pcNavigationLayout;
344
+ exports.pcNavigationLayout = pcNavigationLayout;
345
+ var bannerSlideLayout = [{
346
+ id: 'layout1',
347
+ name: 'layout1',
348
+ image: _bannerSlideLayout["default"]
349
+ }, {
350
+ id: 'layout2',
351
+ name: 'layout2',
352
+ image: _bannerSlideLayout2["default"]
353
+ }];
354
+ exports.bannerSlideLayout = bannerSlideLayout;
@@ -115,7 +115,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
115
115
 
116
116
  case 'RECOMMEND':
117
117
  case 'AFFILIATE_RECOMMEND':
118
- // console.log('RECOMMEND ---panelProps.groupName.text', panelProps.groupName.text);
118
+ case 'MONPAY_RECOMMEND':
119
119
  groupName = panelProps.groupName.text;
120
120
  break;
121
121
 
@@ -529,9 +529,12 @@ function (_super) {
529
529
 
530
530
  case _constants.quickMenuCode.SAVE:
531
531
  /** 如果保存则重置为mobile,同一移动端截图 #10504010 */
532
- _this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
532
+ _this.onSwitchDevice(_constants.deviceTypeMap.PHONE); // onSave(handleParams);
533
+
533
534
 
534
- onSave(handleParams);
535
+ onSave(__assign(__assign({}, handleParams), {
536
+ device: _constants.deviceTypeMap.PHONE
537
+ }));
535
538
  break;
536
539
 
537
540
  case _constants.quickMenuCode.MODE_PC:
@@ -1,4 +1,15 @@
1
1
  {
2
+ "HEADER_IMAGE": "Header Image",
3
+ "ACTIVITY_LABEL": "Activity Label",
4
+ "STOCK": "Stock",
5
+ "DISCOUNT_LABEL": "Discount Label",
6
+ "SESSION_TIME": "Session Time",
7
+ "NUMBER": "Number",
8
+ "COUNTDOWN": "Countdown",
9
+ "FILTER": "Filter",
10
+ "SOLD": "Sold",
11
+ "EVALUATION_SCORE": "Evaluation Score",
12
+ "SEARCH_BAR_KEYWORD": "Search Bar Keyword",
2
13
  "BOX_BACKGROUND": "Box Background",
3
14
  "BOX_COLOR": "Box Color",
4
15
  "PROGRESS_BAR_COLOR": "Progress Bar Color",
@@ -1,4 +1,15 @@
1
1
  {
2
+ "HEADER_IMAGE": "Header Image",
3
+ "ACTIVITY_LABEL": "Activity Label",
4
+ "STOCK": "Stock",
5
+ "DISCOUNT_LABEL": "Discount Label",
6
+ "SESSION_TIME": "Session Time",
7
+ "NUMBER": "Number",
8
+ "COUNTDOWN": "Countdown",
9
+ "FILTER": "Filter",
10
+ "SOLD": "Sold",
11
+ "EVALUATION_SCORE": "Evaluation Score",
12
+ "SEARCH_BAR_KEYWORD": "Search Bar Keyword",
2
13
  "BOX_BACKGROUND": "Box Background",
3
14
  "BOX_COLOR": "Box Color",
4
15
  "PROGRESS_BAR_COLOR": "Progress Bar Color",
@@ -1,4 +1,15 @@
1
1
  {
2
+ "HEADER_IMAGE": "Header Image",
3
+ "ACTIVITY_LABEL": "Activity Label",
4
+ "STOCK": "Stock",
5
+ "DISCOUNT_LABEL": "Discount Label",
6
+ "SESSION_TIME": "Session Time",
7
+ "NUMBER": "Number",
8
+ "COUNTDOWN": "Countdown",
9
+ "FILTER": "Filter",
10
+ "SOLD": "Sold",
11
+ "EVALUATION_SCORE": "Evaluation Score",
12
+ "SEARCH_BAR_KEYWORD": "Search Bar Keyword",
2
13
  "BOX_BACKGROUND": "Box Background",
3
14
  "BOX_COLOR": "Box Color",
4
15
  "PROGRESS_BAR_COLOR": "Progress Bar Color",
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.formatDateTime = exports.formatDateMinute = exports.formatDate = void 0;
7
7
  exports.formatDayMonth = formatDayMonth;
8
+ exports.formatDayMonthTime = formatDayMonthTime;
8
9
  exports.newDate = void 0;
9
10
 
10
11
  var _moment = _interopRequireDefault(require("moment"));
@@ -66,5 +67,17 @@ function formatDayMonth(date, fmt) {
66
67
  return '';
67
68
  }
68
69
 
70
+ return (0, _moment["default"])(newDate(date)).format(fmt);
71
+ }
72
+
73
+ function formatDayMonthTime(date, fmt) {
74
+ if (fmt === void 0) {
75
+ fmt = 'DD MMM HH:mm';
76
+ }
77
+
78
+ if (!date) {
79
+ return '';
80
+ }
81
+
69
82
  return (0, _moment["default"])(newDate(date)).format(fmt);
70
83
  }
Binary file
@@ -0,0 +1,6 @@
1
+ <svg width="96" height="72" viewBox="0 0 96 72" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1" y="1" width="94" height="70" rx="8" fill="#F5F6F7" stroke="#D2D9E5"/>
3
+ <circle cx="48" cy="36" r="6" fill="#C1C9D7"/>
4
+ <circle cx="28" cy="36" r="4" fill="#E6EAF0"/>
5
+ <circle cx="68" cy="36" r="4" fill="#E6EAF0"/>
6
+ </svg>
@@ -160,14 +160,16 @@ function (_super) {
160
160
 
161
161
  panelInfo.metaOption.open = checked;
162
162
 
163
- if (checked) {
164
- _this.setState({
165
- activeKey: [((_a = panelInfo.metaOption) === null || _a === void 0 ? void 0 : _a.id) || panelInfo.key]
166
- });
167
- } else {
168
- _this.setState({
169
- activeKey: []
170
- });
163
+ if (panelInfo.value) {
164
+ if (checked) {
165
+ _this.setState({
166
+ activeKey: [((_a = panelInfo.metaOption) === null || _a === void 0 ? void 0 : _a.id) || panelInfo.key]
167
+ });
168
+ } else {
169
+ _this.setState({
170
+ activeKey: []
171
+ });
172
+ }
171
173
  }
172
174
 
173
175
  _this.props.onRefresh();
@@ -1,6 +1,7 @@
1
1
  .m-font-styles {
2
2
  display: flex;
3
3
  align-items: center;
4
+ position: relative;
4
5
 
5
6
  .item {
6
7
  display: inline-block;
@@ -13,7 +14,7 @@
13
14
  margin-right: 12px;
14
15
  cursor: pointer;
15
16
  display: flex;
16
-
17
+
17
18
  &.active {
18
19
  background: #E9F0FF;
19
20
  }
@@ -40,6 +41,7 @@
40
41
  margin-right: 0;
41
42
  cursor: default;
42
43
  flex: 0 0 95px;
44
+
43
45
  .item-icon {
44
46
  display: inline-flex;
45
47
  align-items: center;
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _commonUtil = require("../../../../../utils/commonUtil");
13
+
14
+ require("./index.less");
15
+
16
+ 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); }
17
+
18
+ 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; }
19
+
20
+ var __extends = void 0 && (void 0).__extends || function () {
21
+ var _extendStatics = function extendStatics(d, b) {
22
+ _extendStatics = Object.setPrototypeOf || {
23
+ __proto__: []
24
+ } instanceof Array && function (d, b) {
25
+ d.__proto__ = b;
26
+ } || function (d, b) {
27
+ for (var p in b) {
28
+ if (b.hasOwnProperty(p)) d[p] = b[p];
29
+ }
30
+ };
31
+
32
+ return _extendStatics(d, b);
33
+ };
34
+
35
+ return function (d, b) {
36
+ _extendStatics(d, b);
37
+
38
+ function __() {
39
+ this.constructor = d;
40
+ }
41
+
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
+ };
44
+ }();
45
+
46
+ var debug = require('debug')('worker:count-down');
47
+
48
+ var CountDown =
49
+ /** @class */
50
+ function (_super) {
51
+ __extends(CountDown, _super);
52
+
53
+ function CountDown() {
54
+ var _this = _super !== null && _super.apply(this, arguments) || this;
55
+
56
+ _this.state = {
57
+ hour: '00',
58
+ min: '00',
59
+ second: '00',
60
+ nowTime: Number(_this.props.now),
61
+ now: _this.props.now
62
+ };
63
+ _this.timer = null;
64
+ _this.preTime = '';
65
+
66
+ _this.componentWillUnmount = function () {
67
+ _this.clearTimer();
68
+ };
69
+
70
+ _this.calcLastTime = function () {
71
+ try {
72
+ var _a = _this.props,
73
+ effDate = _a.effDate,
74
+ expDate = _a.expDate,
75
+ refresh = _a.refresh;
76
+ var nowTime = _this.state.nowTime;
77
+ var lastTime = 0;
78
+
79
+ if (nowTime > effDate && nowTime < expDate) {
80
+ lastTime = expDate - nowTime;
81
+ } else if (nowTime < effDate) {
82
+ lastTime = effDate - nowTime;
83
+ }
84
+
85
+ if (lastTime === 0) {
86
+ refresh();
87
+
88
+ _this.clearTimer();
89
+ }
90
+
91
+ var _b = (0, _commonUtil.calcLastTime)(lastTime).split(':'),
92
+ hour = _b[0],
93
+ min = _b[1],
94
+ second = _b[2];
95
+
96
+ _this.setState({
97
+ hour: hour,
98
+ min: min,
99
+ second: second,
100
+ nowTime: nowTime + 1000
101
+ });
102
+ } catch (error) {
103
+ debug(error);
104
+ }
105
+ };
106
+
107
+ _this.clearTimer = function () {
108
+ if (_this.timer) {
109
+ clearInterval(_this.timer);
110
+ _this.timer = null;
111
+ }
112
+ };
113
+
114
+ return _this;
115
+ }
116
+
117
+ CountDown.getDerivedStateFromProps = function (nextProps, prevState) {
118
+ // 检查是否需要更新sortType
119
+ if (nextProps.now !== prevState.now) {
120
+ return {
121
+ now: nextProps.now,
122
+ nowTime: nextProps.now
123
+ };
124
+ }
125
+
126
+ return null;
127
+ };
128
+
129
+ CountDown.prototype.componentDidUpdate = function () {
130
+ var now = this.state.now;
131
+
132
+ if (this.preTime != now) {
133
+ this.preTime = now;
134
+ this.clearTimer();
135
+ this.calcLastTime();
136
+ this.timer = setInterval(this.calcLastTime, 1000);
137
+ }
138
+ };
139
+
140
+ CountDown.prototype.render = function () {
141
+ var _a = this.state,
142
+ hour = _a.hour,
143
+ min = _a.min,
144
+ second = _a.second;
145
+ return /*#__PURE__*/_react["default"].createElement("div", {
146
+ className: "count-down-wrap"
147
+ }, /*#__PURE__*/_react["default"].createElement("span", null, hour), /*#__PURE__*/_react["default"].createElement("span", null, min), /*#__PURE__*/_react["default"].createElement("span", null, second));
148
+ };
149
+
150
+ CountDown.defaultProps = {
151
+ effDate: '',
152
+ expDate: '',
153
+ now: '',
154
+ refresh: function refresh() {}
155
+ };
156
+ return CountDown;
157
+ }(_react.Component);
158
+
159
+ var _default = CountDown;
160
+ exports["default"] = _default;
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ require("./index.less");
15
+
16
+ var _Iconfont = _interopRequireDefault(require("../Iconfont"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ 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; }
23
+
24
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
53
+ var t = {};
54
+
55
+ for (var p in s) {
56
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
57
+ }
58
+
59
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
60
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ };
64
+
65
+ var AComponent =
66
+ /** @class */
67
+ function (_super) {
68
+ __extends(AComponent, _super);
69
+
70
+ function AComponent() {
71
+ var _this = _super !== null && _super.apply(this, arguments) || this;
72
+
73
+ _this.state = {};
74
+ return _this;
75
+ }
76
+
77
+ AComponent.prototype.render = function () {
78
+ var _a = this.props,
79
+ _b = _a.text,
80
+ text = _b === void 0 ? 5 : _b,
81
+ rest = __rest(_a, ["text"]);
82
+
83
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
84
+ className: "ratingText"
85
+ }, rest), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
86
+ color: "#FF8650",
87
+ size: 12,
88
+ type: "icon-star"
89
+ }), /*#__PURE__*/_react["default"].createElement("span", {
90
+ className: "rate-text"
91
+ }, text));
92
+ };
93
+
94
+ return AComponent;
95
+ }(_react.Component);
96
+
97
+ AComponent.propTypes = {
98
+ /** text */
99
+ text: _propTypes["default"].string
100
+ };
101
+ AComponent.defaultProps = {
102
+ text: '4.0'
103
+ };
104
+ var _default = AComponent;
105
+ exports["default"] = _default;
@@ -0,0 +1,12 @@
1
+ .ratingText {
2
+ display: flex;
3
+ position: relative;
4
+ align-items: center;
5
+
6
+ .rate-text {
7
+ color: #545454;
8
+ font-size: 12px;
9
+ margin-left: 4px;
10
+ font-weight: 400;
11
+ }
12
+ }
@@ -111,6 +111,12 @@ Object.defineProperty(exports, "ProductSource", {
111
111
  return _ProductSource["default"];
112
112
  }
113
113
  });
114
+ Object.defineProperty(exports, "RatingText", {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _RatingText["default"];
118
+ }
119
+ });
114
120
  Object.defineProperty(exports, "Slider", {
115
121
  enumerable: true,
116
122
  get: function get() {
@@ -162,6 +168,8 @@ var _UrlPicker = _interopRequireDefault(require("./UrlPicker"));
162
168
 
163
169
  var _Iconfont = _interopRequireDefault(require("./Iconfont"));
164
170
 
171
+ var _RatingText = _interopRequireDefault(require("./RatingText"));
172
+
165
173
  var _Button = _interopRequireDefault(require("./Button"));
166
174
 
167
175
  var _AlignSelector = _interopRequireDefault(require("./AlignSelector"));