@fonixtree/magic-design 2.0.97 → 2.0.99

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 (283) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +19 -3
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  7. package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  8. package/es/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  9. package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  10. package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  11. package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  12. package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  13. package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  14. package/es/common/Collapse/index.js +10 -8
  15. package/es/common/FontStyles/index.less +3 -1
  16. package/es/common/MonpayCountDown/index.js +160 -0
  17. package/es/common/PopUpModal/index.less +79 -0
  18. package/es/common/PopUpModal1/style.less +56 -0
  19. package/es/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
  20. package/es/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
  21. package/es/common/ProductFilterModal/index.less +72 -0
  22. package/es/common/RatingText/index.js +105 -0
  23. package/es/common/RatingText/index.less +12 -0
  24. package/es/common/Tag/index.less +16 -0
  25. package/es/common/index.js +24 -0
  26. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  27. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  28. package/es/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  29. package/es/composite-comp/bol/components/Banner/pc/index.js +2 -1
  30. package/es/composite-comp/bol/components/Banner/pc/index.less +9 -3
  31. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  32. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  33. package/es/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  34. package/es/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  35. package/es/composite-comp/common/components/ProductItem/index.js +5 -11
  36. package/es/composite-comp/common/components/ProductItem/index.less +10 -0
  37. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  38. package/es/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  39. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  40. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  41. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  42. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  43. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  44. package/es/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  45. package/es/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  46. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  47. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  48. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  49. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  50. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  51. package/es/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
  52. package/es/composite-comp/monpay/components/Bundle/index.js +86 -0
  53. package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
  54. package/es/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
  55. package/es/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
  56. package/es/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
  57. package/es/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
  58. package/es/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
  59. package/es/composite-comp/monpay/components/InterestProducts/index.js +86 -0
  60. package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
  61. package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
  62. package/es/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
  63. package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
  64. package/es/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
  65. package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
  66. package/es/composite-comp/monpay/components/MerchantSales/index.js +86 -0
  67. package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
  68. package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
  69. package/es/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
  70. package/es/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
  71. package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
  72. package/es/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
  73. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  74. package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  75. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  76. package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  77. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  78. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  79. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  80. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  81. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  82. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  83. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  84. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  85. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  86. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  87. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  88. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  89. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +389 -0
  90. package/es/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  91. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
  92. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
  93. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +822 -0
  94. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  95. package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
  96. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +817 -0
  97. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
  98. package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
  99. package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
  100. package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
  101. package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
  102. package/es/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
  103. package/es/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
  104. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
  105. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
  106. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
  107. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
  108. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
  109. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
  110. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
  111. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
  112. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
  113. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
  114. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
  115. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
  116. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  117. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  118. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  119. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  120. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  121. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  122. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  123. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  124. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  125. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  126. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  127. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  128. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  129. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  130. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +435 -0
  131. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  132. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  133. package/es/constants/component-types.js +25 -3
  134. package/es/constants/index.js +42 -3
  135. package/es/constants/layout.js +43 -4
  136. package/es/core/Designer/ConfigPanel/index.js +1 -1
  137. package/es/core/Designer/index.js +5 -2
  138. package/es/locale/en/en.json +21 -0
  139. package/es/locale/es/es.json +21 -0
  140. package/es/locale/id/id.json +21 -0
  141. package/es/utils/dateUtil.js +13 -0
  142. package/lib/assets/fonts/.DS_Store +0 -0
  143. package/lib/assets/fonts/magic-box-iconfont.css +19 -3
  144. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  145. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  146. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  147. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  148. package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  149. package/lib/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
  150. package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  151. package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  152. package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  153. package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  154. package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  155. package/lib/common/Collapse/index.js +10 -8
  156. package/lib/common/FontStyles/index.less +3 -1
  157. package/lib/common/MonpayCountDown/index.js +160 -0
  158. package/lib/common/PopUpModal/index.less +79 -0
  159. package/lib/common/PopUpModal1/style.less +56 -0
  160. package/lib/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
  161. package/lib/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
  162. package/lib/common/ProductFilterModal/index.less +72 -0
  163. package/lib/common/RatingText/index.js +105 -0
  164. package/lib/common/RatingText/index.less +12 -0
  165. package/lib/common/Tag/index.less +16 -0
  166. package/lib/common/index.js +24 -0
  167. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
  168. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  169. package/lib/composite-comp/bol/components/Banner/mobile/index.less +8 -4
  170. package/lib/composite-comp/bol/components/Banner/pc/index.js +2 -1
  171. package/lib/composite-comp/bol/components/Banner/pc/index.less +9 -3
  172. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
  173. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
  174. package/lib/composite-comp/common/components/MonpayProductItem/index.js +283 -0
  175. package/lib/composite-comp/common/components/MonpayProductItem/index.less +211 -0
  176. package/lib/composite-comp/common/components/ProductItem/index.js +5 -11
  177. package/lib/composite-comp/common/components/ProductItem/index.less +10 -0
  178. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  179. package/lib/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
  180. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
  181. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
  182. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
  183. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
  184. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
  185. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
  186. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
  187. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
  188. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
  189. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
  190. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
  191. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
  192. package/lib/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
  193. package/lib/composite-comp/monpay/components/Bundle/index.js +86 -0
  194. package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
  195. package/lib/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
  196. package/lib/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
  197. package/lib/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
  198. package/lib/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
  199. package/lib/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
  200. package/lib/composite-comp/monpay/components/InterestProducts/index.js +86 -0
  201. package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
  202. package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
  203. package/lib/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
  204. package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
  205. package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
  206. package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
  207. package/lib/composite-comp/monpay/components/MerchantSales/index.js +86 -0
  208. package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
  209. package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
  210. package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
  211. package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
  212. package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
  213. package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
  214. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
  215. package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
  216. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
  217. package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
  218. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
  219. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
  220. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
  221. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
  222. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
  223. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
  224. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  225. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  226. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  227. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  228. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
  229. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  230. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +389 -0
  231. package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
  232. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
  233. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
  234. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +822 -0
  235. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
  236. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
  237. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +817 -0
  238. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
  239. package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
  240. package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
  241. package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
  242. package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
  243. package/lib/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
  244. package/lib/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
  245. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
  246. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
  247. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
  248. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
  249. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
  250. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
  251. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
  252. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
  253. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
  254. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
  255. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
  256. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
  257. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
  258. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
  259. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
  260. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
  261. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
  262. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
  263. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
  264. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
  265. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
  266. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
  267. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
  268. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
  269. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
  270. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
  271. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +435 -0
  272. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
  273. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
  274. package/lib/constants/component-types.js +25 -3
  275. package/lib/constants/index.js +42 -3
  276. package/lib/constants/layout.js +43 -4
  277. package/lib/core/Designer/ConfigPanel/index.js +1 -1
  278. package/lib/core/Designer/index.js +5 -2
  279. package/lib/locale/en/en.json +21 -0
  280. package/lib/locale/es/es.json +21 -0
  281. package/lib/locale/id/id.json +21 -0
  282. package/lib/utils/dateUtil.js +13 -0
  283. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ .monpay-interest-products-mobile {
2
+ padding: 0.4rem;
3
+ }
4
+ .monpay-interest-products-mobile .interest-products-title {
5
+ display: flex;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ }
9
+ .monpay-interest-products-mobile .interest-products-title .text {
10
+ width: auto !important;
11
+ }
12
+ .monpay-interest-products-mobile .interest-products-title .btn {
13
+ font-weight: 400;
14
+ font-size: 0.28rem;
15
+ line-height: 0.32rem;
16
+ color: #E87A49;
17
+ border-bottom: 0.02rem solid #E87A49;
18
+ }
19
+ .monpay-interest-products-mobile .interest-products-list {
20
+ margin-top: 0.32rem;
21
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var _headerImage = _interopRequireDefault(require("./mobile/img/headerImage.jpg"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+
14
+ var getDefaultJSON = function getDefaultJSON() {
15
+ var contentId = (0, _uuid.v4)();
16
+ return {
17
+ id: (0, _uuid.v4)(),
18
+ type: 'MERCHANT_SALES',
19
+ title: {
20
+ headerImage: {
21
+ id: contentId,
22
+ open: true,
23
+ type: 'IMAGE',
24
+ content: {
25
+ h5Name: '',
26
+ pcName: '',
27
+ h5ImgSrc: _headerImage["default"],
28
+ pcImgSrc: '',
29
+ clickUrl: ''
30
+ },
31
+ hover: {
32
+ open: false,
33
+ backgroundType: 'enlarge',
34
+ magnification: 1.5,
35
+ pcImgHoverUrl: '',
36
+ h5ImgHoverUrl: ''
37
+ }
38
+ }
39
+ },
40
+ content: {
41
+ id: contentId,
42
+ sourceType: '1',
43
+ merchantName: {
44
+ id: (0, _uuid.v4)(),
45
+ open: true,
46
+ type: 'TEXT',
47
+ specialContent: [],
48
+ text: 'Name',
49
+ content: {
50
+ sizeType: 'Customize font styles',
51
+ fontFamily: 'Open Sans',
52
+ fontWeight: 400,
53
+ fontSize: 14,
54
+ color: '#000'
55
+ },
56
+ underline: {
57
+ open: false,
58
+ textDecorationColor: '',
59
+ textDecorationStyle: 'solid'
60
+ },
61
+ vertical: {
62
+ open: false,
63
+ lineHeight: 18
64
+ }
65
+ }
66
+ },
67
+ spacing: {
68
+ pc: {
69
+ paddingTop: 0,
70
+ paddingBottom: 0,
71
+ paddingLeft: 0,
72
+ paddingRight: 0,
73
+ marginBottom: window.magicDesign.compSpacing * 1.5
74
+ },
75
+ mobile: {
76
+ paddingTop: 0,
77
+ paddingBottom: 0,
78
+ paddingLeft: 0,
79
+ paddingRight: 0,
80
+ marginBottom: window.magicDesign.compSpacing
81
+ }
82
+ },
83
+ customize: {
84
+ layout: 'layout1',
85
+ align: 'left',
86
+ pcRowNum: 6,
87
+ pcMaxRowNum: 6,
88
+ pcMinRowNum: 5
89
+ },
90
+ background: {
91
+ opacity: 100,
92
+ color: '#fff',
93
+ image: '',
94
+ bgType: 'color'
95
+ }
96
+ };
97
+ };
98
+
99
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _mobile = _interopRequireDefault(require("./mobile"));
11
+
12
+ var _defaultJSON = require("./defaultJSON");
13
+
14
+ var _coreUtil = require("../../../../utils/coreUtil");
15
+
16
+ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
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 _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); }
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 __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
53
+ var c = arguments.length,
54
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
55
+ d;
56
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
57
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
58
+ }
59
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
60
+ };
61
+
62
+ var MerchantSales =
63
+ /** @class */
64
+ function (_super) {
65
+ __extends(MerchantSales, _super);
66
+
67
+ function MerchantSales() {
68
+ return _super !== null && _super.apply(this, arguments) || this;
69
+ }
70
+
71
+ MerchantSales.prototype.render = function () {
72
+ var nodeData = this.props.nodeData;
73
+ return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
74
+ panelProps: nodeData
75
+ }));
76
+ };
77
+
78
+ MerchantSales.defaultProps = {};
79
+ MerchantSales.type = 'MERCHANT_SALES';
80
+ MerchantSales.getDefaultJSON = _defaultJSON.getDefaultJSON;
81
+ MerchantSales = __decorate([_compositeDecorator["default"]], MerchantSales);
82
+ return MerchantSales;
83
+ }(_react.Component);
84
+
85
+ var _default = MerchantSales;
86
+ exports["default"] = _default;
@@ -0,0 +1,104 @@
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 _common = require("../../../../../../common");
15
+
16
+ require("./index.less");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ 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); }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
49
+ var t = {};
50
+
51
+ for (var p in s) {
52
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
53
+ }
54
+
55
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
56
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
57
+ }
58
+ return t;
59
+ };
60
+
61
+ var ProductItem =
62
+ /** @class */
63
+ function (_super) {
64
+ __extends(ProductItem, _super);
65
+
66
+ function ProductItem() {
67
+ var _this = _super !== null && _super.apply(this, arguments) || this;
68
+
69
+ _this.state = {};
70
+ return _this;
71
+ }
72
+
73
+ ProductItem.prototype.render = function () {
74
+ var _a = this.props,
75
+ data = _a.data,
76
+ onItemClick = _a.onItemClick,
77
+ rest = __rest(_a, ["data", "onItemClick"]);
78
+
79
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
80
+ className: (0, _classnames["default"])('monpay-merchant-product-item-wrap'),
81
+ onClick: function onClick() {
82
+ return onItemClick();
83
+ }
84
+ }, rest), /*#__PURE__*/_react["default"].createElement("div", {
85
+ className: "img-wrap"
86
+ }, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
87
+ className: "product-img",
88
+ lazy: true,
89
+ src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
90
+ }), /*#__PURE__*/_react["default"].createElement("div", {
91
+ className: "sale-tag"
92
+ })), /*#__PURE__*/_react["default"].createElement("div", {
93
+ className: "prodName"
94
+ }, data.offerName));
95
+ };
96
+
97
+ ProductItem.defaultProps = {
98
+ data: {}
99
+ };
100
+ return ProductItem;
101
+ }(_react["default"].Component);
102
+
103
+ var _default = ProductItem;
104
+ exports["default"] = _default;
@@ -0,0 +1,34 @@
1
+ .monpay-merchant-product-item-wrap {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 2.08rem;
5
+ margin-bottom: 0.32rem;
6
+ cursor: pointer;
7
+ position: relative;
8
+ }
9
+ .monpay-merchant-product-item-wrap .img-wrap {
10
+ position: relative;
11
+ }
12
+ .monpay-merchant-product-item-wrap .img-wrap .product-img {
13
+ width: 2.08rem;
14
+ height: 2.08rem;
15
+ border-radius: 0.16rem;
16
+ }
17
+ .monpay-merchant-product-item-wrap .img-wrap .sale-tag {
18
+ background: url('../img/sale.png') no-repeat center center;
19
+ background-size: 100%;
20
+ width: 1.1rem;
21
+ height: 1rem;
22
+ position: absolute;
23
+ top: 0;
24
+ left: 0;
25
+ }
26
+ .monpay-merchant-product-item-wrap .prodName {
27
+ font-weight: 400;
28
+ font-size: 0.28rem;
29
+ color: #000;
30
+ margin-top: 0.1rem;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ }
@@ -0,0 +1,302 @@
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
+ require("./index.less");
11
+
12
+ var _ProductItem = _interopRequireDefault(require("./ProductItem"));
13
+
14
+ var _card = _interopRequireDefault(require("./img/card.png"));
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
18
+ var _components = require("../../../../../meta-comp/components");
19
+
20
+ var _commonUtil = require("../../../../../utils/commonUtil");
21
+
22
+ var _storeUtil = require("../../../../../utils/storeUtil");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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 __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
53
+ function adopt(value) {
54
+ return value instanceof P ? value : new P(function (resolve) {
55
+ resolve(value);
56
+ });
57
+ }
58
+
59
+ return new (P || (P = Promise))(function (resolve, reject) {
60
+ function fulfilled(value) {
61
+ try {
62
+ step(generator.next(value));
63
+ } catch (e) {
64
+ reject(e);
65
+ }
66
+ }
67
+
68
+ function rejected(value) {
69
+ try {
70
+ step(generator["throw"](value));
71
+ } catch (e) {
72
+ reject(e);
73
+ }
74
+ }
75
+
76
+ function step(result) {
77
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
78
+ }
79
+
80
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
81
+ });
82
+ };
83
+
84
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
85
+ var _ = {
86
+ label: 0,
87
+ sent: function sent() {
88
+ if (t[0] & 1) throw t[1];
89
+ return t[1];
90
+ },
91
+ trys: [],
92
+ ops: []
93
+ },
94
+ f,
95
+ y,
96
+ t,
97
+ g;
98
+ return g = {
99
+ next: verb(0),
100
+ "throw": verb(1),
101
+ "return": verb(2)
102
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
103
+ return this;
104
+ }), g;
105
+
106
+ function verb(n) {
107
+ return function (v) {
108
+ return step([n, v]);
109
+ };
110
+ }
111
+
112
+ function step(op) {
113
+ if (f) throw new TypeError("Generator is already executing.");
114
+
115
+ while (_) {
116
+ try {
117
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
118
+ if (y = 0, t) op = [op[0] & 2, t.value];
119
+
120
+ switch (op[0]) {
121
+ case 0:
122
+ case 1:
123
+ t = op;
124
+ break;
125
+
126
+ case 4:
127
+ _.label++;
128
+ return {
129
+ value: op[1],
130
+ done: false
131
+ };
132
+
133
+ case 5:
134
+ _.label++;
135
+ y = op[1];
136
+ op = [0];
137
+ continue;
138
+
139
+ case 7:
140
+ op = _.ops.pop();
141
+
142
+ _.trys.pop();
143
+
144
+ continue;
145
+
146
+ default:
147
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
148
+ _ = 0;
149
+ continue;
150
+ }
151
+
152
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
153
+ _.label = op[1];
154
+ break;
155
+ }
156
+
157
+ if (op[0] === 6 && _.label < t[1]) {
158
+ _.label = t[1];
159
+ t = op;
160
+ break;
161
+ }
162
+
163
+ if (t && _.label < t[2]) {
164
+ _.label = t[2];
165
+
166
+ _.ops.push(op);
167
+
168
+ break;
169
+ }
170
+
171
+ if (t[2]) _.ops.pop();
172
+
173
+ _.trys.pop();
174
+
175
+ continue;
176
+ }
177
+
178
+ op = body.call(thisArg, _);
179
+ } catch (e) {
180
+ op = [6, e];
181
+ y = 0;
182
+ } finally {
183
+ f = t = 0;
184
+ }
185
+ }
186
+
187
+ if (op[0] & 5) throw op[1];
188
+ return {
189
+ value: op[0] ? op[1] : void 0,
190
+ done: true
191
+ };
192
+ }
193
+ };
194
+
195
+ var defaultData = [{
196
+ imgUrlContent: {
197
+ url: _card["default"]
198
+ },
199
+ offerName: 'Product Name'
200
+ }, {
201
+ imgUrlContent: {
202
+ url: _card["default"]
203
+ },
204
+ offerName: 'Product Name'
205
+ }, {
206
+ imgUrlContent: {
207
+ url: _card["default"]
208
+ },
209
+ offerName: 'Product Name'
210
+ }];
211
+
212
+ var MerchantSalesMobile =
213
+ /** @class */
214
+ function (_super) {
215
+ __extends(MerchantSalesMobile, _super);
216
+
217
+ function MerchantSalesMobile() {
218
+ var _this = _super !== null && _super.apply(this, arguments) || this;
219
+
220
+ _this.state = {
221
+ list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
222
+ return (0, _storeUtil.getMagicStore)("merchantSales_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
223
+ }, [])
224
+ };
225
+
226
+ _this.getData = function () {
227
+ return __awaiter(_this, void 0, void 0, function () {
228
+ var maxProdNum, res, list;
229
+ return __generator(this, function (_a) {
230
+ switch (_a.label) {
231
+ case 0:
232
+ maxProdNum = this.props.panelProps.content.maxProdNum;
233
+ return [4
234
+ /*yield*/
235
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
236
+ pageIndex: 1,
237
+ pageSize: maxProdNum,
238
+ sortType: '1',
239
+ intelligentType: '',
240
+ intelligentValue: '',
241
+ aggregation: false,
242
+ storeId: window.magicDesign.storeId >= 0 ? window.magicDesign.storeId : ''
243
+ }, 'POST')];
244
+
245
+ case 1:
246
+ res = _a.sent();
247
+ list = res.pageInfo.list;
248
+ this.setState({
249
+ list: list
250
+ });
251
+
252
+ if (!(0, _coreUtil.isDesignMode)()) {
253
+ (0, _storeUtil.setMagicStore)("merchantSales_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, list);
254
+ }
255
+
256
+ return [2
257
+ /*return*/
258
+ ];
259
+ }
260
+ });
261
+ });
262
+ };
263
+
264
+ return _this;
265
+ }
266
+
267
+ MerchantSalesMobile.prototype.componentDidMount = function () {
268
+ this.getData();
269
+ };
270
+
271
+ MerchantSalesMobile.prototype.render = function () {
272
+ var panelProps = this.props.panelProps;
273
+ var list = this.state.list;
274
+
275
+ var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
276
+
277
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
278
+ className: "monpay-merchant-sales-mobile"
279
+ }, panelProps.title.headerImage.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
280
+ className: "headerImg",
281
+ data: panelProps.title.headerImage
282
+ }), /*#__PURE__*/_react["default"].createElement("div", {
283
+ className: "merchant-sales-list"
284
+ }, _list.map(function (item) {
285
+ return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
286
+ key: item.productId,
287
+ data: item,
288
+ onItemClick: function onItemClick() {
289
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
290
+ }
291
+ });
292
+ }))));
293
+ };
294
+
295
+ MerchantSalesMobile.defaultProps = {
296
+ panelProps: {}
297
+ };
298
+ return MerchantSalesMobile;
299
+ }(_react["default"].Component);
300
+
301
+ var _default = MerchantSalesMobile;
302
+ exports["default"] = _default;
@@ -0,0 +1,14 @@
1
+ .monpay-merchant-sales-mobile {
2
+ padding: 0.4rem;
3
+ }
4
+ .monpay-merchant-sales-mobile .headerImg {
5
+ display: block;
6
+ margin-bottom: 0.4rem;
7
+ }
8
+ .monpay-merchant-sales-mobile .merchant-sales-list {
9
+ margin-top: 0.32rem;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ flex-wrap: wrap;
14
+ }