@fonixtree/magic-design 1.0.65 → 1.0.66

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 (419) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +6 -62
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
  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/base64/index.js +2 -36
  10. package/es/assets/less/button.less +0 -5
  11. package/es/assets/less/cylon-antd.less +1686 -7246
  12. package/es/assets/less/font.less +0 -22
  13. package/es/common/Button/index.less +1 -0
  14. package/es/common/CountDown/index.js +11 -20
  15. package/es/common/GroupList/index.js +2 -7
  16. package/es/common/ImagePicker/index.js +3 -1
  17. package/es/common/LinkModal/CouponTable/index.js +3 -3
  18. package/es/common/LinkModal/CustomTable/index.js +0 -1
  19. package/es/common/LinkModal/FunctionTable/index.js +1 -2
  20. package/es/common/LinkModal/index.js +2 -14
  21. package/es/common/MagicLink/index.js +2 -2
  22. package/es/common/ProductModal/index.js +3 -38
  23. package/es/common/ProductSource/index.js +18 -59
  24. package/es/common/UrlPicker/index.js +10 -62
  25. package/es/common/index.js +0 -24
  26. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  27. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  28. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  29. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  30. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  31. package/es/composite-comp/bol/components/Video/index.js +2 -1
  32. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  33. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  34. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  35. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  36. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  37. package/es/composite-comp/bol/components/Wallet/index.js +15 -11
  38. package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  39. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  40. package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  41. package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  42. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  43. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  44. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  45. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  46. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  47. package/es/composite-comp/common/components/ProductItem/index.js +20 -22
  48. package/es/composite-comp/common/components/ProductItem/index.less +12 -2
  49. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  50. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  51. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  52. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  53. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  54. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  55. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  56. package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  57. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  58. package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  59. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  60. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  61. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  62. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  63. package/es/constants/component-types.js +3 -45
  64. package/es/constants/index.js +5 -74
  65. package/es/constants/layout.js +1 -48
  66. package/es/core/Designer/ChatRobot/index.js +17 -84
  67. package/es/core/Designer/ChatRobot/index.less +28 -69
  68. package/es/core/Designer/ConfigPanel/index.js +3 -14
  69. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  70. package/es/core/Designer/PageCompList/index.js +5 -6
  71. package/es/core/Designer/QuickMenuBar/index.js +5 -11
  72. package/es/core/Designer/QuickMenuBar/index.less +0 -4
  73. package/es/core/Designer/RenderHtml/index.js +15 -18
  74. package/es/core/Designer/RenderHtml/index.less +1 -1
  75. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  76. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  77. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  78. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  79. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  80. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  81. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  82. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  83. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  84. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  85. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  86. package/es/core/Designer/ToolBarModal/index.js +27 -69
  87. package/es/core/Designer/ToolBarModal/index.less +2 -3
  88. package/es/core/Designer/index.js +2 -26
  89. package/es/core/Renderer/index.js +29 -74
  90. package/es/decorator/compositeDecorator.js +6 -33
  91. package/es/decorator/metaDecorator.js +1 -1
  92. package/es/locale/en/en.json +3 -17
  93. package/es/locale/es/es.json +3 -17
  94. package/es/locale/id/id.json +3 -17
  95. package/es/meta-comp/components/Image/index.js +25 -31
  96. package/es/meta-comp/components/Text/index.js +1 -4
  97. package/es/meta-comp/components/Text/index.less +0 -8
  98. package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
  99. package/es/mobx/Frame.js +2 -17
  100. package/es/mobx/index.js +3 -9
  101. package/es/utils/androidUtil.js +2 -13
  102. package/es/utils/businessUtil.js +3 -25
  103. package/es/utils/commonUtil.js +22 -177
  104. package/es/utils/coreUtil.js +2 -45
  105. package/es/utils/currencyUtil.js +2 -9
  106. package/lib/assets/fonts/.DS_Store +0 -0
  107. package/lib/assets/fonts/magic-box-iconfont.css +6 -62
  108. package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
  109. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  110. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  111. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  112. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  113. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  114. package/lib/assets/images/base64/index.js +2 -36
  115. package/lib/assets/less/button.less +0 -5
  116. package/lib/assets/less/cylon-antd.less +1686 -7246
  117. package/lib/assets/less/font.less +0 -22
  118. package/lib/common/Button/index.less +1 -0
  119. package/lib/common/CountDown/index.js +11 -20
  120. package/lib/common/GroupList/index.js +2 -7
  121. package/lib/common/ImagePicker/index.js +3 -1
  122. package/lib/common/LinkModal/CouponTable/index.js +3 -3
  123. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  124. package/lib/common/LinkModal/FunctionTable/index.js +1 -2
  125. package/lib/common/LinkModal/index.js +2 -14
  126. package/lib/common/MagicLink/index.js +2 -2
  127. package/lib/common/ProductModal/index.js +3 -38
  128. package/lib/common/ProductSource/index.js +18 -59
  129. package/lib/common/UrlPicker/index.js +10 -62
  130. package/lib/common/index.js +0 -24
  131. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  132. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  133. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  134. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  135. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  136. package/lib/composite-comp/bol/components/Video/index.js +2 -1
  137. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  138. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  139. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  140. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  141. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  142. package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
  143. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  144. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  145. package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  146. package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  147. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  148. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  149. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  150. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  151. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  152. package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
  153. package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
  154. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  155. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  156. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  157. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  158. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  159. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  160. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  161. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  162. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  163. package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  164. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  165. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  166. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  167. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  168. package/lib/constants/component-types.js +3 -45
  169. package/lib/constants/index.js +5 -74
  170. package/lib/constants/layout.js +1 -48
  171. package/lib/core/Designer/ChatRobot/index.js +17 -84
  172. package/lib/core/Designer/ChatRobot/index.less +28 -69
  173. package/lib/core/Designer/ConfigPanel/index.js +3 -14
  174. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  175. package/lib/core/Designer/PageCompList/index.js +5 -6
  176. package/lib/core/Designer/QuickMenuBar/index.js +5 -11
  177. package/lib/core/Designer/QuickMenuBar/index.less +0 -4
  178. package/lib/core/Designer/RenderHtml/index.js +15 -18
  179. package/lib/core/Designer/RenderHtml/index.less +1 -1
  180. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  181. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  182. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  183. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  184. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  185. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  186. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  187. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  188. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  189. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  190. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  191. package/lib/core/Designer/ToolBarModal/index.js +27 -69
  192. package/lib/core/Designer/ToolBarModal/index.less +2 -3
  193. package/lib/core/Designer/index.js +2 -26
  194. package/lib/core/Renderer/index.js +29 -74
  195. package/lib/decorator/compositeDecorator.js +6 -33
  196. package/lib/decorator/metaDecorator.js +1 -1
  197. package/lib/locale/en/en.json +3 -17
  198. package/lib/locale/es/es.json +3 -17
  199. package/lib/locale/id/id.json +3 -17
  200. package/lib/meta-comp/components/Image/index.js +25 -31
  201. package/lib/meta-comp/components/Text/index.js +1 -4
  202. package/lib/meta-comp/components/Text/index.less +0 -8
  203. package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
  204. package/lib/mobx/Frame.js +2 -17
  205. package/lib/mobx/index.js +3 -9
  206. package/lib/utils/androidUtil.js +2 -13
  207. package/lib/utils/businessUtil.js +3 -25
  208. package/lib/utils/commonUtil.js +22 -177
  209. package/lib/utils/coreUtil.js +2 -45
  210. package/lib/utils/currencyUtil.js +2 -9
  211. package/package.json +1 -2
  212. package/es/assets/fonts/Trueno-Light.otf +0 -0
  213. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  214. package/es/assets/fonts/TruenoBd.otf +0 -0
  215. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  216. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  217. package/es/common/AffiliateProductModal/index.js +0 -582
  218. package/es/common/AffiliateProductModal/index.less +0 -146
  219. package/es/common/CardCarousel/index.js +0 -171
  220. package/es/common/CardCarousel/index.less +0 -28
  221. package/es/common/CropperModal/index.js +0 -126
  222. package/es/common/CropperModal/index.less +0 -29
  223. package/es/common/MyModal/index.js +0 -417
  224. package/es/common/MyModal/index.less +0 -74
  225. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  226. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  227. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  228. package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
  229. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  230. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  231. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  232. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  233. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  234. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  235. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  236. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  237. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  238. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  239. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  240. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  241. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  242. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  243. package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  244. package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  245. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  246. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  247. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  248. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  249. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  250. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  251. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  252. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  253. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  254. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  255. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  256. package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  257. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  258. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  259. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  260. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  261. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  262. package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  263. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  264. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  265. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  266. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  267. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  268. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  269. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  270. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  271. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  272. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  273. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  274. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  275. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  276. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  277. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  278. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  279. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  280. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  281. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  282. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  283. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  284. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  285. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  286. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  287. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  288. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  289. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  290. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  291. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  292. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  293. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  294. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  295. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  296. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  297. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  298. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  299. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  300. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  301. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  302. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  303. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  304. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  305. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  306. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  307. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  308. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  309. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  310. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  311. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  312. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  313. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  314. package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
  315. package/es/mobx/UserState.js +0 -144
  316. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  317. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  318. package/lib/assets/fonts/TruenoBd.otf +0 -0
  319. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  320. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  321. package/lib/common/AffiliateProductModal/index.js +0 -582
  322. package/lib/common/AffiliateProductModal/index.less +0 -146
  323. package/lib/common/CardCarousel/index.js +0 -171
  324. package/lib/common/CardCarousel/index.less +0 -28
  325. package/lib/common/CropperModal/index.js +0 -126
  326. package/lib/common/CropperModal/index.less +0 -29
  327. package/lib/common/MyModal/index.js +0 -417
  328. package/lib/common/MyModal/index.less +0 -74
  329. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  330. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  331. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  332. package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
  333. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  334. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  335. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  336. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  337. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  338. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  339. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  340. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  341. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  342. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  343. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  344. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  345. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  346. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  347. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  348. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  349. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  350. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  351. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  352. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  353. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  354. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  355. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  356. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  357. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  358. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  359. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  360. package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  361. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  362. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  363. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  364. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  365. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  366. package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  367. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  368. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  369. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  370. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  371. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  372. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  373. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  374. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  375. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  376. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  377. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  378. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  379. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  380. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  381. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  382. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  383. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  384. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  385. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  386. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  387. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  388. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  389. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  390. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  391. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  392. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  393. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  394. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  395. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  396. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  397. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  398. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  399. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  400. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  401. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  402. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  403. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  404. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  405. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  406. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  407. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  408. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  409. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  410. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  411. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  412. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  413. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  414. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  415. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  416. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  417. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  418. package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
  419. package/lib/mobx/UserState.js +0 -144
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.addZero = exports.addUrlQuery = void 0;
7
7
  exports.asyncDataURLtoImage = asyncDataURLtoImage;
