@fonixtree/magic-design 0.1.78 → 0.1.80

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 (317) hide show
  1. package/es/assets/fonts/Trueno-Light.otf +0 -0
  2. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  3. package/es/assets/fonts/TruenoBd.otf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.css +31 -3
  5. package/es/assets/fonts/magic-box-iconfont.css.bak +31 -3
  6. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  7. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  8. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  9. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  10. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  11. package/es/assets/images/base64/index.js +36 -2
  12. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  13. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  14. package/es/assets/less/cylon-antd.less +7246 -1686
  15. package/es/assets/less/font.less +22 -0
  16. package/es/common/AffiliateProductModal/index.js +582 -0
  17. package/es/common/AffiliateProductModal/index.less +146 -0
  18. package/es/common/CardCarousel/index.js +171 -0
  19. package/es/common/CardCarousel/index.less +28 -0
  20. package/es/common/GroupList/index.less +3 -0
  21. package/es/common/ImagePicker/index.js +1 -3
  22. package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
  23. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  24. package/es/common/LinkModal/index.js +14 -2
  25. package/es/common/MyModal/index.js +417 -0
  26. package/es/common/MyModal/index.less +74 -0
  27. package/es/common/ProductModal/index.js +2 -3
  28. package/es/common/ProductSource/index.js +42 -10
  29. package/es/common/UrlPicker/index.js +3 -1
  30. package/es/common/index.js +16 -0
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  32. package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  33. package/es/composite-comp/bol/components/Video/index.js +1 -2
  34. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  35. package/es/composite-comp/bol/components/Wallet/index.js +11 -15
  36. package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  37. package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  38. package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  39. package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  40. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  41. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  42. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  43. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  44. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  45. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  46. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  47. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  48. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  49. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  50. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  51. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  52. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  53. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  54. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  55. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  56. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  57. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  58. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  59. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  60. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  61. package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  62. package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  63. package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
  64. package/es/composite-comp/common/components/ProductItem/index.js +25 -17
  65. package/es/composite-comp/common/components/ProductItem/index.less +17 -8
  66. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  67. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  68. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  69. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  70. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  71. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  72. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  73. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  74. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  75. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  76. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  77. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  78. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  79. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  80. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  81. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  82. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  83. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  84. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  85. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  86. package/es/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  87. package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  88. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  89. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  90. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  91. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  92. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  93. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  94. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  95. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  96. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  97. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  98. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  99. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  100. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  101. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  102. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  103. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  104. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  105. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  106. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  107. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  108. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  109. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  110. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  111. package/es/constants/component-types.js +27 -3
  112. package/es/constants/index.js +26 -1
  113. package/es/constants/layout.js +48 -1
  114. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  115. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  116. package/es/core/Designer/ChatRobot/index.js +36 -14
  117. package/es/core/Designer/ChatRobot/index.less +69 -28
  118. package/es/core/Designer/ConfigPanel/index.js +8 -3
  119. package/es/core/Designer/History/index.js +2 -2
  120. package/es/core/Designer/PageCompList/index.js +8 -5
  121. package/es/core/Designer/QuickMenuBar/index.js +5 -3
  122. package/es/core/Designer/QuickMenuBar/index.less +4 -0
  123. package/es/core/Designer/RenderHtml/index.js +18 -15
  124. package/es/core/Designer/RenderHtml/index.less +1 -1
  125. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  126. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  127. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  128. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  129. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  130. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  131. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  132. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  133. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  134. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  135. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  136. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  137. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  138. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  139. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  140. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  141. package/es/core/Designer/ToolBarModal/index.js +68 -22
  142. package/es/core/Designer/ToolBarModal/index.less +3 -2
  143. package/es/core/Designer/index.js +12 -1
  144. package/es/core/Renderer/index.js +55 -8
  145. package/es/decorator/compositeDecorator.js +23 -0
  146. package/es/locale/en/en.json +6 -1
  147. package/es/locale/es/es.json +6 -1
  148. package/es/locale/id/id.json +6 -1
  149. package/es/meta-comp/components/Image/index.js +31 -25
  150. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  151. package/es/meta-comp/components/Text/index.js +20 -1
  152. package/es/meta-comp/components/Text/index.less +8 -0
  153. package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  154. package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
  155. package/es/mobx/Frame.js +17 -2
  156. package/es/utils/businessUtil.js +17 -6
  157. package/es/utils/commonUtil.js +54 -4
  158. package/es/utils/currencyUtil.js +9 -2
  159. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  160. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  161. package/lib/assets/fonts/TruenoBd.otf +0 -0
  162. package/lib/assets/fonts/magic-box-iconfont.css +31 -3
  163. package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -3
  164. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  165. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  166. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  167. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  168. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  169. package/lib/assets/images/base64/index.js +36 -2
  170. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  171. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  172. package/lib/assets/less/cylon-antd.less +7246 -1686
  173. package/lib/assets/less/font.less +22 -0
  174. package/lib/common/AffiliateProductModal/index.js +582 -0
  175. package/lib/common/AffiliateProductModal/index.less +146 -0
  176. package/lib/common/CardCarousel/index.js +171 -0
  177. package/lib/common/CardCarousel/index.less +28 -0
  178. package/lib/common/GroupList/index.less +3 -0
  179. package/lib/common/ImagePicker/index.js +1 -3
  180. package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
  181. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  182. package/lib/common/LinkModal/index.js +14 -2
  183. package/lib/common/MyModal/index.js +417 -0
  184. package/lib/common/MyModal/index.less +74 -0
  185. package/lib/common/ProductModal/index.js +2 -3
  186. package/lib/common/ProductSource/index.js +42 -10
  187. package/lib/common/UrlPicker/index.js +3 -1
  188. package/lib/common/index.js +16 -0
  189. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  190. package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  191. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  192. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  193. package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
  194. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  195. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  196. package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  197. package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  198. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  199. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  200. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  201. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  202. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  203. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  204. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  205. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  206. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  207. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  208. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  209. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  210. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  211. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  212. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  213. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  214. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  215. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  216. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  217. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  218. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  219. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  220. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  221. package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
  222. package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
  223. package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
  224. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  225. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  226. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  227. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  228. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  229. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  230. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  231. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  232. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  233. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  234. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  235. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  236. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  237. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  238. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  239. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  240. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  241. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  242. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  243. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  244. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  245. package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  246. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  247. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  248. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  249. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  250. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  251. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  252. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  253. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  254. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  255. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  256. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  257. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  258. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  259. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  260. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  261. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  262. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  263. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  264. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  265. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  266. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  267. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  268. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  269. package/lib/constants/component-types.js +27 -3
  270. package/lib/constants/index.js +26 -1
  271. package/lib/constants/layout.js +48 -1
  272. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  273. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  274. package/lib/core/Designer/ChatRobot/index.js +36 -14
  275. package/lib/core/Designer/ChatRobot/index.less +69 -28
  276. package/lib/core/Designer/ConfigPanel/index.js +8 -3
  277. package/lib/core/Designer/History/index.js +2 -2
  278. package/lib/core/Designer/PageCompList/index.js +8 -5
  279. package/lib/core/Designer/QuickMenuBar/index.js +5 -3
  280. package/lib/core/Designer/QuickMenuBar/index.less +4 -0
  281. package/lib/core/Designer/RenderHtml/index.js +18 -15
  282. package/lib/core/Designer/RenderHtml/index.less +1 -1
  283. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  284. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  285. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  286. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  287. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  288. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  289. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  290. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  291. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  292. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  293. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  294. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  295. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  296. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  297. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  298. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  299. package/lib/core/Designer/ToolBarModal/index.js +68 -22
  300. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  301. package/lib/core/Designer/index.js +12 -1
  302. package/lib/core/Renderer/index.js +55 -8
  303. package/lib/decorator/compositeDecorator.js +23 -0
  304. package/lib/locale/en/en.json +6 -1
  305. package/lib/locale/es/es.json +6 -1
  306. package/lib/locale/id/id.json +6 -1
  307. package/lib/meta-comp/components/Image/index.js +31 -25
  308. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  309. package/lib/meta-comp/components/Text/index.js +20 -1
  310. package/lib/meta-comp/components/Text/index.less +8 -0
  311. package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  312. package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
  313. package/lib/mobx/Frame.js +17 -2
  314. package/lib/utils/businessUtil.js +17 -6
  315. package/lib/utils/commonUtil.js +54 -4
  316. package/lib/utils/currencyUtil.js +9 -2
  317. package/package.json +1 -1
