@fonixtree/magic-design 2.0.200 → 2.0.203

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 (399) hide show
  1. package/es/assets/fonts/AvenirNext-Bold.ttf +0 -0
  2. package/es/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
  3. package/es/assets/fonts/AvenirNext-Medium.ttf +0 -0
  4. package/es/assets/fonts/AvenirNext-Regular.ttf +0 -0
  5. package/es/assets/fonts/Montserrat-Bold.ttf +0 -0
  6. package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
  7. package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
  8. package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  9. package/es/assets/fonts/magic-box-iconfont.css +38 -6
  10. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  11. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  12. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  13. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  14. package/es/assets/images/base64/index.js +8 -2
  15. package/es/assets/images/layout-icon/banner-slide-layout3.png +0 -0
  16. package/es/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
  17. package/es/assets/images/layout-icon/news-layout1.png +0 -0
  18. package/es/assets/images/layout-icon/search-dito-layout1.png +0 -0
  19. package/es/assets/images/layout-icon/slide-image-layout1.png +0 -0
  20. package/es/assets/less/font.less +30 -0
  21. package/es/assets/less/global.less +5 -0
  22. package/es/common/ColorPickerInput/index.less +2 -0
  23. package/es/common/CountDown/index.js +29 -2
  24. package/es/common/CountDown/index.less +38 -5
  25. package/es/common/ErrorBoundary/index.js +90 -0
  26. package/es/common/FontStyles/index.less +1 -1
  27. package/es/common/LinkModal/ProductList/index.js +484 -0
  28. package/es/common/LinkModal/ProductList/index.less +130 -0
  29. package/es/common/LinkModal/index.js +8 -1
  30. package/es/common/ProductCardModal/imgs/dot-icon.png +0 -0
  31. package/es/common/ProductCardModal/index.js +255 -0
  32. package/es/common/ProductCardModal/index.less +131 -0
  33. package/es/common/Toast/index.js +30 -0
  34. package/es/common/Toast/index.less +29 -0
  35. package/es/common/UrlPicker/index.js +1 -1
  36. package/es/common/Video/index.js +5 -3
  37. package/es/common/VideoPC/background.png +0 -0
  38. package/es/common/VideoPC/closeImg.png +0 -0
  39. package/es/common/VideoPC/components/index.js +100 -0
  40. package/es/common/VideoPC/components/index.less +62 -0
  41. package/es/common/VideoPC/cover.png +0 -0
  42. package/es/common/VideoPC/index.js +750 -0
  43. package/es/common/VideoPC/index.less +79 -0
  44. package/es/common/index.js +32 -0
  45. package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
  46. package/es/composite-comp/common/components/ImageLabel/index.less +23 -7
  47. package/es/composite-comp/common/components/ProductItem/index.js +41 -24
  48. package/es/composite-comp/common/components/ProductItem/index.less +17 -15
  49. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +16 -12
  50. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
  51. package/es/composite-comp/dito/components/Bargain/defaultJSON.js +24 -0
  52. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
  53. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
  54. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
  55. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +49 -11
  56. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
  57. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +9 -1
  58. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
  59. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
  60. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
  61. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
  62. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +24 -0
  63. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +8 -5
  64. package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
  65. package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
  66. package/es/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
  67. package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
  68. package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
  69. package/es/composite-comp/dito/components/News/defaultJSON.js +172 -0
  70. package/{lib/composite-comp/dito/components/Orders → es/composite-comp/dito/components/News}/index.js +13 -13
  71. package/es/composite-comp/dito/components/News/pc/index.js +113 -0
  72. package/es/composite-comp/dito/components/News/pc/index.less +46 -0
  73. package/es/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
  74. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +75 -2
  75. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  76. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +159 -21
  77. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +108 -9
  78. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +55 -1
  79. package/es/composite-comp/dito/components/Recommend/mobile/imgs/card.png +0 -0
  80. package/es/composite-comp/dito/components/Recommend/mobile/index.js +177 -20
  81. package/es/composite-comp/dito/components/Recommend/mobile/index.less +24 -1
  82. package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +234 -0
  83. package/es/composite-comp/dito/components/SearchBanner/imgs/defaultImg.png +0 -0
  84. package/es/composite-comp/dito/components/SearchBanner/imgs/pcDefImg1.png +0 -0
  85. package/es/composite-comp/dito/components/SearchBanner/index.js +108 -0
  86. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +293 -0
  87. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +108 -0
  88. package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
  89. package/es/composite-comp/dito/components/SearchDITO/index.js +86 -0
  90. package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
  91. package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
  92. package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
  93. package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
  94. package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
  95. package/es/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
  96. package/es/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
  97. package/es/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
  98. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  99. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
  100. package/es/composite-comp/dito/components/SlideImage/index.js +86 -0
  101. package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
  102. package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
  103. package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
  104. package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
  105. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
  106. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
  107. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
  108. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
  109. package/es/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
  110. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +7 -0
  111. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +7 -0
  112. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
  113. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
  114. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -0
  115. package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
  116. package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
  117. package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
  118. package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
  119. package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
  120. package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
  121. package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
  122. package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
  123. package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
  124. package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
  125. package/es/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
  126. package/{lib/composite-comp/dito/config-panels/OrdersConfig → es/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
  127. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
  128. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
  129. package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
  130. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +23 -5
  131. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +17 -1
  132. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -3
  133. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +197 -0
  134. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.less +7 -0
  135. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.js +148 -0
  136. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.less +0 -0
  137. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.js +226 -0
  138. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.less +9 -0
  139. package/es/composite-comp/dito/config-panels/SearchBannerConfig/imgs/defaultImg.png +0 -0
  140. package/es/composite-comp/dito/config-panels/SearchBannerConfig/index.js +65 -0
  141. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
  142. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
  143. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
  144. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
  145. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
  146. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
  147. package/es/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
  148. package/es/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
  149. package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
  150. package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
  151. package/es/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
  152. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
  153. package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
  154. package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
  155. package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
  156. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
  157. package/es/composite-comp/dito/second-config-panels/SearchBannerSecondConfig/index.js +98 -0
  158. package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
  159. package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
  160. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
  161. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
  162. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
  163. package/es/composite-comp/nuri/components/AffiliateRecommend/mobile/index.js +1 -1
  164. package/es/composite-comp/nuri/components/AffiliateRecommend/mobile/index.less +15 -15
  165. package/es/composite-comp/public/components/Stores/mobile/index.less +3 -0
  166. package/es/constants/component-types.js +33 -9
  167. package/es/constants/index.js +44 -20
  168. package/es/constants/layout.js +46 -2
  169. package/es/core/Designer/ConfigPanel/index.js +18 -1
  170. package/es/core/Designer/index.js +2 -2
  171. package/es/core/Renderer/index.js +37 -2
  172. package/es/decorator/compositeDecorator.js +14 -4
  173. package/es/decorator/metaDecorator.js +1 -2
  174. package/es/locale/ar/ar.json +18 -1
  175. package/es/locale/en/en.json +18 -1
  176. package/es/locale/es/es.json +18 -1
  177. package/es/locale/mn/mn.json +4 -0
  178. package/es/meta-comp/components/Button/editable.js +3 -1
  179. package/es/meta-comp/components/Button/index.js +13 -4
  180. package/es/meta-comp/components/Button/index.less +8 -1
  181. package/es/meta-comp/components/Image/index.js +7 -2
  182. package/es/meta-comp/components/Image/index.less +7 -0
  183. package/es/meta-comp/components/Text/index.js +6 -2
  184. package/es/meta-comp/components/Text/index.less +3 -0
  185. package/es/mobx/Frame.js +12 -1
  186. package/es/mobx/Store.js +12 -0
  187. package/es/utils/androidUtil.js +10 -2
  188. package/es/utils/businessUtil.js +218 -3
  189. package/es/utils/commonUtil.js +155 -4
  190. package/es/utils/coreUtil.js +59 -4
  191. package/es/utils/messageUtil.js +40 -0
  192. package/es/utils/pluginsUtil.js +1 -0
  193. package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
  194. package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
  195. package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
  196. package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
  197. package/lib/assets/fonts/Montserrat-Bold.ttf +0 -0
  198. package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
  199. package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
  200. package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  201. package/lib/assets/fonts/magic-box-iconfont.css +38 -6
  202. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  203. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  204. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  205. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  206. package/lib/assets/images/base64/index.js +8 -2
  207. package/lib/assets/images/layout-icon/banner-slide-layout3.png +0 -0
  208. package/lib/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
  209. package/lib/assets/images/layout-icon/news-layout1.png +0 -0
  210. package/lib/assets/images/layout-icon/search-dito-layout1.png +0 -0
  211. package/lib/assets/images/layout-icon/slide-image-layout1.png +0 -0
  212. package/lib/assets/less/font.less +30 -0
  213. package/lib/assets/less/global.less +5 -0
  214. package/lib/common/ColorPickerInput/index.less +2 -0
  215. package/lib/common/CountDown/index.js +29 -2
  216. package/lib/common/CountDown/index.less +38 -5
  217. package/lib/common/ErrorBoundary/index.js +90 -0
  218. package/lib/common/FontStyles/index.less +1 -1
  219. package/lib/common/LinkModal/ProductList/index.js +484 -0
  220. package/lib/common/LinkModal/ProductList/index.less +130 -0
  221. package/lib/common/LinkModal/index.js +8 -1
  222. package/lib/common/ProductCardModal/imgs/dot-icon.png +0 -0
  223. package/lib/common/ProductCardModal/index.js +255 -0
  224. package/lib/common/ProductCardModal/index.less +131 -0
  225. package/lib/common/Toast/index.js +30 -0
  226. package/lib/common/Toast/index.less +29 -0
  227. package/lib/common/UrlPicker/index.js +1 -1
  228. package/lib/common/Video/index.js +5 -3
  229. package/lib/common/VideoPC/background.png +0 -0
  230. package/lib/common/VideoPC/closeImg.png +0 -0
  231. package/lib/common/VideoPC/components/index.js +100 -0
  232. package/lib/common/VideoPC/components/index.less +62 -0
  233. package/lib/common/VideoPC/cover.png +0 -0
  234. package/lib/common/VideoPC/index.js +750 -0
  235. package/lib/common/VideoPC/index.less +79 -0
  236. package/lib/common/index.js +32 -0
  237. package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
  238. package/lib/composite-comp/common/components/ImageLabel/index.less +23 -7
  239. package/lib/composite-comp/common/components/ProductItem/index.js +41 -24
  240. package/lib/composite-comp/common/components/ProductItem/index.less +17 -15
  241. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +16 -12
  242. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
  243. package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +24 -0
  244. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
  245. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
  246. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
  247. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +49 -11
  248. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
  249. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +9 -1
  250. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
  251. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
  252. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
  253. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
  254. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +24 -0
  255. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +8 -5
  256. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
  257. package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
  258. package/lib/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
  259. package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
  260. package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
  261. package/lib/composite-comp/dito/components/News/defaultJSON.js +172 -0
  262. package/{es/composite-comp/dito/components/Orders → lib/composite-comp/dito/components/News}/index.js +13 -13
  263. package/lib/composite-comp/dito/components/News/pc/index.js +113 -0
  264. package/lib/composite-comp/dito/components/News/pc/index.less +46 -0
  265. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
  266. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +75 -2
  267. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  268. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +159 -21
  269. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +108 -9
  270. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +55 -1
  271. package/lib/composite-comp/dito/components/Recommend/mobile/imgs/card.png +0 -0
  272. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +177 -20
  273. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +24 -1
  274. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +234 -0
  275. package/lib/composite-comp/dito/components/SearchBanner/imgs/defaultImg.png +0 -0
  276. package/lib/composite-comp/dito/components/SearchBanner/imgs/pcDefImg1.png +0 -0
  277. package/lib/composite-comp/dito/components/SearchBanner/index.js +108 -0
  278. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +293 -0
  279. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +108 -0
  280. package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
  281. package/lib/composite-comp/dito/components/SearchDITO/index.js +86 -0
  282. package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
  283. package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
  284. package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
  285. package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
  286. package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
  287. package/lib/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
  288. package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
  289. package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
  290. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  291. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
  292. package/lib/composite-comp/dito/components/SlideImage/index.js +86 -0
  293. package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
  294. package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
  295. package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
  296. package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
  297. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
  298. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
  299. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
  300. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
  301. package/lib/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
  302. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +7 -0
  303. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +7 -0
  304. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
  305. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
  306. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -0
  307. package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
  308. package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
  309. package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
  310. package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
  311. package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
  312. package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
  313. package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
  314. package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
  315. package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
  316. package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
  317. package/lib/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
  318. package/{es/composite-comp/dito/config-panels/OrdersConfig → lib/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
  319. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
  320. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
  321. package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
  322. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +23 -5
  323. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +17 -1
  324. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -3
  325. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +197 -0
  326. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.less +7 -0
  327. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.js +148 -0
  328. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.less +0 -0
  329. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.js +226 -0
  330. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.less +9 -0
  331. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/imgs/defaultImg.png +0 -0
  332. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/index.js +65 -0
  333. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
  334. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
  335. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
  336. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
  337. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
  338. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
  339. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
  340. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
  341. package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
  342. package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
  343. package/lib/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
  344. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
  345. package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
  346. package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
  347. package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
  348. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
  349. package/lib/composite-comp/dito/second-config-panels/SearchBannerSecondConfig/index.js +98 -0
  350. package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
  351. package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
  352. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
  353. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
  354. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
  355. package/lib/composite-comp/nuri/components/AffiliateRecommend/mobile/index.js +1 -1
  356. package/lib/composite-comp/nuri/components/AffiliateRecommend/mobile/index.less +15 -15
  357. package/lib/composite-comp/public/components/Stores/mobile/index.less +3 -0
  358. package/lib/constants/component-types.js +33 -9
  359. package/lib/constants/index.js +44 -20
  360. package/lib/constants/layout.js +46 -2
  361. package/lib/core/Designer/ConfigPanel/index.js +18 -1
  362. package/lib/core/Designer/index.js +2 -2
  363. package/lib/core/Renderer/index.js +37 -2
  364. package/lib/decorator/compositeDecorator.js +14 -4
  365. package/lib/decorator/metaDecorator.js +1 -2
  366. package/lib/locale/ar/ar.json +18 -1
  367. package/lib/locale/en/en.json +18 -1
  368. package/lib/locale/es/es.json +18 -1
  369. package/lib/locale/mn/mn.json +4 -0
  370. package/lib/meta-comp/components/Button/editable.js +3 -1
  371. package/lib/meta-comp/components/Button/index.js +13 -4
  372. package/lib/meta-comp/components/Button/index.less +8 -1
  373. package/lib/meta-comp/components/Image/index.js +7 -2
  374. package/lib/meta-comp/components/Image/index.less +7 -0
  375. package/lib/meta-comp/components/Text/index.js +6 -2
  376. package/lib/meta-comp/components/Text/index.less +3 -0
  377. package/lib/mobx/Frame.js +12 -1
  378. package/lib/mobx/Store.js +12 -0
  379. package/lib/utils/androidUtil.js +10 -2
  380. package/lib/utils/businessUtil.js +218 -3
  381. package/lib/utils/commonUtil.js +155 -4
  382. package/lib/utils/coreUtil.js +59 -4
  383. package/lib/utils/messageUtil.js +40 -0
  384. package/lib/utils/pluginsUtil.js +1 -0
  385. package/package.json +5 -2
  386. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  387. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  388. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  389. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -352
  390. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  391. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  392. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  393. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  394. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  395. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -352
  396. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  397. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  398. /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
  399. /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
@@ -7,8 +7,6 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
- var _base = require("../../../../assets/images/base64");
11
-
12
10
  var _constants = require("../../../../constants");
13
11
 
14
12
  var getDefaultJSON = function getDefaultJSON() {
@@ -20,10 +18,24 @@ var getDefaultJSON = function getDefaultJSON() {
20
18
  id: (0, _uuid.v4)(),
21
19
  type: 'FLASH_DEAL',
22
20
  title: {
23
- icon: {
21
+ image: {
24
22
  id: (0, _uuid.v4)(),
25
23
  open: true,
26
- url: _base.flashIcon
24
+ type: 'IMAGE',
25
+ content: {
26
+ h5Name: 'name2',
27
+ pcName: 'name2',
28
+ h5ImgSrc: '',
29
+ pcImgSrc: '',
30
+ clickUrl: ''
31
+ },
32
+ hover: {
33
+ open: false,
34
+ backgroundType: 'enlarge',
35
+ magnification: 1.5,
36
+ pcImgHoverUrl: '',
37
+ h5ImgHoverUrl: ''
38
+ }
27
39
  },
28
40
  headline: {
29
41
  id: (0, _uuid.v4)(),
@@ -154,7 +166,8 @@ var getDefaultJSON = function getDefaultJSON() {
154
166
  fontFamily: defaultFontFamily,
155
167
  fontWeight: 500,
156
168
  fontSize: 14,
157
- color: '#2C2C2C'
169
+ color: '#2C2C2C',
170
+ pcFontSize: 19
158
171
  },
159
172
  underline: {
160
173
  open: false,
@@ -178,7 +191,8 @@ var getDefaultJSON = function getDefaultJSON() {
178
191
  fontFamily: defaultFontFamily,
179
192
  fontWeight: 600,
180
193
  fontSize: 14,
181
- color: '#CE1126'
194
+ color: '#CE1126',
195
+ pcFontSize: 32
182
196
  },
183
197
  underline: {
184
198
  open: false,
@@ -202,6 +216,7 @@ var getDefaultJSON = function getDefaultJSON() {
202
216
  fontFamily: defaultFontFamily,
203
217
  fontWeight: 500,
204
218
  fontSize: 10,
219
+ pcFontSize: 16,
205
220
  color: '#929292'
206
221
  },
207
222
  underline: {
@@ -214,6 +229,30 @@ var getDefaultJSON = function getDefaultJSON() {
214
229
  lineHeight: 18
215
230
  }
216
231
  },
232
+ discountLabel: {
233
+ id: (0, _uuid.v4)(),
234
+ open: true,
235
+ type: 'TEXT',
236
+ specialContent: [],
237
+ text: '',
238
+ content: {
239
+ sizeType: 'Customize font styles',
240
+ fontFamily: defaultFontFamily,
241
+ fontWeight: 700,
242
+ fontSize: 12,
243
+ color: '#2C2C2C',
244
+ urlDisabled: true
245
+ },
246
+ underline: {
247
+ open: false,
248
+ textDecorationColor: '',
249
+ textDecorationStyle: 'solid'
250
+ },
251
+ vertical: {
252
+ open: false,
253
+ lineHeight: 18
254
+ }
255
+ },
217
256
  salesProgress: {
218
257
  open: true
219
258
  }
@@ -235,11 +274,10 @@ var getDefaultJSON = function getDefaultJSON() {
235
274
  }
236
275
  },
237
276
  customize: {
238
- layout: 'layout1',
239
- align: 'left',
240
- pcRowNum: 6,
241
- pcMaxRowNum: 6,
242
- pcMinRowNum: 5
277
+ layout: {
278
+ h5Layout: 'layout1',
279
+ pcLayout: 'layout1'
280
+ }
243
281
  },
244
282
  background: {
245
283
  opacity: 100,
@@ -377,15 +377,15 @@ function (_super) {
377
377
  };
378
378
 
379
379
  FlashDealMobile.prototype.render = function () {
380
- var _a, _b;
380
+ var _a, _b, _c, _d, _e;
381
381
 
382
382
  var panelProps = this.props.panelProps;
383
- var _c = this.state,
384
- list = _c.list,
385
- effDate = _c.effDate,
386
- expDate = _c.expDate,
387
- now = _c.now,
388
- isWill = _c.isWill;
383
+ var _f = this.state,
384
+ list = _f.list,
385
+ effDate = _f.effDate,
386
+ expDate = _f.expDate,
387
+ now = _f.now,
388
+ isWill = _f.isWill;
389
389
 
390
390
  var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
391
391
 
@@ -395,16 +395,15 @@ function (_super) {
395
395
  className: "flash-deal-title"
396
396
  }, /*#__PURE__*/_react["default"].createElement("div", {
397
397
  className: "left"
398
- }, panelProps.title.icon.open && panelProps.title.icon.url && /*#__PURE__*/_react["default"].createElement("img", {
399
- alt: "",
398
+ }, ((_a = panelProps.title.image) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
400
399
  className: "icon",
401
- src: panelProps.title.icon.url
400
+ data: panelProps.title.image
402
401
  }), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
403
402
  className: "title",
404
403
  data: panelProps.title.headline
405
404
  }), isWill && /*#__PURE__*/_react["default"].createElement("span", {
406
405
  className: "sub-title"
407
- }, (0, _locale.i18n)('NEXT')), ((_a = panelProps.title) === null || _a === void 0 ? void 0 : _a.countDown) && ((_b = panelProps.title.countDown) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
406
+ }, (0, _locale.i18n)('NEXT')), ((_b = panelProps.title) === null || _b === void 0 ? void 0 : _b.countDown) && ((_c = panelProps.title.countDown) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
408
407
  effDate: effDate,
409
408
  expDate: expDate,
410
409
  now: now,
@@ -419,17 +418,19 @@ function (_super) {
419
418
  data: panelProps.title.button
420
419
  }))), /*#__PURE__*/_react["default"].createElement("div", {
421
420
  className: (0, _classnames["default"])('flash-deal-list', {
422
- 'flash-deal-list-vertical': panelProps.customize.layout === 'layout1',
423
- 'flash-deal-list-horizontal': panelProps.customize.layout === 'layout2'
421
+ 'flash-deal-list-vertical': ((_d = panelProps.customize.layout) === null || _d === void 0 ? void 0 : _d.h5Layout) !== 'layout2',
422
+ 'flash-deal-list-horizontal': ((_e = panelProps.customize.layout) === null || _e === void 0 ? void 0 : _e.h5Layout) === 'layout2'
424
423
  })
425
424
  }, _list.map(function (item) {
425
+ var _a;
426
+
426
427
  return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
427
428
  key: item.id,
428
429
  data: __assign(__assign({}, item), {
429
430
  salePercent: isWill ? 0 : item.salePercent
430
431
  }) // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
431
432
  ,
432
- layout: panelProps.customize.layout === 'layout2' ? 'horizontal' : 'vertical',
433
+ layout: ((_a = panelProps.customize.layout) === null || _a === void 0 ? void 0 : _a.h5Layout) === 'layout2' ? 'horizontal' : 'vertical',
433
434
  onItemClick: function onItemClick() {
434
435
  if (window.magicDesign.pushGA) {
435
436
  window.magicDesign.pushGA({}, 'select_promotion', {
@@ -78,8 +78,12 @@
78
78
  .m-flash-deal-mobile .flash-deal-list-vertical .m-product-item-wrap {
79
79
  width: 2.44rem;
80
80
  margin-right: 0.16rem;
81
+ border-radius: 0.16rem;
81
82
  }
82
- .m-flash-deal-mobile .flash-deal-list-vertical .m-product-item-wrap .product-img {
83
+ .m-flash-deal-mobile .flash-deal-list-vertical .m-product-item-wrap .img-wrap {
84
+ border-radius: 0.16rem 0.16rem 0 0;
85
+ }
86
+ .m-flash-deal-mobile .flash-deal-list-vertical .m-product-item-wrap .img-wrap .product-img {
83
87
  height: 2.4rem;
84
88
  width: 2.4rem;
85
89
  }
@@ -92,6 +96,10 @@
92
96
  }
93
97
  .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap {
94
98
  width: 100%;
99
+ border-radius: 0.16rem;
100
+ }
101
+ .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap .img-wrap {
102
+ border-radius: 0.16rem 0 0 0.16rem;
95
103
  }
96
104
  .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap .content-wrap {
97
105
  flex: 1;
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _commonUtil = require("../../../../../../utils/commonUtil");
13
+
14
+ var _currencyUtil = require("../../../../../../utils/currencyUtil");
15
+
16
+ var _common = require("../../../../../../common");
17
+
18
+ var _components = require("../../../../../../meta-comp/components");
19
+
20
+ var _businessUtil = require("../../../../../../utils/businessUtil");
21
+
22
+ require("./index.less");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ 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); }
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 __assign = void 0 && (void 0).__assign || function () {
55
+ __assign = Object.assign || function (t) {
56
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
57
+ s = arguments[i];
58
+
59
+ for (var p in s) {
60
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
61
+ }
62
+ }
63
+
64
+ return t;
65
+ };
66
+
67
+ return __assign.apply(this, arguments);
68
+ };
69
+
70
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
71
+ var t = {};
72
+
73
+ for (var p in s) {
74
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
75
+ }
76
+
77
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
79
+ }
80
+ return t;
81
+ };
82
+
83
+ var ProductItem =
84
+ /** @class */
85
+ function (_super) {
86
+ __extends(ProductItem, _super);
87
+
88
+ function ProductItem() {
89
+ var _this = _super !== null && _super.apply(this, arguments) || this;
90
+
91
+ _this.state = {};
92
+ return _this;
93
+ }
94
+
95
+ ProductItem.prototype.render = function () {
96
+ var _a = this.props,
97
+ data = _a.data,
98
+ panelProps = _a.panelProps,
99
+ onItemClick = _a.onItemClick,
100
+ unknownPrice = _a.unknownPrice,
101
+ rest = __rest(_a, ["data", "panelProps", "onItemClick", "unknownPrice"]);
102
+
103
+ var promotions = (0, _businessUtil.getPromotionList)(data);
104
+ var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
105
+ /** 当是拼团时 显示价格 */
106
+
107
+ if (data.sppType && promotions.length) {
108
+ price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrency)(data.specialPrice) : (0, _currencyUtil.formatCurrency)(data.salesPrice);
109
+ }
110
+
111
+ var integerPart = price;
112
+ var decimalPart = null;
113
+
114
+ if (unknownPrice) {
115
+ if (price.length > 5) {
116
+ integerPart = price.slice(0, -5).replace(/\d/g, '? ') + price.slice(-5);
117
+ } else {
118
+ integerPart = price.replace(/\d/, '? ');
119
+ }
120
+ } else if (Array.isArray(price)) {
121
+ integerPart = price[0];
122
+ decimalPart = price[1];
123
+ }
124
+
125
+ var pricePrefix = (0, _commonUtil.ensure)(function () {
126
+ return window.systemParams.prefix;
127
+ }, 'Rp');
128
+
129
+ var _price = integerPart + " " + (decimalPart ? '.' + decimalPart : '');
130
+
131
+ var oldPrice = data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null;
132
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
133
+ className: (0, _classnames["default"])('m-pc-flash-product-item'),
134
+ onClick: function onClick() {
135
+ return onItemClick();
136
+ }
137
+ }, rest), /*#__PURE__*/_react["default"].createElement("div", {
138
+ className: "img-wrap"
139
+ }, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
140
+ className: "product-img",
141
+ lazy: true,
142
+ src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
143
+ })), /*#__PURE__*/_react["default"].createElement("div", {
144
+ className: "content-wrap"
145
+ }, /*#__PURE__*/_react["default"].createElement("div", {
146
+ className: "product-name-wrap"
147
+ }, /*#__PURE__*/_react["default"].createElement("div", {
148
+ className: "box"
149
+ }, panelProps.productName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
150
+ data: __assign(__assign({}, panelProps.productName), {
151
+ text: data.offerName
152
+ }),
153
+ readonly: true
154
+ }))), (panelProps.activityPrice.open || panelProps.salesPrice.open) && /*#__PURE__*/_react["default"].createElement("div", {
155
+ className: "price-wrap"
156
+ }, panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
157
+ className: "prefix"
158
+ }, pricePrefix), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
159
+ className: "price",
160
+ data: __assign(__assign({}, panelProps.activityPrice), {
161
+ text: _price
162
+ }),
163
+ readonly: true
164
+ })), panelProps.salesPrice.open && oldPrice && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
165
+ className: "old-price",
166
+ data: __assign(__assign({}, panelProps.salesPrice), {
167
+ text: oldPrice
168
+ }),
169
+ readonly: true,
170
+ style: {
171
+ color: panelProps.salesPrice.content.color
172
+ }
173
+ })), /*#__PURE__*/_react["default"].createElement("div", {
174
+ className: "rate-sold-wrap"
175
+ }, /*#__PURE__*/_react["default"].createElement("div", {
176
+ className: "rate-wrap"
177
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
178
+ color: "#FCD117",
179
+ size: 16,
180
+ type: "icon-star"
181
+ }), /*#__PURE__*/_react["default"].createElement("span", {
182
+ className: "rate-text"
183
+ }, (0, _currencyUtil.numberToFixed)(5.0, 1))), data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
184
+ className: "sold-count"
185
+ }, (0, _commonUtil.convertCount)(data.salesCnt), " sold"))));
186
+ };
187
+
188
+ ProductItem.defaultProps = {
189
+ data: {},
190
+ panelProps: {},
191
+ layout: 'vertical'
192
+ };
193
+ return ProductItem;
194
+ }(_react["default"].Component);
195
+
196
+ var _default = ProductItem;
197
+ exports["default"] = _default;
@@ -0,0 +1,100 @@
1
+ .m-pc-flash-product-item {
2
+ display: flex;
3
+ flex-direction: column;
4
+ background: #FFFFFF;
5
+ cursor: pointer;
6
+ position: relative;
7
+ width: 270px;
8
+
9
+ .img-wrap {
10
+ position: relative;
11
+ overflow: hidden;
12
+ border-radius: 16px;
13
+ border: 1px solid #E0E0E0;
14
+
15
+ .product-img {
16
+ width: 270px;
17
+ height: 270px;
18
+ object-fit: cover;
19
+ }
20
+ }
21
+
22
+ .content-wrap {
23
+ padding: 8px;
24
+
25
+ .product-name-wrap {
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ display: -webkit-box;
29
+ -webkit-box-orient: vertical;
30
+ -webkit-line-clamp: 2;
31
+ line-height: 24px;
32
+ height: 48px;
33
+ white-space: wrap;
34
+ }
35
+
36
+ .price-wrap {
37
+ display: flex;
38
+ align-items: baseline;
39
+ flex-wrap: wrap;
40
+ margin-top: 8px;
41
+
42
+ .prefix {
43
+ font-weight: 700;
44
+ font-size: 20px;
45
+ color: #CE1126;
46
+ }
47
+
48
+ .price {
49
+ width: auto !important;
50
+ white-space: nowrap;
51
+ overflow: hidden;
52
+ text-overflow: ellipsis;
53
+ margin-right: 8px;
54
+ }
55
+
56
+ .old-price {
57
+ text-decoration: line-through;
58
+ width: fit-content;
59
+ }
60
+
61
+ }
62
+
63
+ .rate-sold-wrap {
64
+ margin-top: 4px;
65
+ display: flex;
66
+ align-items: center;
67
+
68
+ .rate-wrap {
69
+ display: flex;
70
+ align-items: center;
71
+
72
+ .rate-text {
73
+ font-size: 16px;
74
+ font-weight: 500;
75
+ color: #666666;
76
+ margin-left: 4px;
77
+ }
78
+ }
79
+
80
+ .sold-count {
81
+ font-size: 16px;
82
+ font-weight: 500;
83
+ color: #666666;
84
+ margin-left: 10px;
85
+ display: flex;
86
+ align-items: center;
87
+
88
+ &:before {
89
+ content: '';
90
+ display: block;
91
+ width: 2px;
92
+ height: 16px;
93
+ background-color: #666666;
94
+ margin-right: 10px;
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ }
@@ -13,7 +13,7 @@ var _lodash = _interopRequireDefault(require("lodash.throttle"));
13
13
 
14
14
  var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
15
15
 
16
- var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
16
+ var _ProductItem = _interopRequireDefault(require("./ProductItem"));
17
17
 
18
18
  var _coreUtil = require("../../../../../utils/coreUtil");
19
19
 
@@ -474,40 +474,40 @@ function (_super) {
474
474
  FlashDealPc.prototype.render = function () {
475
475
  var _this = this;
476
476
 
477
+ var _a, _b;
478
+
477
479
  var panelProps = this.props.panelProps;
478
- var _a = this.state,
479
- list = _a.list,
480
- effDate = _a.effDate,
481
- expDate = _a.expDate,
482
- now = _a.now,
483
- isWill = _a.isWill,
484
- scrollToLeftDisabled = _a.scrollToLeftDisabled,
485
- scrollToRightDisabled = _a.scrollToRightDisabled;
480
+ var _c = this.state,
481
+ list = _c.list,
482
+ effDate = _c.effDate,
483
+ expDate = _c.expDate,
484
+ now = _c.now,
485
+ isWill = _c.isWill,
486
+ scrollToLeftDisabled = _c.scrollToLeftDisabled,
487
+ scrollToRightDisabled = _c.scrollToRightDisabled;
486
488
 
487
489
  var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
488
490
 
489
- var imgHeight = panelProps.customize.pcRowNum === 6 ? 153 : 193;
490
- var imgWidth = panelProps.customize.pcRowNum === 6 ? 153 : 193;
491
491
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
492
492
  className: "m-flash-deal-pc"
493
493
  }, /*#__PURE__*/_react["default"].createElement("div", {
494
494
  className: "flash-deal-title"
495
495
  }, /*#__PURE__*/_react["default"].createElement("div", {
496
496
  className: "left"
497
- }, panelProps.title.icon.open && panelProps.title.icon.url && /*#__PURE__*/_react["default"].createElement("img", {
498
- alt: "",
497
+ }, ((_a = panelProps.title.image) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
499
498
  className: "icon",
500
- src: panelProps.title.icon.url
501
- }), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
499
+ data: panelProps.title.image
500
+ }), !(0, _coreUtil.isPc)() && panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
502
501
  className: "title",
503
502
  data: panelProps.title.headline
504
- }), isWill && /*#__PURE__*/_react["default"].createElement("span", {
503
+ }), !(0, _coreUtil.isPc)() && isWill && /*#__PURE__*/_react["default"].createElement("span", {
505
504
  className: "sub-title"
506
- }, (0, _locale.i18n)('NEXT')), /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
505
+ }, (0, _locale.i18n)('NEXT')), ((_b = panelProps.title.countDown) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
507
506
  effDate: effDate,
508
507
  expDate: expDate,
509
508
  now: now,
510
- refresh: this.getNextFlashSale
509
+ refresh: this.getNextFlashSale,
510
+ type: "pc"
511
511
  })), /*#__PURE__*/_react["default"].createElement("div", {
512
512
  className: "right",
513
513
  onClick: function onClick() {
@@ -536,10 +536,6 @@ function (_super) {
536
536
  data: __assign(__assign({}, item), {
537
537
  salePercent: isWill ? 0 : item.salePercent
538
538
  }),
539
- fixHeight: true,
540
- imgHeight: imgHeight,
541
- imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
542
- ,
543
539
  onItemClick: function onItemClick() {
544
540
  return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
545
541
  },
@@ -1,12 +1,13 @@
1
1
  .m-flash-deal-pc {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- padding: 16px 16px 28px 16px;
5
4
 
6
5
  .flash-deal-title {
7
6
  display: flex;
8
7
  justify-content: space-between;
9
8
  align-items: center;
9
+ padding: 0 64px;
10
+ margin-bottom: 40px;
10
11
 
11
12
  .left {
12
13
  display: flex;
@@ -18,7 +19,6 @@
18
19
  }
19
20
 
20
21
  .title {
21
- font-family: 'Montserrat';
22
22
  font-style: normal;
23
23
  font-weight: 600;
24
24
  font-size: 14px;
@@ -28,7 +28,6 @@
28
28
  }
29
29
 
30
30
  .sub-title {
31
- font-family: 'Montserrat';
32
31
  font-style: normal;
33
32
  font-weight: 600;
34
33
  font-size: 10px;
@@ -44,7 +43,6 @@
44
43
  align-items: center;
45
44
 
46
45
  .text {
47
- font-family: 'Montserrat';
48
46
  font-style: normal;
49
47
  font-weight: 600;
50
48
  font-size: 12px;
@@ -66,27 +64,26 @@
66
64
 
67
65
  .arrow-icon {
68
66
  display: block;
69
- width: 36px;
70
- height: 36px;
71
- line-height: 42px;
67
+ width: 48px;
68
+ height: 48px;
69
+ line-height: 50px;
72
70
  text-align: center;
73
71
  background: #FFFFFF;
74
- box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
75
72
  border-radius: 100px;
73
+ border: 1px solid #F0F0F0;
76
74
  cursor: pointer;
77
75
 
78
76
  &.left {
79
- margin-right: 30px;
77
+ margin-right: 16px;
80
78
  }
81
79
 
82
80
  &.right {
83
- margin-left: 30px;
81
+ margin-left: 16px;
84
82
  }
85
83
  }
86
84
  }
87
85
 
88
86
  .flash-deal-list {
89
- margin-top: 16px;
90
87
  overflow-x: auto;
91
88
  overflow-y: hidden;
92
89
  white-space: nowrap;
@@ -95,27 +92,19 @@
95
92
  justify-content: flex-start;
96
93
  position: relative;
97
94
  flex: 1;
95
+ gap: 40px;
96
+ }
97
+ }
98
98
 
99
- .loading-wrap {
100
- display: flex;
101
- align-items: center;
102
- justify-content: center;
103
- padding: 30px;
104
- position: absolute;
105
- top: 0;
106
- bottom: 0;
107
- left: 0;
108
- right: 0;
109
- margin: auto;
110
- }
111
-
112
- // 秒杀特有样式
113
- .m-product-item-wrap {
114
- width: 142px;
115
- margin-right: 24px;
116
99
 
117
- .product-name {
118
- height: 36px;
100
+ @media(min-width: 750px) {
101
+ .m-flash-deal-pc {
102
+ .flash-deal-title {
103
+ .left {
104
+ .icon {
105
+ height: 36px;
106
+ margin-right: 16px;
107
+ }
119
108
  }
120
109
  }
121
110
  }