@fonixtree/magic-design 1.0.53 → 1.0.55

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 (411) 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 +62 -6
  5. package/es/assets/fonts/magic-box-iconfont.css.bak +35 -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/button.less +5 -0
  15. package/es/assets/less/cylon-antd.less +7246 -1686
  16. package/es/assets/less/font.less +22 -0
  17. package/es/common/AffiliateProductModal/index.js +582 -0
  18. package/es/common/AffiliateProductModal/index.less +146 -0
  19. package/es/common/Button/index.less +0 -1
  20. package/es/common/CardCarousel/index.js +171 -0
  21. package/es/common/CardCarousel/index.less +28 -0
  22. package/es/common/GroupList/index.js +7 -2
  23. package/es/common/ImagePicker/index.js +1 -3
  24. package/es/common/LinkModal/CouponTable/index.js +3 -3
  25. package/es/common/LinkModal/CustomTable/index.js +1 -0
  26. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  27. package/es/common/LinkModal/index.js +14 -2
  28. package/es/common/MagicLink/index.js +2 -2
  29. package/es/common/MyModal/index.js +417 -0
  30. package/es/common/MyModal/index.less +74 -0
  31. package/es/common/ProductModal/index.js +38 -3
  32. package/es/common/ProductSource/index.js +59 -18
  33. package/es/common/UrlPicker/AnchorModal/index.js +170 -0
  34. package/es/common/UrlPicker/AnchorModal/index.less +21 -0
  35. package/es/common/UrlPicker/index.js +62 -10
  36. package/es/common/index.js +16 -0
  37. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -2
  38. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  39. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  40. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  41. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  42. package/es/composite-comp/bol/components/Video/index.js +1 -2
  43. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  44. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  45. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
  46. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  47. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  48. package/es/composite-comp/bol/components/Wallet/index.js +11 -15
  49. package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  50. package/es/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
  51. package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  52. package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  53. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  54. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  55. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  56. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  57. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  58. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  59. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  60. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  61. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  62. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  63. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  64. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  65. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  66. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  67. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  68. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  69. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  70. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  71. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  72. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  73. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  74. package/es/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
  75. package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  76. package/es/composite-comp/common/components/ProductItem/index.js +22 -20
  77. package/es/composite-comp/common/components/ProductItem/index.less +2 -12
  78. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  79. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  80. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  81. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  82. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  83. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  84. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  85. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  86. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  87. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  88. package/es/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  89. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
  90. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  91. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  92. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  93. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  94. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
  95. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  96. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  97. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  98. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  99. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  100. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  101. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  102. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  103. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  104. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  105. package/es/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  106. package/es/composite-comp/dito/components/Orders/index.js +84 -0
  107. package/es/composite-comp/dito/components/Orders/mobile/index.js +345 -0
  108. package/es/composite-comp/dito/components/Orders/mobile/index.less +87 -0
  109. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  110. package/es/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  111. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  112. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +467 -0
  113. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -0
  114. package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
  115. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  116. package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -5
  117. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  118. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
  119. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
  120. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  121. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  122. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  123. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  124. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  125. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  126. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
  127. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  128. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  129. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  130. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  131. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
  132. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  133. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  134. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  135. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  136. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  137. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  138. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
  139. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  140. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
  141. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  142. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
  143. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  144. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  145. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  146. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
  147. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +1 -0
  148. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  149. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  150. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  151. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  152. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  153. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  154. package/es/constants/component-types.js +45 -3
  155. package/es/constants/index.js +74 -5
  156. package/es/constants/layout.js +48 -1
  157. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
  158. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  159. package/es/core/Designer/ChatRobot/index.js +84 -17
  160. package/es/core/Designer/ChatRobot/index.less +69 -28
  161. package/es/core/Designer/ConfigPanel/index.js +14 -3
  162. package/es/core/Designer/FonixtreeGpt/index.js +222 -29
  163. package/es/core/Designer/PageCompList/index.js +6 -5
  164. package/es/core/Designer/QuickMenuBar/index.js +11 -5
  165. package/es/core/Designer/QuickMenuBar/index.less +4 -0
  166. package/es/core/Designer/RenderHtml/index.js +18 -15
  167. package/es/core/Designer/RenderHtml/index.less +1 -1
  168. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  169. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  170. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  171. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  172. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  173. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  174. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  175. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  176. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  177. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  178. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  179. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  180. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  181. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  182. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  183. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  184. package/es/core/Designer/ToolBarModal/index.js +68 -22
  185. package/es/core/Designer/ToolBarModal/index.less +3 -2
  186. package/es/core/Designer/index.js +26 -2
  187. package/es/core/Renderer/index.js +74 -29
  188. package/es/decorator/compositeDecorator.js +24 -1
  189. package/es/decorator/metaDecorator.js +1 -1
  190. package/es/locale/en/en.json +16 -2
  191. package/es/locale/es/es.json +16 -2
  192. package/es/locale/id/id.json +16 -2
  193. package/es/meta-comp/components/Image/index.js +31 -25
  194. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  195. package/es/meta-comp/components/Text/index.js +4 -1
  196. package/es/meta-comp/components/Text/index.less +8 -0
  197. package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
  198. package/es/mobx/Frame.js +17 -2
  199. package/es/mobx/UserState.js +144 -0
  200. package/es/mobx/index.js +9 -3
  201. package/es/utils/androidUtil.js +13 -2
  202. package/es/utils/businessUtil.js +25 -3
  203. package/es/utils/commonUtil.js +167 -19
  204. package/es/utils/coreUtil.js +45 -2
  205. package/es/utils/currencyUtil.js +9 -2
  206. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  207. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  208. package/lib/assets/fonts/TruenoBd.otf +0 -0
  209. package/lib/assets/fonts/magic-box-iconfont.css +62 -6
  210. package/lib/assets/fonts/magic-box-iconfont.css.bak +35 -3
  211. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  212. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  213. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  214. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  215. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  216. package/lib/assets/images/base64/index.js +36 -2
  217. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  218. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  219. package/lib/assets/less/button.less +5 -0
  220. package/lib/assets/less/cylon-antd.less +7246 -1686
  221. package/lib/assets/less/font.less +22 -0
  222. package/lib/common/AffiliateProductModal/index.js +582 -0
  223. package/lib/common/AffiliateProductModal/index.less +146 -0
  224. package/lib/common/Button/index.less +0 -1
  225. package/lib/common/CardCarousel/index.js +171 -0
  226. package/lib/common/CardCarousel/index.less +28 -0
  227. package/lib/common/GroupList/index.js +7 -2
  228. package/lib/common/ImagePicker/index.js +1 -3
  229. package/lib/common/LinkModal/CouponTable/index.js +3 -3
  230. package/lib/common/LinkModal/CustomTable/index.js +1 -0
  231. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  232. package/lib/common/LinkModal/index.js +14 -2
  233. package/lib/common/MagicLink/index.js +2 -2
  234. package/lib/common/MyModal/index.js +417 -0
  235. package/lib/common/MyModal/index.less +74 -0
  236. package/lib/common/ProductModal/index.js +38 -3
  237. package/lib/common/ProductSource/index.js +59 -18
  238. package/lib/common/UrlPicker/AnchorModal/index.js +170 -0
  239. package/lib/common/UrlPicker/AnchorModal/index.less +21 -0
  240. package/lib/common/UrlPicker/index.js +62 -10
  241. package/lib/common/index.js +16 -0
  242. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -2
  243. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  244. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  245. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  246. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  247. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  248. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  249. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  250. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
  251. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  252. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  253. package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
  254. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  255. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
  256. package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  257. package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  258. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  259. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  260. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  261. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  262. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  263. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  264. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  265. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  266. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  267. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  268. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  269. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  270. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  271. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  272. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  273. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  274. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  275. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  276. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  277. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  278. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  279. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
  280. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  281. package/lib/composite-comp/common/components/ProductItem/index.js +22 -20
  282. package/lib/composite-comp/common/components/ProductItem/index.less +2 -12
  283. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  284. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  285. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  286. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  287. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  288. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  289. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  290. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  291. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  292. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  293. package/lib/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  294. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
  295. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  296. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  297. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  298. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  299. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
  300. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  301. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  302. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  303. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  304. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  305. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  306. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  307. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  308. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  309. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  310. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  311. package/lib/composite-comp/dito/components/Orders/index.js +84 -0
  312. package/lib/composite-comp/dito/components/Orders/mobile/index.js +345 -0
  313. package/lib/composite-comp/dito/components/Orders/mobile/index.less +87 -0
  314. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  315. package/lib/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  316. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  317. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +467 -0
  318. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -0
  319. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
  320. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  321. package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -5
  322. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  323. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
  324. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
  325. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  326. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  327. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  328. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  329. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  330. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  331. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
  332. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  333. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  334. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  335. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  336. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
  337. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  338. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  339. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  340. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  341. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  342. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  343. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
  344. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  345. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
  346. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  347. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
  348. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  349. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  350. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  351. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
  352. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +1 -0
  353. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  354. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  355. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  356. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  357. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  358. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  359. package/lib/constants/component-types.js +45 -3
  360. package/lib/constants/index.js +74 -5
  361. package/lib/constants/layout.js +48 -1
  362. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
  363. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  364. package/lib/core/Designer/ChatRobot/index.js +84 -17
  365. package/lib/core/Designer/ChatRobot/index.less +69 -28
  366. package/lib/core/Designer/ConfigPanel/index.js +14 -3
  367. package/lib/core/Designer/FonixtreeGpt/index.js +222 -29
  368. package/lib/core/Designer/PageCompList/index.js +6 -5
  369. package/lib/core/Designer/QuickMenuBar/index.js +11 -5
  370. package/lib/core/Designer/QuickMenuBar/index.less +4 -0
  371. package/lib/core/Designer/RenderHtml/index.js +18 -15
  372. package/lib/core/Designer/RenderHtml/index.less +1 -1
  373. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  374. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  375. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  376. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  377. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  378. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  379. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  380. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  381. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  382. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  383. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  384. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  385. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  386. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  387. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  388. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  389. package/lib/core/Designer/ToolBarModal/index.js +68 -22
  390. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  391. package/lib/core/Designer/index.js +26 -2
  392. package/lib/core/Renderer/index.js +74 -29
  393. package/lib/decorator/compositeDecorator.js +24 -1
  394. package/lib/decorator/metaDecorator.js +1 -1
  395. package/lib/locale/en/en.json +16 -2
  396. package/lib/locale/es/es.json +16 -2
  397. package/lib/locale/id/id.json +16 -2
  398. package/lib/meta-comp/components/Image/index.js +31 -25
  399. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  400. package/lib/meta-comp/components/Text/index.js +4 -1
  401. package/lib/meta-comp/components/Text/index.less +8 -0
  402. package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
  403. package/lib/mobx/Frame.js +17 -2
  404. package/lib/mobx/UserState.js +144 -0
  405. package/lib/mobx/index.js +9 -3
  406. package/lib/utils/androidUtil.js +13 -2
  407. package/lib/utils/businessUtil.js +25 -3
  408. package/lib/utils/commonUtil.js +167 -19
  409. package/lib/utils/coreUtil.js +45 -2
  410. package/lib/utils/currencyUtil.js +9 -2
  411. package/package.json +1 -1