8
- exports.checkLogin = exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
8
+ exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
9
9
  exports.commonFetch = commonFetch;
10
10
  exports.convertCount = exports.compatibleNewPageData = void 0;
11
11
  exports.convertImageUrl = convertImageUrl;
@@ -16,13 +16,11 @@ exports.dragSource = exports.downloadBase64Image = void 0;
16
16
  exports.ensure = ensure;
17
17
  exports.getGAData = exports.getColorRgba = void 0;
18
18
  exports.getPageDataMap = getPageDataMap;
19
- exports.getUrlParams = void 0;
20
- exports.goLogin = goLogin;
21
- exports.importAsync = void 0;
22
- exports.isLogin = isLogin;
23
- exports.onListenTouch = exports.nextTick = exports.navigateTo = void 0;
19
+ exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
20
+ exports.navigateToWithSearch = navigateToWithSearch;
21
+ exports.nextTick = void 0;
24
22
  exports.pushGA = pushGA;
25
- exports.setDefaultAddressFromIP = exports.pxToRem = void 0;
23
+ exports.pxToRem = void 0;
26
24
  exports.shareFacebook = shareFacebook;
27
25
  exports.shareLinkedin = shareLinkedin;
28
26
  exports.shareTwitter = shareTwitter;
@@ -37,14 +35,8 @@ var _uuid = require("uuid");
37
35
 