@@ -0,0 +1,206 @@
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
+ require("./index.less");
13
+
14
+ var _h5DefImg = _interopRequireDefault(require("../../../../../meta-comp/components/Image/image/h5DefImg.png"));
15
+
16
+ var _pcDefImg = _interopRequireDefault(require("../../../../../meta-comp/components/Image/image/pcDefImg.png"));
17
+
18
+ var _coreUtil = require("../../../../../utils/coreUtil");
19
+
20
+ var _decorator = require("../../../../../decorator");
21
+
22
+ var _commonUtil = require("../../../../../utils/commonUtil");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+
54
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
55
+ var c = arguments.length,
56
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
57
+ d;
58
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
59
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
+ }
61
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
62
+ };
63
+
64
+ var MetaImage =
65
+ /** @class */
66
+ function (_super) {
67
+ __extends(MetaImage, _super);
68
+
69
+ function MetaImage() {
70
+ var _this = _super !== null && _super.apply(this, arguments) || this;
71
+
72
+ _this.imgRef = /*#__PURE__*/_react["default"].createRef();
73
+ _this.state = {
74
+ // 当仅作为一个图片时,鼠标移上去,hover状态
75
+ hoverImgSrc: false
76
+ };
77
+
78
+ _this.getStyle = function () {
79
+ var _a, _b;
80
+
81
+ var _c = _this.props,
82
+ data = _c.data,
83
+ hoverState = _c.hoverState,
84
+ maxHeight = _c.maxHeight,
85
+ maxWidth = _c.maxWidth,
86
+ minHeight = _c.minHeight,
87
+ minWidth = _c.minWidth,
88
+ limitWidthHeight = _c.limitWidthHeight,
89
+ scale = _c.scale;
90
+ var hoverImgSrc = _this.state.hoverImgSrc;
91
+ var obj = {};
92
+
93
+ if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && ((_b = data === null || data === void 0 ? void 0 : data.hover) === null || _b === void 0 ? void 0 : _b.backgroundType) === 'enlarge' && (hoverState || hoverImgSrc)) {
94
+ // return { transform: `scale(${data.hover.magnification})` };
95
+ obj.transform = "scale(" + data.hover.magnification + ")";
96
+ obj.zIndex = '1';
97
+ }
98
+
99
+ if (maxHeight) {
100
+ obj.maxHeight = maxHeight;
101
+ }
102
+
103
+ if (maxWidth || maxWidth === 0) {
104
+ obj.maxWidth = maxWidth;
105
+ }
106
+
107
+ if (minHeight) {
108
+ obj.minHeight = minHeight;
109
+ }
110
+
111
+ if (minWidth) {
112
+ obj.minWidth = minWidth;
113
+ }
114
+
115
+ if (limitWidthHeight) {
116
+ if ((0, _coreUtil.isPc)()) {
117
+ if (data.content.pcImgWidth) obj.width = data.content.pcImgWidth * scale;
118
+
119
+ if (data.content.pcImgWidth > data.content.pcImgHeight) {
120
+ obj.height = 'auto';
121
+ } else if (data.content.pcImgHeight) obj.height = data.content.pcImgHeight * scale;
122
+ } else {
123
+ if (data.content.h5ImgWidth) obj.width = data.content.h5ImgWidth * scale; // if (data.content.h5ImgHeight) obj.height = data.content.h5ImgHeight * scale;
124
+
125
+ if (data.content.h5ImgWidth > data.content.h5ImgHeight || data.content.h5ImgHeight > maxHeight) {
126
+ obj.height = 'auto';
127
+ } else if (data.content.h5ImgHeight) obj.height = data.content.h5ImgHeight * scale;
128
+ }
129
+ }
130
+
131
+ return obj;
132
+ };
133
+
134
+ _this.mouseEnterImg = function () {
135
+ var _a;
136
+
137
+ var data = _this.props.data;
138
+
139
+ if ((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) {
140
+ _this.setState({
141
+ hoverImgSrc: true
142
+ });
143
+ }
144
+ };
145
+
146
+ _this.mouseLeaveImg = function () {
147
+ var _a;
148
+
149
+ var data = _this.props.data;
150
+
151
+ if ((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) {
152
+ _this.setState({
153
+ hoverImgSrc: false
154
+ });
155
+ }
156
+ };
157
+
158
+ return _this;
159
+ }
160
+
161
+ MetaImage.prototype.render = function () {
162
+ var _a, _b, _c, _d;
163
+
164
+ var _e = this.props,
165
+ data = _e.data,
166
+ hoverState = _e.hoverState;
167
+ var hoverImgSrc = this.state.hoverImgSrc;
168
+ var srcImg = (0, _coreUtil.isPc)() ? (_a = data.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = data.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc;
169
+
170
+ if (((_c = data === null || data === void 0 ? void 0 : data.hover) === null || _c === void 0 ? void 0 : _c.open) && ((_d = data === null || data === void 0 ? void 0 : data.hover) === null || _d === void 0 ? void 0 : _d.backgroundType) === 'new' && (hoverState || hoverImgSrc)) {
171
+ srcImg = (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl;
172
+ }
173
+
174
+ if (!srcImg) {
175
+ srcImg = (0, _coreUtil.isPc)() ? _pcDefImg["default"] : _h5DefImg["default"];
176
+ }
177
+
178
+ return /*#__PURE__*/_react["default"].createElement("div", {
179
+ className: (0, _classnames["default"])('menu-meta-image'),
180
+ onClick: function onClick() {
181
+ (0, _coreUtil.clickUrl)(data.content.clickUrl);
182
+ }
183
+ }, srcImg && /*#__PURE__*/_react["default"].createElement("img", {
184
+ ref: this.imgRef,
185
+ onMouseEnter: this.mouseEnterImg,
186
+ onMouseLeave: this.mouseLeaveImg,
187
+ src: srcImg,
188
+ style: (0, _commonUtil.pxToRem)(this.getStyle())
189
+ }));
190
+ };
191
+
192
+ MetaImage.defaultProps = {
193
+ data: {
194
+ content: {},
195
+ hover: {}
196
+ },
197
+ hoverState: false,
198
+ limitWidthHeight: false,
199
+ scale: 1
200
+ };
201
+ MetaImage = __decorate([_decorator.metaDecorator], MetaImage);
202
+ return MetaImage;
203
+ }(_react["default"].Component);
204
+
205
+ var _default = MetaImage;
206
+ exports["default"] = _default;
@@ -0,0 +1,25 @@
1
+ .menu-meta-image {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ display: flex;
6
+ justify-content: center;
7
+ // overflow: hidden;
8
+ &>img {
9
+ width: 100%;
10
+ height: 100%;
11
+ // object-fit: contain;
12
+ transition: all .2s linear;
13
+ vertical-align: initial;
14
+ max-width: 100%;
15
+ object-fit: contain;
16
+ }
17
+
18
+ &.backgroundImg {
19
+ &>img {
20
+ // object-fit: cover;
21
+ // width: auto;
22
+ max-width: none;
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.groupSourceMenuJSON = exports.getDefaultJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var _base = require("../../../../assets/images/base64");
11
+
12
+ var defaultMenuName = [{
13
+ name: 'Home',
14
+ icon: _base.menuHomeIcon,
15
+ selectedIcon: _base.menuHomeSelectedIcon,
16
+ clickUrl: {
17
+ value: '/',
18
+ name: 'Home',
19
+ type: 'FunctionPage'
20
+ }
21
+ }, {
22
+ name: 'Category',
23
+ icon: _base.menuCategoryIcon,
24
+ selectedIcon: _base.menuCategorySelectedIcon,
25
+ clickUrl: {
26
+ value: '/main/category',
27
+ name: 'Category',
28
+ type: 'FunctionPage'
29
+ }
30
+ }, {
31
+ name: 'Community',
32
+ icon: _base.menuCommunityIcon,
33
+ selectedIcon: _base.menuCommunitySelectedIcon,
34
+ clickUrl: {
35
+ value: '/main/community',
36
+ name: 'Community',
37
+ type: 'FunctionPage'
38
+ }
39
+ }, {
40
+ name: 'Cart',
41
+ icon: _base.menuCartIcon,
42
+ selectedIcon: _base.menuCartSelectedIcon,
43
+ clickUrl: {
44
+ value: '/main/cart',
45
+ name: 'Cart',
46
+ remark: '/h5/carts/num'
47
+ }
48
+ }, {
49
+ name: 'Account',
50
+ icon: _base.menuAccountIcon,
51
+ selectedIcon: _base.menuAccountSelectedIcon,
52
+ clickUrl: {
53
+ value: '/main/account',
54
+ name: 'Account',
55
+ type: 'FunctionPage'
56
+ }
57
+ }];
58
+
59
+ var groupSourceMenuJSON = function groupSourceMenuJSON(group) {
60
+ if (!group) group = defaultMenuName[0];
61
+ var itemId = (0, _uuid.v4)();
62
+ return {
63
+ id: itemId,
64
+ type: group.name,
65
+ image: {
66
+ parentId: itemId,
67
+ id: (0, _uuid.v4)(),
68
+ open: true,
69
+ type: 'IMAGE',
70
+ content: {
71
+ h5Name: 'name2',
72
+ pcName: 'name2',
73
+ h5ImgSrc: group.icon,
74
+ pcImgSrc: '',
75
+ clickUrl: group.clickUrl
76
+ },
77
+ hover: {
78
+ open: true,
79
+ backgroundType: 'new',
80
+ magnification: 1.5,
81
+ pcImgHoverUrl: '',
82
+ h5ImgHoverUrl: group.selectedIcon
83
+ }
84
+ }
85
+ };
86
+ };
87
+
88
+ exports.groupSourceMenuJSON = groupSourceMenuJSON;
89
+
90
+ var getDefaultJSON = function getDefaultJSON() {
91
+ var groupId = (0, _uuid.v4)();
92
+ return {
93
+ id: groupId,
94
+ type: 'MENU_NAVIGATION',
95
+ groupSource: defaultMenuName.map(function (group) {
96
+ return groupSourceMenuJSON(group);
97
+ }),
98
+ background: {
99
+ opacity: 100,
100
+ color: '#fff',
101
+ image: '',
102
+ bgType: 'color'
103
+ }
104
+ };
105
+ };
106
+
107
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,84 @@
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 _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ 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); }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
+ var c = arguments.length,
52
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
+ d;
54
+ 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--) {
55
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
+ }
57
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
58
+ };
59
+
60
+ var MenuNavigation =
61
+ /** @class */
62
+ function (_super) {
63
+ __extends(MenuNavigation, _super);
64
+
65
+ function MenuNavigation() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+
69
+ MenuNavigation.prototype.render = function () {
70
+ var nodeData = this.props.nodeData;
71
+ return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
+ data: nodeData
73
+ }));
74
+ };
75
+
76
+ MenuNavigation.defaultProps = {};
77
+ MenuNavigation.type = 'MENU_NAVIGATION';
78
+ MenuNavigation.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
+ MenuNavigation = __decorate([_compositeDecorator["default"]], MenuNavigation);
80
+ return MenuNavigation;
81
+ }(_react.Component);
82
+
83
+ var _default = MenuNavigation;
84
+ exports["default"] = _default;
@@ -0,0 +1,87 @@
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 _MenuNavMetaImage = _interopRequireDefault(require("../MenuNavMetaImage"));
11
+
12
+ var _commonUtil = require("../../../../../utils/commonUtil");
13
+
14
+ require("./index.less");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ var __extends = void 0 && (void 0).__extends || function () {
19
+ var _extendStatics = function extendStatics(d, b) {
20
+ _extendStatics = Object.setPrototypeOf || {
21
+ __proto__: []
22
+ } instanceof Array && function (d, b) {
23
+ d.__proto__ = b;
24
+ } || function (d, b) {
25
+ for (var p in b) {
26
+ if (b.hasOwnProperty(p)) d[p] = b[p];
27
+ }
28
+ };
29
+
30
+ return _extendStatics(d, b);
31
+ };
32
+
33
+ return function (d, b) {
34
+ _extendStatics(d, b);
35
+
36
+ function __() {
37
+ this.constructor = d;
38
+ }
39
+
40
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
+ };
42
+ }();
43
+
44
+ var MenuNavigationMobile =
45
+ /** @class */
46
+ function (_super) {
47
+ __extends(MenuNavigationMobile, _super);
48
+
49
+ function MenuNavigationMobile() {
50
+ var _this = _super !== null && _super.apply(this, arguments) || this;
51
+
52
+ _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
53
+ _this.state = {};
54
+ return _this;
55
+ }
56
+
57
+ MenuNavigationMobile.prototype.render = function () {
58
+ var _this = this;
59
+
60
+ var data = this.props.data;
61
+ var GAData = (0, _commonUtil.getGAData)(data);
62
+ return /*#__PURE__*/_react["default"].createElement("div", {
63
+ className: "m-menu-navigation"
64
+ }, data.groupSource.map(function (group) {
65
+ return /*#__PURE__*/_react["default"].createElement("div", {
66
+ key: group.id,
67
+ className: "menu-item",
68
+ onClick: function onClick() {
69
+ return _this.clickJump(group.title.text);
70
+ }
71
+ }, group.image.open && /*#__PURE__*/_react["default"].createElement(_MenuNavMetaImage["default"], {
72
+ data: group.image,
73
+ GAData: GAData
74
+ }));
75
+ }));
76
+ };
77
+
78
+ MenuNavigationMobile.defaultProps = {
79
+ data: {
80
+ groupSource: []
81
+ }
82
+ };
83
+ return MenuNavigationMobile;
84
+ }(_react["default"].Component);
85
+
86
+ var _default = MenuNavigationMobile;
87
+ exports["default"] = _default;
@@ -0,0 +1,8 @@
1
+ .m-menu-navigation {
2
+ width: 100%;
3
+ display: flex;
4
+ align-items: center;
5
+ }
6
+ .m-menu-navigation .menu-item {
7
+ flex: 1;
8
+ }
@@ -262,7 +262,7 @@ function (_super) {
262
262
  _this.preContent = '';
263
263
  _this.preSpacing = '';
264
264
  _this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
265
- return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
265
+ return (0, _storeUtil.getMagicStore)("recommend_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
266
266
  }, {});
