@fonixtree/magic-design 0.1.77 → 1.0.2-0.1

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 (345) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +23 -3
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +23 -3
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/images/layout-icon/imageTextLeft.svg +6 -0
  10. package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
  11. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  12. package/es/assets/less/modal.less +1 -1
  13. package/es/common/ColorPicker/index.js +4 -1
  14. package/es/common/Field/index.js +20 -3
  15. package/es/common/ImageLazy/index.js +172 -0
  16. package/es/common/ImageLazy/index.less +0 -0
  17. package/es/common/ImagePicker/index.js +50 -5
  18. package/es/common/ImagePicker/index.less +1 -0
  19. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  20. package/es/common/LinkModal/CatgTable/index.js +1 -1
  21. package/es/common/LinkModal/CouponTable/index.js +10 -2
  22. package/es/common/LinkModal/FilteredProductModal/index.js +12 -9
  23. package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
  24. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  25. package/es/common/LinkModal/index.js +1 -1
  26. package/es/common/ProductModal/index.js +25 -32
  27. package/es/common/Video/index.js +11 -3
  28. package/es/common/Video/index.less +11 -7
  29. package/es/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  30. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  31. package/es/composite-comp/bol/components/Carousel/index.js +27 -3
  32. package/es/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  33. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  34. package/es/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  35. package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  36. package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
  37. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  38. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  39. package/es/composite-comp/bol/components/ImageText/pc/index.js +97 -5
  40. package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  41. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  42. package/es/composite-comp/bol/components/Location/index.js +100 -0
  43. package/es/composite-comp/bol/components/Location/index.less +15 -0
  44. package/es/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  45. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  46. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  47. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  48. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  49. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  50. package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  51. package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  52. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  53. package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  54. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  55. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  56. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +121 -8
  57. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  58. package/es/composite-comp/common/components/ProductItem/index.js +4 -2
  59. package/es/composite-comp/common/components/ProductItem/index.less +9 -0
  60. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  61. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  62. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  63. package/es/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  64. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  65. package/es/composite-comp/dito/components/Recommend/pc/index.js +8 -7
  66. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  67. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  68. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  69. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  70. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  71. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +47 -38
  72. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -76
  73. package/es/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  74. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  75. package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  76. package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  77. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  78. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  79. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  80. package/es/constants/component-types.js +10 -2
  81. package/es/constants/index.js +10 -1
  82. package/es/constants/layout.js +21 -1
  83. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  84. package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
  85. package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
  86. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  87. package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  88. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  89. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  90. package/es/core/Designer/AiImageGenerator/index.js +364 -63
  91. package/es/core/Designer/AiImageGenerator/index.less +70 -46
  92. package/es/core/Designer/ChatRobot/index.js +51 -14
  93. package/es/core/Designer/ChatRobot/index.less +11 -0
  94. package/es/core/Designer/ConfigPanel/index.js +2 -1
  95. package/es/core/Designer/FonixtreeGpt/index.js +32 -171
  96. package/es/core/Designer/History/index.js +2 -2
  97. package/es/core/Designer/LeftTitle/index.js +1 -1
  98. package/es/core/Designer/PageCompList/index.js +5 -3
  99. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  100. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  101. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  102. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  103. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  104. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  105. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  106. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  107. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  108. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  109. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  110. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  111. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  112. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  113. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  114. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  115. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  116. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  117. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  118. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  119. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  120. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  121. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  122. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  123. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  124. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  125. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  126. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  127. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  128. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  129. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  130. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  131. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  132. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  133. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  134. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  135. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  136. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  137. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  138. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  139. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  140. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  141. package/es/core/Designer/ToolBarModal/index.js +366 -0
  142. package/es/core/Designer/ToolBarModal/index.less +32 -0
  143. package/es/core/Designer/index.js +30 -10
  144. package/es/decorator/index.js +38 -1
  145. package/es/decorator/lazyLoadDecorator.js +75 -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/Button/index.js +7 -0
  150. package/es/meta-comp/components/Image/index.js +19 -3
  151. package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
  152. package/es/meta-comp/components/Text/formats/fontStyle.js +58 -0
  153. package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
  154. package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  155. package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  156. package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  157. package/es/meta-comp/components/Text/index.js +110 -372
  158. package/es/meta-comp/components/Text/index.less +57 -0
  159. package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  160. package/es/meta-comp/config-panels/ImageConfig/index.js +3 -1
  161. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  162. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  163. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  164. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  165. package/es/meta-comp/config-panels/TextConfig/index.js +9 -30
  166. package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
  167. package/es/mobx/Frame.js +7 -1
  168. package/es/utils/androidUtil.js +6 -0
  169. package/es/utils/businessUtil.js +3 -3
  170. package/es/utils/commonUtil.js +40 -10
  171. package/es/utils/coreUtil.js +15 -0
  172. package/es/utils/currencyUtil.js +29 -10
  173. package/lib/assets/fonts/.DS_Store +0 -0
  174. package/lib/assets/fonts/magic-box-iconfont.css +23 -3
  175. package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -3
  176. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  177. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  178. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  179. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  180. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  181. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  182. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  183. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  184. package/lib/assets/less/modal.less +1 -1
  185. package/lib/common/ColorPicker/index.js +4 -1
  186. package/lib/common/Field/index.js +20 -3
  187. package/lib/common/ImageLazy/index.js +172 -0
  188. package/lib/common/ImageLazy/index.less +0 -0
  189. package/lib/common/ImagePicker/index.js +50 -5
  190. package/lib/common/ImagePicker/index.less +1 -0
  191. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  192. package/lib/common/LinkModal/CatgTable/index.js +1 -1
  193. package/lib/common/LinkModal/CouponTable/index.js +10 -2
  194. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -9
  195. package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
  196. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  197. package/lib/common/LinkModal/index.js +1 -1
  198. package/lib/common/ProductModal/index.js +25 -32
  199. package/lib/common/Video/index.js +11 -3
  200. package/lib/common/Video/index.less +11 -7
  201. package/lib/composite-comp/bol/components/Banner/mobile/index.js +6 -0
  202. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  203. package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
  204. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
  205. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  206. package/lib/composite-comp/bol/components/Carousel/pc/index.js +4 -2
  207. package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  208. package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
  209. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  210. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  211. package/lib/composite-comp/bol/components/ImageText/pc/index.js +97 -5
  212. package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  213. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  214. package/lib/composite-comp/bol/components/Location/index.js +100 -0
  215. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  216. package/lib/composite-comp/bol/components/Video/defaultJSON.js +24 -0
  217. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  218. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  219. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  220. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  221. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  222. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  223. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  224. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  225. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  226. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  227. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  228. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +121 -8
  229. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
  230. package/lib/composite-comp/common/components/ProductItem/index.js +4 -2
  231. package/lib/composite-comp/common/components/ProductItem/index.less +9 -0
  232. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  233. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  234. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  235. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
  236. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  237. package/lib/composite-comp/dito/components/Recommend/pc/index.js +8 -7
  238. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  239. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  240. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  241. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  242. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
  243. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +47 -38
  244. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -76
  245. package/lib/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
  246. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  247. package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
  248. package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  249. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  250. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +4 -4
  251. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
  252. package/lib/constants/component-types.js +10 -2
  253. package/lib/constants/index.js +10 -1
  254. package/lib/constants/layout.js +21 -1
  255. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
  256. package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
  257. package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
  258. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  259. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  260. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +18 -8
  261. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
  262. package/lib/core/Designer/AiImageGenerator/index.js +364 -63
  263. package/lib/core/Designer/AiImageGenerator/index.less +70 -46
  264. package/lib/core/Designer/ChatRobot/index.js +51 -14
  265. package/lib/core/Designer/ChatRobot/index.less +11 -0
  266. package/lib/core/Designer/ConfigPanel/index.js +2 -1
  267. package/lib/core/Designer/FonixtreeGpt/index.js +32 -171
  268. package/lib/core/Designer/History/index.js +2 -2
  269. package/lib/core/Designer/LeftTitle/index.js +1 -1
  270. package/lib/core/Designer/PageCompList/index.js +5 -3
  271. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  272. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  273. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  274. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  275. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  276. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  277. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  278. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  279. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  280. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  281. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  282. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  283. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  284. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  285. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  286. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  287. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  288. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  289. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  290. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  291. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  292. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  293. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  294. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  295. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  296. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  297. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  298. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  299. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  300. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  301. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  302. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  303. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  304. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  305. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  306. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  307. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  308. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  309. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  310. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  311. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  312. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  313. package/lib/core/Designer/ToolBarModal/index.js +366 -0
  314. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  315. package/lib/core/Designer/index.js +30 -10
  316. package/lib/decorator/index.js +38 -1
  317. package/lib/decorator/lazyLoadDecorator.js +75 -0
  318. package/lib/locale/en/en.json +6 -1
  319. package/lib/locale/es/es.json +6 -1
  320. package/lib/locale/id/id.json +6 -1
  321. package/lib/meta-comp/components/Button/index.js +7 -0
  322. package/lib/meta-comp/components/Image/index.js +19 -3
  323. package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
  324. package/lib/meta-comp/components/Text/formats/fontStyle.js +58 -0
  325. package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
  326. package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  327. package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  328. package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  329. package/lib/meta-comp/components/Text/index.js +110 -372
  330. package/lib/meta-comp/components/Text/index.less +57 -0
  331. package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
  332. package/lib/meta-comp/config-panels/ImageConfig/index.js +3 -1
  333. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  334. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  335. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  336. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  337. package/lib/meta-comp/config-panels/TextConfig/index.js +9 -30
  338. package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
  339. package/lib/mobx/Frame.js +7 -1
  340. package/lib/utils/androidUtil.js +6 -0
  341. package/lib/utils/businessUtil.js +3 -3
  342. package/lib/utils/commonUtil.js +40 -10
  343. package/lib/utils/coreUtil.js +15 -0
  344. package/lib/utils/currencyUtil.js +29 -10
  345. package/package.json +5 -2
@@ -7,7 +7,9 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _lodash = require("lodash");
10
+ var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
11
+
12
+ var _pick = _interopRequireDefault(require("lodash/pick"));
11
13
 
12
14
  var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
13
15
 
@@ -81,13 +83,123 @@ function (_super) {
81
83
 
82
84
  _this.state = {};
83
85
 
86
+ _this.getImageRecommendSize = function (customize) {
87
+ var _a, _b, _c;
88
+
89
+ var obj = null;
90
+
91
+ if ((0, _coreUtil.isPc)()) {
92
+ if (((_a = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _a === void 0 ? void 0 : _a.pcLayout) == 'normal' || ((_b = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _b === void 0 ? void 0 : _b.pcLayout) == 'center') {
93
+ switch (customize === null || customize === void 0 ? void 0 : customize.pcRowNum) {
94
+ case 5:
95
+ obj = {
96
+ width: 119,
97
+ height: 90
98
+ };
99
+ break;
100
+
101
+ case 4:
102
+ obj = {
103
+ width: 150,
104
+ height: 112
105
+ };
106
+ break;
107
+
108
+ case 3:
109
+ obj = {
110
+ width: 205,
111
+ height: 154
112
+ };
113
+ break;
114
+
115
+ case 2:
116
+ obj = {
117
+ width: 314,
118
+ height: 236
119
+ };
120
+ break;
121
+
122
+ case 1:
123
+ obj = {
124
+ width: 640,
125
+ height: 480
126
+ };
127
+ break;
128
+ }
129
+ } else {
130
+ obj = {
131
+ width: 65,
132
+ height: 65
133
+ };
134
+ }
135
+ } else {
136
+ switch ((_c = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _c === void 0 ? void 0 : _c.h5Layout) {
137
+ case 'normal2':
138
+ obj = {
139
+ width: 190,
140
+ height: 142
141
+ };
142
+ break;
143
+
144
+ case 'normal3':
145
+ {
146
+ switch (customize === null || customize === void 0 ? void 0 : customize.rowNum) {
147
+ case 4:
148
+ obj = {
149
+ width: 61,
150
+ height: 61
151
+ };
152
+ break;
153
+
154
+ case 3:
155
+ obj = {
156
+ width: 91,
157
+ height: 91
158
+ };
159
+ break;
160
+
161
+ case 2:
162
+ obj = {
163
+ width: 150,
164
+ height: 150
165
+ };
166
+ break;
167
+
168
+ case 1:
169
+ obj = {
170
+ width: 327,
171
+ height: 327
172
+ };
173
+ break;
174
+ }
175
+
176
+ break;
177
+ }
178
+
179
+ default:
180
+ obj = {
181
+ width: 38,
182
+ height: 38
183
+ };
184
+ break;
185
+ }
186
+ }
187
+
188
+ return obj;
189
+ };
190
+
84
191
  _this.getContentPanel = function (data, needHover) {
192
+ var parentNode = _this.props.parentNode;
193
+
194
+ var size = _this.getImageRecommendSize(parentNode.customize);
195
+
85
196
  var source = [{
86
197
  key: 'imageTextSecondContent1',
87
198
  name: (0, _locale.i18n)('IMAGE'),
88
199
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
89
200
  data: data.image,
90
- needHover: needHover
201
+ needHover: needHover,
202
+ recommendImgSize: size
91
203
  }),
92
204
  metaOption: data.image
93
205
  }, {
@@ -142,15 +254,15 @@ function (_super) {
142
254
 
143
255
  if (panelProps.hover.open) {
144
256
  var tempObj = {};
145
- tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.button, ['buttonBorder', 'buttonIcon', 'buttonText', 'spacing', 'content', 'open', 'text']));
257
+ tempObj = (0, _cloneDeep["default"])((0, _pick["default"])(panelProps.button, ['buttonBorder', 'buttonIcon', 'buttonText', 'spacing', 'content', 'open', 'text']));
146
258
  panelProps.hover.button = __assign(__assign({}, panelProps.hover.button), tempObj);
147
- tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.secondButton, ['buttonBorder', 'buttonIcon', 'buttonText', 'spacing', 'content', 'open', 'text']));
259
+ tempObj = (0, _cloneDeep["default"])((0, _pick["default"])(panelProps.secondButton, ['buttonBorder', 'buttonIcon', 'buttonText', 'spacing', 'content', 'open', 'text']));
148
260
  panelProps.hover.secondButton = __assign(__assign({}, panelProps.hover.secondButton), tempObj);
149
- tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.image, ['content', 'open']));
261
+ tempObj = (0, _cloneDeep["default"])((0, _pick["default"])(panelProps.image, ['content', 'open']));
150
262
  panelProps.hover.image = __assign(__assign({}, panelProps.hover.image), tempObj);
151
- tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.text, ['content', 'open', 'spacing', 'specialContent', 'text', 'underline', 'vertical']));
263
+ tempObj = (0, _cloneDeep["default"])((0, _pick["default"])(panelProps.text, ['content', 'open', 'spacing', 'specialContent', 'text', 'underline', 'vertical']));
152
264
  panelProps.hover.text = __assign(__assign({}, panelProps.hover.text), tempObj);