38
36
  var _qs = _interopRequireDefault(require("qs"));
39
37
 
40
- var _androidUtil = require("./androidUtil");
41
-
42
- var _storeUtil = require("./storeUtil");
43
-
44
38
  var _constants = require("../constants");
45
39
 
46
- var _mobx = require("../mobx");
47
-
48
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
49
41
 
50
42
  var __assign = void 0 && (void 0).__assign || function () {
@@ -296,29 +288,20 @@ function commonFetch(url, data, method) {
296
288
  });
297
289
  }
298
290
 
299
- var navigateTo = function navigateTo(url, state) {
300
- console.log(url);
301
-
291
+ var navigateTo = function navigateTo(url) {
302
292
  if (!url) {
303
293
  return;
304
294
  }
305
295
 
306
296
  var _a = url.split(';'),
307
297
  h5Url = _a[0],
308
- appUrl = _a[1];
309
-
310
- if (appUrl && (0, _androidUtil.browserVersion)().isApp) {
311
- window.location.href = appUrl;
312
- } // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
298
+ appUrl = _a[1]; // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
313
299
 
314
300
 
315
301
  if (!appUrl && !h5Url.startsWith('/')) {
316
302
  window.location.href = h5Url;
317
303
  } else if (window.magicDesign.history) {
318
- window.magicDesign.history.push({
319
- pathname: h5Url,
320
- state: state
321
- });
304
+ window.magicDesign.history.push(url);
322
305
  } else if (window.magicDesign.navigatePreUrl) {
323
306
  // 预览模式跳转
324
307
  if (h5Url.startsWith('/')) {
@@ -328,110 +311,20 @@ var navigateTo = function navigateTo(url, state) {
328
311
  }
329
312
  }
330
313
  };
331
- /** 判断是否登录状态 */
314
+ /** 携带search 跳转 */
332
315
 
333
316
 
334
317
  exports.navigateTo = navigateTo;
335
318
 
336
- function isLogin() {
337
- return localStorage.getItem('isLogin') === 'Y';
338
- }
339
- /**
340
- * 跳转登陆页面
341
- * SF打开的页面,需要跳转到手机验证码登陆页面
342
- * @param {*} state
343
- */
344
-
345
-
346
- function goLogin(state, replaceFlag) {
347
- if (state === void 0) {
348
- state = {};
349
- }
350
-
351
- if (replaceFlag === void 0) {
352
- replaceFlag = false;
353
- }
354
-
355
- var isFromSf = (0, _storeUtil.getStore)(_constants.STORE_KEY.IS_FROM_SF);
356
- var signUrl = isFromSf === 'Y' ? '/sign-in-opt' : '/sign-in';
319
+ function navigateToWithSearch(url, search, state) {
320
+ var _a;
357
321
 
358
- if (replaceFlag) {
359
- window.magicDesign.history.replace({
360
- pathname: signUrl,
361
- state: state
362
- });
363
- } else {
364
- navigateTo(signUrl, state);
365
- }
322
+ (_a = window.magicDesign) === null || _a === void 0 ? void 0 : _a.history.push({
323
+ pathname: url,
324
+ search: search,
325
+ state: state
326
+ });
366
327
  }
367
- /**
368
- * 检查是否登录 未登录返回登录页
369
- * @param {boolean?} isLead 是否引导登录
370
- * @returns boolean
371
- */
372
-
373
-
374
- var checkLogin = function checkLogin(isLead, redirectUrl, replaceFlag) {
375
- if (isLead === void 0) {
376
- isLead = true;
377
- }
378
-
379
- if (!isLogin()) {
380
- if (isLead) {
381
- if ((0, _androidUtil.browserVersion)().isApp) {
382
- goToLoginApp();
383
- } else {
384
- var _a = window.location,
385
- pathname = _a.pathname,
386
- search = _a.search,
387
- hash = _a.hash;
388
-
389
- var _redirectUrl = pathname + search + hash;
390
-
391
- goLogin({
392
- redirectUrl: redirectUrl || _redirectUrl
393
- }, replaceFlag);
394
- }
395
- }
396
-
397
- return false;
398
- }
399
-
400
- return true;
401
- };
402
- /**
403
- * TODO 根据IP获取地址信息
404
- */
405
-
406
-
407
- exports.checkLogin = checkLogin;
408
-
409
- var setDefaultAddressFromIP = function setDefaultAddressFromIP() {
410
- /** 设置初始地址 */
411
-
412
- /** 接口返回数据addrPath: "1|2|137088|137089|137090" 保留后两个再拼上contactStdId
413
- * 未登陆造数据和真实数据一致使用countryId占位
414
- */
415
-
416
- /** 138375,138376,126065,126066 */
417
- if (!_mobx.userState.state.userAddress) {
418
- _mobx.userState.setState({
419
- userAddress: {
420
- _FROM: 'ip',
421
- addrPath: 'countryId|countryId1T|countryId2T|138375|138376|126065',
422
- city: 'CITY OF MANILA',
423
- contactStdId: 126066,
424
- // country: 'CITY OF MANILA',
425
- district: 'SAN MIGUEL',
426
- street: 'Barangay 637',
427
- province: 'NCR, CITY OF MANILA, FIRST DISTRICT',
428
- type: 'address'
429
- }
430
- });
431
- }
432
- };
433
-
434
- exports.setDefaultAddressFromIP = setDefaultAddressFromIP;
435
328
 
436
329
  var addUrlQuery = function addUrlQuery(url, queryObj) {
437
330
  if (/\?/.test(url)) {
@@ -759,7 +652,7 @@ function pushGA(data, eventName) {
759
652
  elementName: data.elementName
760
653
  };
761
654
  console.log('GA push', eventName, eventData);
762
- if (window.gtag) window.gtag('event', eventName, eventData);
655
+ window.gtag('event', eventName, eventData);
763
656
  }
764
657
  } catch (error) {
765
658
  console.error(error);
@@ -872,7 +765,8 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
872
765
  exports.asyncNextTick = asyncNextTick;
873
766
 
874
767
  var convertToRem = function convertToRem(value) {
875
- // return value; // PTO项目 解开注释
768
+ return value; // PTO项目 解开注释
769
+
876
770
  if (window.magicDesign.device === 'pc') {
877
771
  return value + "px";
878
772
  }
@@ -891,7 +785,8 @@ var convertToRem = function convertToRem(value) {
891
785
  exports.convertToRem = convertToRem;
892
786
 
893
787
  var pxToRem = function pxToRem(styleObj) {
894
- // return styleObj; // PTO项目 解开注释
788
+ return styleObj; // PTO项目 解开注释
789
+
895
790
  if (window.magicDesign.device === 'pc') {
896
791
  return styleObj;
897
792
  }
@@ -1027,54 +922,4 @@ var convertCount = function convertCount(value) {
1027
922
  return newValue;
1028
923
  };
1029
924
 
1030
- exports.convertCount = convertCount;
1031
-
1032
- var onListenTouch = function onListenTouch(cls, leftFunc, rightFunc) {
1033
- var box = document.querySelector(cls); // 监听对象
1034
-
1035
- var startTime = ''; // 触摸开始时间
1036
-
1037
- var startDistanceX = ''; // 触摸开始X轴位置
1038
-
1039
- var startDistanceY = ''; // 触摸开始Y轴位置
1040
-
1041
- var endTime = ''; // 触摸结束时间
1042
-
1043
- var endDistanceX = ''; // 触摸结束X轴位置
1044
-
1045
- var endDistanceY = ''; // 触摸结束Y轴位置
1046
-
1047
- var moveTime = ''; // 触摸时间
1048
-
1049
- var moveDistanceX = ''; // 触摸移动X轴距离
1050
-
1051
- var moveDistanceY = ''; // 触摸移动Y轴距离
1052
-
1053
- box.addEventListener('touchstart', function (e) {
1054
- startTime = new Date().getTime();
1055
- startDistanceX = e.touches[0].screenX;
1056
- startDistanceY = e.touches[0].screenY;
1057
- });
1058
- box.addEventListener('touchend', function (e) {
1059
- endTime = new Date().getTime();
1060
- endDistanceX = e.changedTouches[0].screenX;
1061
- endDistanceY = e.changedTouches[0].screenY;
1062
- moveTime = endTime - startTime;
1063
- moveDistanceX = startDistanceX - endDistanceX;
1064
- moveDistanceY = startDistanceY - endDistanceY; // 判断滑动距离超过40 且 时间小于500毫秒
1065
-
1066
- if ((Math.abs(moveDistanceX) > 40 || Math.abs(moveDistanceY) > 40) && moveTime < 500) {
1067
- // 判断X轴移动的距离是否大于Y轴移动的距离
1068
- if (Math.abs(moveDistanceX) > Math.abs(moveDistanceY)) {
1069
- // 左右
1070
- if (moveDistanceX > 0) leftFunc();else rightFunc();
1071
- } else {
1072
- // 上下
1073
- return moveDistanceY > 0 ? 'top' : 'bottom';
1074
- }
1075
- }
1076
- });
1077
- return null;
1078
- };
1079
-
1080
- exports.onListenTouch = onListenTouch;
925
+ exports.convertCount = convertCount;
@@ -286,22 +286,6 @@ var getCoupon = function getCoupon(couponId) {
286
286
  });
287
287
  };
288
288
 
289
- function isUrl(string) {
290
- // var pattern = new RegExp('^(https?:\\/\\/)?' + // 协议
291
- // '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // 域名
292
- // '((\\d{1,3}\\.){3}\\d{1,3}))' + // 或者 IP (v4) 地址
293
- // '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // 端口和路径
294
- // '(\\?[;&a-z\\d%_.~+=-]*)?' + // 查询字符串
295
- // '(\\#[-a-z\\d_]*)?$', 'i'); // fragment locator
296
- // return !!pattern.test(string);
297
- try {
298
- new URL(string);
299
- return true;
300
- } catch (_) {
301
- return false;
302
- }
303
- }
304
-
305
289
  var clickUrl = function clickUrl(url) {
306
290
  if (url === void 0) {
307
291
  url = '';
@@ -326,17 +310,6 @@ var clickUrl = function clickUrl(url) {
326
310
  url: params.link
327
311
  }
328
312
  });
329
- /** 锚点跳转 */
330
-
331
- if (params.type === 'ANCHOR') {
332
- (0, _commonUtil.ensure)(function () {
333
- var nodeId = isPc() ? params.data.pcNodeId : params.data.mobileNodeId;
334
- document.querySelector("#node-" + nodeId).scrollIntoView({
335
- behavior: 'smooth'
336
- });
337
- });
338
- return;
339
- }
340
313
 
341
314
  if ((0, _androidUtil.browserVersion)().isAshitaApp) {
342
315
  (0, _androidUtil.sendToApp)(data);
@@ -369,25 +342,9 @@ var clickUrl = function clickUrl(url) {
369
342
  }
370
343
 
371
344
  return;
372
- } // 输入的是完整的跳转地址
373
-
374
-
375
- if (isUrl(link)) {
376
- if (!link.includes(window.location.host)) {
377
- // 跳转外链 需要把userToken带上
378
- if (link.includes('?')) {
379
- var a = link + "&userToken=" + (localStorage.getItem('h5Token') || '');
380
- window.open(a);
381
- } else {
382
- var a = link + "?userToken=" + (localStorage.getItem('h5Token') || '');
383
- window.open(a);
384
- }
385
- } else {
386
- window.open(link);
387
- }
388
- } else {
389
- (0, _commonUtil.navigateTo)(link);
390
345
  }
346
+
347
+ (0, _commonUtil.navigateTo)(link);
391
348
  }
392
349
  };
393
350
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.formatCurrencyWithSymbolNotSpace = exports.formatCurrencyWithSymbol = exports.formatCurrency = exports.formatBackendCurrency = exports.currencyToFont = exports.calcFloatCount = exports.addSeparators = void 0;
6
+ exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.formatCurrencyWithSymbol = exports.formatCurrency = exports.formatBackendCurrency = exports.currencyToFont = exports.calcFloatCount = exports.addSeparators = void 0;
7
7
 
8
8
  var _divide = _interopRequireDefault(require("lodash/divide"));
9
9
 
@@ -105,13 +105,6 @@ var formatCurrencyWithSymbol = function formatCurrencyWithSymbol(num) {
105
105
  var ret = formatCurrency(num);
106
106
  return getPricePrefix() + " " + ret;
107
107
  };
108
-
109
- exports.formatCurrencyWithSymbol = formatCurrencyWithSymbol;
110
-
111
- var formatCurrencyWithSymbolNotSpace = function formatCurrencyWithSymbolNotSpace(num) {
112
- var ret = formatCurrency(num);
113
- return "" + getPricePrefix() + ret;
114
- };
115
108
  /**
116
109
  * TODO 未兼容科学计数法(小数点后7位)
117
110
  * 计算浮点位数
@@ -120,7 +113,7 @@ var formatCurrencyWithSymbolNotSpace = function formatCurrencyWithSymbolNotSpace
120
113
  */
121
114
 
122
115
 
123
- exports.formatCurrencyWithSymbolNotSpace = formatCurrencyWithSymbolNotSpace;
116
+ exports.formatCurrencyWithSymbol = formatCurrencyWithSymbol;
124
117
 
125
118
  var calcFloatCount = function calcFloatCount(number) {
126
119
  var numbString = String(number);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.65",
4
+ "version": "1.0.66",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
@@ -36,7 +36,6 @@
36
36
  "ramda": "^0.28.0",
37
37
  "react-ace": "^10.1.0",
38
38
  "react-color": "2.17.0",
39
- "react-cropper": "^2.3.3",
40
39
  "react-router-dom": "5.3.0",
41
40
  "react-slick": "^0.29.0",
42
41
  "replace": "^1.2.1",
Binary file
Binary file
Binary file