@@ -0,0 +1,467 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.setAccountPageValue = exports.pInfoData = exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _lodash = require("lodash");
13
+
14
+ var _avatar = _interopRequireDefault(require("./images/avatar.png"));
15
+
16
+ var _components = require("../../../../../meta-comp/components");
17
+
18
+ var _androidUtil = require("../../../../../utils/androidUtil");
19
+
20
+ var _locale = require("../../../../../locale");
21
+
22
+ var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
23
+
24
+ var _commonUtil = require("../../../../../utils/commonUtil");
25
+
26
+ var _index = require("../../../../../constants/index");
27
+
28
+ var _storeUtil = require("../../../../../utils/storeUtil");
29
+
30
+ require("./index.less");
31
+
32
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
+
34
+ var __extends = void 0 && (void 0).__extends || function () {
35
+ var _extendStatics = function extendStatics(d, b) {
36
+ _extendStatics = Object.setPrototypeOf || {
37
+ __proto__: []
38
+ } instanceof Array && function (d, b) {
39
+ d.__proto__ = b;
40
+ } || function (d, b) {
41
+ for (var p in b) {
42
+ if (b.hasOwnProperty(p)) d[p] = b[p];
43
+ }
44
+ };
45
+
46
+ return _extendStatics(d, b);
47
+ };
48
+
49
+ return function (d, b) {
50
+ _extendStatics(d, b);
51
+
52
+ function __() {
53
+ this.constructor = d;
54
+ }
55
+
56
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
57
+ };
58
+ }();
59
+
60
+ var __assign = void 0 && (void 0).__assign || function () {
61
+ __assign = Object.assign || function (t) {
62
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
63
+ s = arguments[i];
64
+
65
+ for (var p in s) {
66
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
67
+ }
68
+ }
69
+
70
+ return t;
71
+ };
72
+
73
+ return __assign.apply(this, arguments);
74
+ };
75
+
76
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
77
+ function adopt(value) {
78
+ return value instanceof P ? value : new P(function (resolve) {
79
+ resolve(value);
80
+ });
81
+ }
82
+
83
+ return new (P || (P = Promise))(function (resolve, reject) {
84
+ function fulfilled(value) {
85
+ try {
86
+ step(generator.next(value));
87
+ } catch (e) {
88
+ reject(e);
89
+ }
90
+ }
91
+
92
+ function rejected(value) {
93
+ try {
94
+ step(generator["throw"](value));
95
+ } catch (e) {
96
+ reject(e);
97
+ }
98
+ }
99
+
100
+ function step(result) {
101
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
102
+ }
103
+
104
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
105
+ });
106
+ };
107
+
108
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
109
+ var _ = {
110
+ label: 0,
111
+ sent: function sent() {
112
+ if (t[0] & 1) throw t[1];
113
+ return t[1];
114
+ },
115
+ trys: [],
116
+ ops: []
117
+ },
118
+ f,
119
+ y,
120
+ t,
121
+ g;
122
+ return g = {
123
+ next: verb(0),
124
+ "throw": verb(1),
125
+ "return": verb(2)
126
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
127
+ return this;
128
+ }), g;
129
+
130
+ function verb(n) {
131
+ return function (v) {
132
+ return step([n, v]);
133
+ };
134
+ }
135
+
136
+ function step(op) {
137
+ if (f) throw new TypeError("Generator is already executing.");
138
+
139
+ while (_) {
140
+ try {
141
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
142
+ if (y = 0, t) op = [op[0] & 2, t.value];
143
+
144
+ switch (op[0]) {
145
+ case 0:
146
+ case 1:
147
+ t = op;
148
+ break;
149
+
150
+ case 4:
151
+ _.label++;
152
+ return {
153
+ value: op[1],
154
+ done: false
155
+ };
156
+
157
+ case 5:
158
+ _.label++;
159
+ y = op[1];
160
+ op = [0];
161
+ continue;
162
+
163
+ case 7:
164
+ op = _.ops.pop();
165
+
166
+ _.trys.pop();
167
+
168
+ continue;
169
+
170
+ default:
171
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
172
+ _ = 0;
173
+ continue;
174
+ }
175
+
176
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
177
+ _.label = op[1];
178
+ break;
179
+ }
180
+
181
+ if (op[0] === 6 && _.label < t[1]) {
182
+ _.label = t[1];
183
+ t = op;
184
+ break;
185
+ }
186
+
187
+ if (t && _.label < t[2]) {
188
+ _.label = t[2];
189
+
190
+ _.ops.push(op);
191
+
192
+ break;
193
+ }
194
+
195
+ if (t[2]) _.ops.pop();
196
+
197
+ _.trys.pop();
198
+
199
+ continue;
200
+ }
201
+
202
+ op = body.call(thisArg, _);
203
+ } catch (e) {
204
+ op = [6, e];
205
+ y = 0;
206
+ } finally {
207
+ f = t = 0;
208
+ }
209
+ }
210
+
211
+ if (op[0] & 5) throw op[1];
212
+ return {
213
+ value: op[0] ? op[1] : void 0,
214
+ done: true
215
+ };
216
+ }
217
+ };
218
+
219
+ var pInfoData = {
220
+ Wishlist: {
221
+ route: '/favourite/list'
222
+ },
223
+ Stores: {
224
+ route: '/collect-store'
225
+ },
226
+ Vouchers: {
227
+ route: '/my-coupon'
228
+ },
229
+ 'Recently Viewed': {
230
+ route: '/review-list'
231
+ }
232
+ };
233
+ exports.pInfoData = pInfoData;
234
+ var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
235
+ var currentUser = JSON.parse(localStorage.getItem('currentUser')) || {};
236
+
237
+ var setAccountPageValue = function setAccountPageValue(obj) {
238
+ var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
239
+ localStorage.setItem('accountPageValue', JSON.stringify(__assign(__assign({}, accountPageValue), obj)));
240
+ };
241
+
242
+ exports.setAccountPageValue = setAccountPageValue;
243
+
244
+ var PersonalInfoMobile =
245
+ /** @class */
246
+ function (_super) {
247
+ __extends(PersonalInfoMobile, _super);
248
+
249
+ function PersonalInfoMobile() {
250
+ var _this = _super !== null && _super.apply(this, arguments) || this;
251
+
252
+ _this.state = {
253
+ messageNum: '',
254
+ userInfo: currentUser
255
+ };
256
+
257
+ _this.getNum = function (v) {
258
+ var userInfo = _this.state.userInfo;
259
+
260
+ if (v === _index.personalInfoType.WISHLIST) {
261
+ return userInfo.userCollectionNum || 0;
262
+ } else if (v === _index.personalInfoType.STORES) {
263
+ return userInfo.userCollectionStoreNum || 0;
264
+ } else if (v === _index.personalInfoType.VOUCHERS) {
265
+ return userInfo.couponNum || 0;
266
+ } else if (v === _index.personalInfoType.VIEWED) {
267
+ return userInfo.recentViewNum || 0;
268
+ }
269
+ }; // handleFileChange = e => {
270
+ // const file = e.target.files[0];
271
+ // if (file) {
272
+ // if (file.name.length > 120) {
273
+ // message.error(i18n('IMAGE_NAME_IS_TOO_LONG'));
274
+ // return;
275
+ // }
276
+ // setSelectedImgFile(file);
277
+ // setEditImgModalVisible(true);
278
+ // }
279
+ // e.target.value = '';
280
+ // };
281
+
282
+
283
+ _this.goSettings = function () {
284
+ if ((0, _commonUtil.checkLogin)()) {
285
+ (0, _commonUtil.navigateTo)('/settings');
286
+ }
287
+ };
288
+
289
+ _this.goMessageCenter = function () {
290
+ if ((0, _commonUtil.checkLogin)(true)) {
291
+ (0, _commonUtil.navigateTo)('/message-center');
292
+ }
293
+ };
294
+
295
+ _this.clickName = function () {
296
+ if (!(0, _lodash.isEmpty)(LPObj)) {
297
+ return;
298
+ }
299
+
300
+ (0, _commonUtil.navigateTo)('/account/information');
301
+ };
302
+
303
+ _this.goLoginPage = function () {
304
+ if ((0, _androidUtil.browserVersion)().isApp) {
305
+ (0, _androidUtil.goToLoginApp)();
306
+ } else {
307
+ (0, _commonUtil.goLogin)();
308
+ }
309
+ };
310
+
311
+ _this.getMessageNum = function () {
312
+ return __awaiter(_this, void 0, void 0, function () {
313
+ var num;
314
+ return __generator(this, function (_a) {
315
+ switch (_a.label) {
316
+ case 0:
317
+ return [4
318
+ /*yield*/
319
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/users/inbox/unread/num', {}, 'GET')];
320
+
321
+ case 1:
322
+ num = _a.sent();
323
+ if (num > 9) num = '9+';
324
+ this.setState({
325
+ messageNum: num
326
+ });
327
+ setAccountPageValue({
328
+ messageNum: num
329
+ });
330
+ return [2
331
+ /*return*/
332
+ ];
333
+ }
334
+ });
335
+ });
336
+ };
337
+
338
+ _this.getUserInfo = function () {
339
+ return __awaiter(_this, void 0, void 0, function () {
340
+ var info;
341
+ return __generator(this, function (_a) {
342
+ switch (_a.label) {
343
+ case 0:
344
+ return [4
345
+ /*yield*/
346
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/users', {}, 'GET')];
347
+
348
+ case 1:
349
+ info = _a.sent();
350
+ this.setState({
351
+ userInfo: info
352
+ });
353
+ return [2
354
+ /*return*/
355
+ ];
356
+ }
357
+ });
358
+ });
359
+ };
360
+
361
+ _this.onItemClick = function (v) {
362
+ var _a;
363
+
364
+ var routeUrl = (_a = pInfoData[v]) === null || _a === void 0 ? void 0 : _a.route;
365
+ var selfUrl = (0, _commonUtil.ensure)(function () {
366
+ return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
367
+ }, '');
368
+ (0, _commonUtil.navigateTo)(routeUrl || selfUrl);
369
+ };
370
+
371
+ return _this;
372
+ }
373
+
374
+ PersonalInfoMobile.prototype.componentDidMount = function () {
375
+ if ((0, _commonUtil.checkLogin)(false)) {
376
+ this.getUserInfo();
377
+ }
378
+
379
+ this.getMessageNum();
380
+ };
381
+
382
+ PersonalInfoMobile.prototype.render = function () {
383
+ var _this = this;
384
+
385
+ var data = this.props.data;
386
+ var _a = this.state,
387
+ messageNum = _a.messageNum,
388
+ userInfo = _a.userInfo;
389
+ return /*#__PURE__*/_react["default"].createElement("div", {
390
+ className: (0, _classnames["default"])('personal-information-mobile')
391
+ }, /*#__PURE__*/_react["default"].createElement("div", {
392
+ className: "top"
393
+ }, /*#__PURE__*/_react["default"].createElement("div", {
394
+ className: "pInfoWrap"
395
+ }, (0, _commonUtil.isLogin)() ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
396
+ className: "photoWrap"
397
+ }, /*#__PURE__*/_react["default"].createElement("img", {
398
+ alt: "",
399
+ className: "photo",
400
+ src: userInfo.photo || _avatar["default"],
401
+ style: {
402
+ height: 44,
403
+ width: 44,
404
+ background: userInfo.photo ? '#fff' : 'unset'
405
+ }
406
+ })), /*#__PURE__*/_react["default"].createElement("div", {
407
+ className: "userInfo"
408
+ }, /*#__PURE__*/_react["default"].createElement("p", {
409
+ className: "name",
410
+ onClick: this.clickName
411
+ }, userInfo.firstName || userInfo.nickName))) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
412
+ className: "photo"
413
+ }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
414
+ color: "#fff",
415
+ size: 32,
416
+ type: "icon-account"
417
+ })), data.login.open && /*#__PURE__*/_react["default"].createElement("span", {
418
+ className: "btnLogin",
419
+ onClick: this.goLoginPage
420
+ }, (0, _locale.i18n)('LOGIN_OR_REGISTER')))), /*#__PURE__*/_react["default"].createElement("div", {
421
+ className: "btnGroup"
422
+ }, (0, _lodash.isEmpty)(LPObj) && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
423
+ color: "#fff",
424
+ onClick: this.goSettings,
425
+ size: 24,
426
+ type: "icon-set"
427
+ }), /*#__PURE__*/_react["default"].createElement("div", {
428
+ className: "iconWrap"
429
+ }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
430
+ color: "#fff",
431
+ onClick: this.goMessageCenter,
432
+ size: 24,
433
+ type: "icon-messages"
434
+ }), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
435
+ className: "num"
436
+ }, messageNum)))), /*#__PURE__*/_react["default"].createElement("div", {
437
+ className: "bottom"
438
+ }, data.groupSource.map(function (item) {
439
+ return /*#__PURE__*/_react["default"].createElement("div", {
440
+ className: "item",
441
+ onClick: function onClick() {
442
+ return _this.onItemClick(item.sourceType);
443
+ }
444
+ }, item.number.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
445
+ className: "number",
446
+ data: __assign(__assign({}, item.number), {
447
+ text: (0, _commonUtil.isLogin)() ? _this.getNum(item.sourceType) : '- -'
448
+ }),
449
+ readonly: true
450
+ }), item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
451
+ className: "title",
452
+ data: item.title,
453
+ onTextInput: function onTextInput(text) {
454
+ item.title.text = text;
455
+ }
456
+ }));
457
+ })));
458
+ };
459
+
460
+ PersonalInfoMobile.defaultProps = {
461
+ data: {}
462
+ };
463
+ return PersonalInfoMobile;
464
+ }(_react["default"].Component);
465
+
466
+ var _default = PersonalInfoMobile;
467
+ exports["default"] = _default;
@@ -0,0 +1,132 @@
1
+ .personal-information-mobile {
2
+ height: 4.6rem;
3
+ padding: 0.32rem;
4
+ box-sizing: border-box;
5
+ }
6
+ .personal-information-mobile .top {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: start;
10
+ }
11
+ .personal-information-mobile .top .pInfoWrap {
12
+ display: flex;
13
+ align-items: center;
14
+ }
15
+ .personal-information-mobile .top .pInfoWrap .photoWrap {
16
+ position: relative;
17
+ display: inline-block;
18
+ vertical-align: middle;
19
+ height: 0.88rem;
20
+ width: 0.88rem;
21
+ }
22
+ .personal-information-mobile .top .pInfoWrap .photoWrap > input {
23
+ position: absolute;
24
+ z-index: 1;
25
+ top: 0;
26
+ left: 0;
27
+ width: 100%;
28
+ height: 100%;
29
+ opacity: 0;
30
+ }
31
+ .personal-information-mobile .top .pInfoWrap .userInfo {
32
+ display: inline-block;
33
+ vertical-align: middle;
34
+ }
35
+ .personal-information-mobile .top .pInfoWrap .userInfo p {
36
+ margin: 0;
37
+ }
38
+ .personal-information-mobile .top .pInfoWrap .userInfo .name {
39
+ font-size: 0.28rem;
40
+ font-weight: 500;
41
+ color: #ffffff;
42
+ max-width: 2.96rem;
43
+ white-space: nowrap;
44
+ text-overflow: ellipsis;
45
+ overflow: hidden;
46
+ word-break: break-all;
47
+ }
48
+ .personal-information-mobile .top .pInfoWrap .userInfo .phone {
49
+ font-size: 0.28rem;
50
+ font-weight: 400;
51
+ color: #ffffff;
52
+ margin-top: 0.1rem;
53
+ }
54
+ .personal-information-mobile .top .pInfoWrap .photo {
55
+ display: inline-block;
56
+ width: 0.88rem;
57
+ height: 0.88rem;
58
+ line-height: 1.2rem;
59
+ text-align: center;
60
+ background: #7b7b7b;
61
+ margin-right: 0.3rem;
62
+ border-radius: 50%;
63
+ }
64
+ .personal-information-mobile .top .pInfoWrap .btnLogin {
65
+ font-size: 0.28rem;
66
+ font-weight: 400;
67
+ color: #ffffff;
68
+ font-family: Montserrat;
69
+ }
70
+ .personal-information-mobile .top .btnGroup .iconWrap {
71
+ display: inline-block;
72
+ margin-left: 0.3rem;
73
+ position: relative;
74
+ }
75
+ .personal-information-mobile .top .btnGroup .num {
76
+ position: absolute;
77
+ top: -0.04rem;
78
+ left: 0.28rem;
79
+ display: inline-block;
80
+ padding: 0 0.08rem;
81
+ border-radius: 50%;
82
+ text-align: center;
83
+ min-width: 0.32rem;
84
+ height: 0.32rem;
85
+ line-height: 0.32rem;
86
+ background: #ce1126;
87
+ font-size: 0.12rem;
88
+ color: #ffffff;
89
+ }
90
+ .personal-information-mobile .bottom {
91
+ display: flex;
92
+ flex-direction: row;
93
+ justify-content: space-around;
94
+ width: 100%;
95
+ margin-top: 0.48rem;
96
+ }
97
+ .personal-information-mobile .bottom .item {
98
+ display: flex;
99
+ flex-direction: column;
100
+ justify-content: flex-start;
101
+ align-items: center;
102
+ flex: 1;
103
+ position: relative;
104
+ }
105
+ .personal-information-mobile .bottom .item:after {
106
+ content: '';
107
+ display: inline-block;
108
+ width: 0.02rem;
109
+ height: 0.9rem;
110
+ position: absolute;
111
+ right: 0;
112
+ top: 0.12rem;
113
+ background: #ccc;
114
+ }
115
+ .personal-information-mobile .bottom .item:last-child:after {
116
+ display: none;
117
+ }
118
+ .personal-information-mobile .bottom .item .number {
119
+ width: 70% !important;
120
+ font-size: 0.36rem;
121
+ font-weight: 600;
122
+ color: #ffffff;
123
+ text-align: center;
124
+ }
125
+ .personal-information-mobile .bottom .item .title {
126
+ width: 70% !important;
127
+ font-size: 0.24rem;
128
+ font-weight: 400;
129
+ color: #ffffff;
130
+ line-height: 0.32rem;
131
+ text-align: center;
132
+ }
@@ -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, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, res, e_1, _cache;
311
+ var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, res, e_1, _cache;
312
312
 
313
313
  var _h, _j, _k;
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) {
@@ -425,8 +426,8 @@ function (_super) {
425
426
 
426
427
  case 10:
427
428
  if (!(0, _coreUtil.isDesignMode)()) {
428
- _cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
429
- (0, _storeUtil.setMagicStore)("recommend_" + recommendId, __assign(__assign({}, _cache), (_j = {}, _j["products" + index] = newData, _j.endTime = Date.now() + 3 * 60 * 1000, _j)));
429
+ _cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
430
+ (0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_j = {}, _j["products" + index] = newData, _j.endTime = Date.now() + 3 * 60 * 1000, _j)));
430
431
  }
431
432
 
432
433
  this.setState((_k = {}, _k["products" + index] = newData, _k), function () {