153
- tempObj = (0, _lodash.cloneDeep)((0, _lodash.pick)(panelProps.title, ['content', 'open', 'spacing', 'specialContent', 'text', 'underline', 'vertical']));
265
+ tempObj = (0, _cloneDeep["default"])((0, _pick["default"])(panelProps.title, ['content', 'open', 'spacing', 'specialContent', 'text', 'underline', 'vertical']));
154
266
  panelProps.hover.title = __assign(__assign({}, panelProps.hover.title), tempObj);
155
267
  panelProps.hover.background = __assign(__assign({}, panelProps.hover.background), panelProps.background); // console.log(buttonTemp.buttonBorder == panelProps.button.buttonBorder);
156
268
  }
@@ -182,7 +294,8 @@ function (_super) {
182
294
  };
183
295
 
184
296
  ImageTextSecondConfig.defaultProps = {
185
- panelProps: {}
297
+ panelProps: {},
298
+ parentNode: {}
186
299
  };
187
300
  return ImageTextSecondConfig;
188
301
  }(_react["default"].Component);
@@ -75,8 +75,58 @@ function (_super) {
75
75
  _this.setState({});
76
76
  };
77
77
 
78
+ _this.getImageRecommendSize = function (customize) {
79
+ var _a;
80
+
81
+ var obj = null;
82
+
83
+ if ((0, _coreUtil.isPc)()) {
84
+ switch ((_a = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _a === void 0 ? void 0 : _a.pcLayout) {
85
+ case 'layout1':
86
+ obj = {
87
+ width: 1280,
88
+ height: 600
89
+ };
90
+ break;
91
+
92
+ case 'layout2':
93
+ obj = {
94
+ width: 640,
95
+ height: 600
96
+ };
97
+ break;
98
+
99
+ case 'layout3':
100
+ obj = {
101
+ width: 410,
102
+ height: 300
103
+ };
104
+ break;
105
+
106
+ default:
107
+ obj = {
108
+ width: 440,
109
+ height: 272
110
+ };
111
+ break;
112
+ }
113
+ } else {
114
+ obj = {
115
+ width: 343,
116
+ height: 212
117
+ };
118
+ }
119
+
120
+ return obj;
121
+ };
122
+
78
123
  _this.getContentPanel = function () {
79
- var panelProps = _this.props.panelProps;
124
+ var _a = _this.props,
125
+ panelProps = _a.panelProps,
126
+ parentNode = _a.parentNode;
127
+
128
+ var size = _this.getImageRecommendSize(parentNode.customize);
129
+
80
130
  var source = [{
81
131
  key: '1',
82
132
  name: 'Overlay',
@@ -84,7 +134,8 @@ function (_super) {
84
134
  data: panelProps.overilay,
85
135
  needClickArea: false,
86
136
  needHover: false,
87
- needURL: false
137
+ needURL: false,
138
+ recommendImgSize: size
88
139
  }),
89
140
  metaOption: panelProps.overilay
90
141
  }, {
@@ -133,7 +133,7 @@ function (_super) {
133
133
  }
134
134
 
135
135
  var pricePrefix = (0, _commonUtil.ensure)(function () {
136
- return window.ecommerce.prefix;
136
+ return window.systemParams.prefix;
137
137
  }, 'Rp');
138
138
 
139
139
  var _price = pricePrefix + " " + integerPart + " " + (decimalPart ? '.' + decimalPart : '');
@@ -226,7 +226,9 @@ function (_super) {
226
226
  style: {
227
227
  width: salePercent + "%"
228
228
  }
229
- })))));
229
+ }))), !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
230
+ className: "sold-count"
231
+ }, (0, _commonUtil.convertCount)(data.salesCnt), " sold")));
230
232
  };
231
233
 
232
234
  ProductItem.defaultProps = {
@@ -5,6 +5,15 @@
5
5
  border: 1px solid #D2D9E5;
6
6
  width: 142px;
7
7
  cursor: pointer;
8
+ position: relative;
9
+
10
+ .sold-count {
11
+ color: #7b7b7b;
12
+ font-size: 12px;
13
+ position: absolute;
14
+ right: 8px;
15
+ bottom: 8px;
16
+ }
8
17
 
9
18
  .img-wrap {
10
19
  position: relative;
@@ -1,86 +1,100 @@
1
1
  .m-flash-deal-mobile {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- padding: 0.32rem 0.32rem 0.56rem 0.32rem;
5
- }
6
- .m-flash-deal-mobile .flash-deal-title {
7
- display: flex;
8
- justify-content: space-between;
9
- align-items: center;
10
- }
11
- .m-flash-deal-mobile .flash-deal-title .left {
12
- display: flex;
13
- align-items: center;
14
- }
15
- .m-flash-deal-mobile .flash-deal-title .left .icon {
16
- height: 0.36rem;
17
- margin-right: 0.2rem;
18
- }
19
- .m-flash-deal-mobile .flash-deal-title .left .title {
20
- font-family: 'Montserrat';
21
- font-style: normal;
22
- font-weight: 600;
23
- font-size: 0.28rem;
24
- line-height: 0.36rem;
25
- color: #2C2C2C;
26
- margin-right: 0.2rem;
27
- }
28
- .m-flash-deal-mobile .flash-deal-title .left .sub-title {
29
- font-family: 'Montserrat';
30
- font-style: normal;
31
- font-weight: 600;
32
- font-size: 0.2rem;
33
- line-height: 0.36rem;
34
- color: #2C2C2C;
35
- margin-right: 0.12rem;
36
- align-self: end;
37
- }
38
- .m-flash-deal-mobile .flash-deal-title .right {
39
- display: flex;
40
- align-items: center;
41
- }
42
- .m-flash-deal-mobile .flash-deal-title .right .text {
43
- font-family: 'Montserrat';
44
- font-style: normal;
45
- font-weight: 600;
46
- font-size: 0.24rem;
47
- line-height: 0.3rem;
48
- color: #0038A8;
49
- margin-right: 0.1rem;
50
- }
51
- .m-flash-deal-mobile .flash-deal-title .right .btn {
52
- white-space: nowrap;
53
- }
54
- .m-flash-deal-mobile .flash-deal-list {
55
- margin-top: 0.32rem;
56
- overflow-x: auto;
57
- overflow-y: hidden;
58
- white-space: nowrap;
59
- display: flex;
60
- align-items: flex-start;
61
- justify-content: flex-start;
62
- position: relative;
63
- }
64
- .m-flash-deal-mobile .flash-deal-list .loading-wrap {
65
- display: flex;
66
- align-items: center;
67
- justify-content: center;
68
- padding: 0.6rem;
69
- position: absolute;
70
- top: 0;
71
- bottom: 0;
72
- left: 0;
73
- right: 0;
74
- margin: auto;
75
- }
76
- .m-flash-deal-mobile .flash-deal-list .m-product-item-wrap {
77
- width: 2.84rem;
78
- margin-right: 0.16rem;
79
- }
80
- .m-flash-deal-mobile .flash-deal-list .m-product-item-wrap .product-img {
81
- height: 2.8rem;
82
- width: 2.8rem;
83
- }
84
- .m-flash-deal-mobile .flash-deal-list .m-product-item-wrap .product-name {
85
- height: 0.72rem;
86
- }
4
+ padding: 16px 16px 28px 16px;
5
+
6
+ .flash-deal-title {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+
11
+ .left {
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ .icon {
16
+ height: 18px;
17
+ margin-right: 10px;
18
+ }
19
+
20
+ .title {
21
+ font-family: 'Montserrat';
22
+ font-style: normal;
23
+ font-weight: 600;
24
+ font-size: 14px;
25
+ line-height: 18px;
26
+ color: #2C2C2C;
27
+ margin-right: 10px;
28
+ }
29
+
30
+ .sub-title {
31
+ font-family: 'Montserrat';
32
+ font-style: normal;
33
+ font-weight: 600;
34
+ font-size: 10px;
35
+ line-height: 18px;
36
+ color: #2C2C2C;
37
+ margin-right: 6px;
38
+ align-self: end;
39
+ }
40
+ }
41
+
42
+ .right {
43
+ display: flex;
44
+ align-items: center;
45
+
46
+ .text {
47
+ font-family: 'Montserrat';
48
+ font-style: normal;
49
+ font-weight: 600;
50
+ font-size: 12px;
51
+ line-height: 15px;
52
+ color: #0038A8;
53
+ margin-right: 5px;
54
+ }
55
+
56
+ .btn {
57
+ white-space: nowrap;
58
+ }
59
+ }
60
+ }
61
+
62
+ .flash-deal-list {
63
+ margin-top: 16px;
64
+ overflow-x: auto;
65
+ overflow-y: hidden;
66
+ white-space: nowrap;
67
+ display: flex;
68
+ align-items: flex-start;
69
+ justify-content: flex-start;
70
+ position: relative;
71
+
72
+ .loading-wrap {
73
+ display: flex;
74
+ align-items: center;
75
+ justify-content: center;
76
+ padding: 30px;
77
+ position: absolute;
78
+ top: 0;
79
+ bottom: 0;
80
+ left: 0;
81
+ right: 0;
82
+ margin: auto;
83
+ }
84
+
85
+ // 秒杀特有样式
86
+ .m-product-item-wrap {
87
+ width: 142px;
88
+ margin-right: 8px;
89
+
90
+ .product-img {
91
+ height: 140px;
92
+ width: 140px;
93
+ }
94
+
95
+ .product-name {
96
+ height: 36px;
97
+ }
98
+ }
99
+ }
100
+ }
@@ -1,21 +1,38 @@
1
- .mobile-navigation-mobile .group-wrap {
2
- padding: 0 0.4rem;
3
- display: flex;
1
+ .mobile-navigation-mobile {
2
+ // display: flex;
3
+ // flex-direction: column;
4
+ // padding-top: 18px;
5
+ .group-wrap {
6
+ padding: 0 20px;
7
+ display: flex;
8
+ .one-card {
9
+ // display: flex;
10
+
11
+ .card-image-wrap {
12
+ margin-bottom: 4px;
13
+ width: 100%;
14
+ }
15
+ }
16
+ }
17
+
4
18
  }
5
- .mobile-navigation-mobile .group-wrap .one-card .card-image-wrap {
6
- margin-bottom: 0.08rem;
7
- width: 100%;
19
+
20
+ .newline {
21
+ .group-wrap {
22
+ flex-wrap: wrap;
23
+ }
8
24
  }
9
- .newline .group-wrap {
10
- flex-wrap: wrap;
11
- }
12
- .tile .group-wrap {
13
- overflow-x: auto;
14
- flex-wrap: nowrap;
15
- scroll-snap-type: x;
16
- padding: 0 0.3rem;
17
- }
18
- .tile .group-wrap .one-card {
19
- flex-shrink: 0;
20
- scroll-snap-align: end;
25
+
26
+ .tile {
27
+ .group-wrap {
28
+ // overflow-x: scroll;
29
+ overflow-x: auto;
30
+ flex-wrap: nowrap;
31
+ scroll-snap-type: x;
32
+ padding: 0 15px;
33
+ .one-card {
34
+ flex-shrink: 0;
35
+ scroll-snap-align: end;
36
+ }
37
+ }
21
38
  }
@@ -98,7 +98,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
98
98
  },
99
99
  hover: null
100
100
  },
101
- sourceType: 'recommend',
101
+ sourceType: 'select',
102
102
  prodIds: '',
103
103
  intelligentType: 'Hot',
104
104
  intelligentValue: [],
@@ -384,7 +384,8 @@ function (_super) {
384
384
  sortType: '1',
385
385
  intelligentType: intelligentType,
386
386
  intelligentValue: intelligentValue.join(','),
387
- aggregation: false
387
+ aggregation: false,
388
+ storeId: window.magicDesign.storeId || ''
388
389
  }, 'POST')];
389
390
 
390
391
  case 4:
@@ -634,7 +635,14 @@ function (_super) {
634
635
  layout: layout === 'layout2' ? 'horizontal' : 'vertical' // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
635
636
  ,
636
637
  onItemClick: function onItemClick() {
637
- return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
638
+ /** PTO 定制GA */
639
+ if (window.magicDesign.pushGA) {
640
+ window.magicDesign.pushGA(item, 'select_item', {
641
+ event_action: 'Select Item'
642
+ });
643
+ }
644
+
645
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
638
646
  },
639
647
  panelProps: panelProps.content,
640
648
  showProgress: false
@@ -660,7 +668,12 @@ function (_super) {
660
668
  imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
661
669
  ,
662
670
  onItemClick: function onItemClick() {
663
- return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
671
+ /** PTO 定制GA */
672
+ if (window.magicDesign.pushGA) {
673
+ window.magicDesign.pushGA({}, 'select_item', item);
674
+ }
675
+
676
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
664
677
  },
665
678
  panelProps: panelProps.content,
666
679
  showProgress: false