267
267
  _this.state = __assign({
268
268
  contentWidth: 0,
@@ -308,7 +308,7 @@ function (_super) {
308
308
 
309
309
  _this.getProductList = function (index) {
310
310
  return __awaiter(_this, void 0, void 0, function () {
311
- var panelProps, groupSource, recommendId, cache, _a, _b, sourceType, _c, prodIds, _d, intelligentType, _e, intelligentValue, _f, maxProdNum, newData, res, res, e_1, _cache;
311
+ var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, intelligentType, _e, intelligentValue, _f, maxProdNum, newData, res, res, e_1, _cache;
312
312
 
313
313
  var _g, _h, _j;
314
314
 
@@ -320,9 +320,10 @@ function (_super) {
320
320
  panelProps = this.props.panelProps;
321
321
  groupSource = this.state.groupSource;
322
322
  recommendId = panelProps.id;
323
+ pageId = window.magicDesign.pageId || '';
323
324
 
324
325
  if (!(0, _coreUtil.isDesignMode)()) {
325
- cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
326
+ cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
326
327
 
327
328
  if (cache) {
328
329
  if ("products" + index in cache) {
@@ -422,8 +423,8 @@ function (_super) {
422
423
 
423
424
  case 10:
424
425
  if (!(0, _coreUtil.isDesignMode)()) {
425
- _cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
426
- (0, _storeUtil.setMagicStore)("recommend_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
426
+ _cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
427
+ (0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
427
428
  }
428
429
 
429
430
  this.setState((_j = {}, _j["products" + index] = newData, _j), function () {
@@ -628,8 +629,8 @@ function (_super) {
628
629
  }, products.map(function (item) {
629
630
  return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
630
631
  key: item.productId,
631
- data: item,
632
- fixHeight: layout === 'layout3',
632
+ data: item // fixHeight={layout === 'layout3'}
633
+ ,
633
634
  imgHeight: imgHeight,
634
635
  imgWidth: imgWidth,
635
636
  layout: layout === 'layout2' ? 'horizontal' : 'vertical' // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
@@ -662,8 +663,8 @@ function (_super) {
662
663
  className: "productCard"
663
664
  }, /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
664
665
  key: "scroll_" + item.productId,
665
- data: item,
666
- fixHeight: true,
666
+ data: item // fixHeight
667
+ ,
667
668
  imgHeight: imgHeight,
668
669
  imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
669
670
  ,
@@ -13,9 +13,9 @@ require("./index.less");
13
13
 
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
- var _lodash = require("lodash");
16
+ var _debounce = _interopRequireDefault(require("lodash/debounce"));
17
17
 
18
- var _lodash2 = _interopRequireDefault(require("lodash.throttle"));
18
+ var _lodash = _interopRequireDefault(require("lodash.throttle"));
19
19
 
20
20
  var _mobx = require("../../../../../mobx");
21
21
 
@@ -245,7 +245,7 @@ function (_super) {
245
245
  _this.preContent = '';
246
246
  _this.preSpacing = '';
247
247
  _this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
248
- return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
248
+ return (0, _storeUtil.getMagicStore)("recommend_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
249
249
  }, {});
250
250
  _this.scrollRef = /*#__PURE__*/_react["default"].createRef();
251
251
  _this.state = __assign({
@@ -303,7 +303,7 @@ function (_super) {
303
303
 
304
304
  _this.getProductList = function (index) {
305
305
  return __awaiter(_this, void 0, void 0, function () {
306
- var panelProps, groupSource, recommendId, cache, _a, _b, sourceType, _c, prodIds, _d, intelligentType, _e, intelligentValue, _f, maxProdNum, newData, res, res, e_1, _cache;
306
+ var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, intelligentType, _e, intelligentValue, _f, maxProdNum, newData, res, res, e_1, _cache;
307
307
 
308
308
  var _g, _h, _j;
309
309
 
@@ -315,9 +315,10 @@ function (_super) {
315
315
  panelProps = this.props.panelProps;
316
316
  groupSource = this.state.groupSource;
317
317
  recommendId = panelProps.id;
318
+ pageId = window.magicDesign.pageId || '';
318
319
 
319
320
  if (!(0, _coreUtil.isDesignMode)()) {
320
- cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
321
+ cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
321
322
 
322
323
  if (cache) {
323
324
  if ("products" + index in cache) {
@@ -417,8 +418,8 @@ function (_super) {
417
418
 
418
419
  case 10:
419
420
  if (!(0, _coreUtil.isDesignMode)()) {
420
- _cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
421
- (0, _storeUtil.setMagicStore)("recommend_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
421
+ _cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
422
+ (0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
422
423
  }
423
424
 
424
425
  this.setState((_j = {}, _j["products" + index] = newData, _j), function () {
@@ -479,7 +480,7 @@ function (_super) {
479
480
  if (scrollDom) {
480
481
  _this.setScrollDisabled(scrollDom);
481
482
 
482
- scrollDom.onscroll = (0, _lodash2["default"])(function () {
483
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
483
484
  _this.setScrollDisabled(scrollDom);
484
485
  }, 500);
485
486
  }
@@ -527,13 +528,13 @@ function (_super) {
527
528
  if (scrollDom) {
528
529
  _this.setScrollDisabled(scrollDom);
529
530
 
530
- scrollDom.onscroll = (0, _lodash2["default"])(function () {
531
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
531
532
  _this.setScrollDisabled(scrollDom);
532
533
  }, 500);
533
534
  }
534
535
  }, 0);
535
536
  this.listenWidth();
536
- window.addEventListener('resize', (0, _lodash.debounce)(this.listenWidth));
537
+ window.addEventListener('resize', (0, _debounce["default"])(this.listenWidth));
537
538
  };
538
539
 
539
540
  RecommendMobile.prototype.componentWillUnmount = function () {
@@ -589,7 +590,7 @@ function (_super) {
589
590
  if (scrollDom) {
590
591
  _this.setScrollDisabled(scrollDom);
591
592
 
592
- scrollDom.onscroll = (0, _lodash2["default"])(function () {
593
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
593
594
  _this.setScrollDisabled(scrollDom);
594
595
  }, 500);
595
596
  }
@@ -223,7 +223,7 @@ function (_super) {
223
223
  , 3];
224
224
 
225
225
  case 2:
226
- num = (localStorage.getItem('TEMP_CART') || []).length;
226
+ num = (JSON.parse(localStorage.getItem('TEMP_CART')) || []).length;
227
227
  _a.label = 3;
228
228
 
229
229
  case 3: