@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
@@ -1,89 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getDefaultJSON = exports.OrdersGroupSourceJSON = void 0;
7
-
8
- var _uuid = require("uuid");
9
-
10
- var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
11
- var groupId = (0, _uuid.v4)();
12
- return {
13
- id: groupId,
14
- title: {
15
- parentId: groupId,
16
- id: (0, _uuid.v4)(),
17
- open: true,
18
- type: 'TEXT',
19
- specialContent: [],
20
- text: text || 'Name',
21
- content: {
22
- sizeType: 'Customize font styles',
23
- fontFamily: 'Open Sans',
24
- fontWeight: 400,
25
- fontSize: 12,
26
- color: '#2C2C2C',
27
- width: 0,
28
- textAlign: 'center'
29
- },
30
- underline: {
31
- open: false,
32
- textDecorationColor: '',
33
- textDecorationStyle: 'solid'
34
- },
35
- vertical: {}
36
- },
37
- image: {
38
- parentId: groupId,
39
- id: (0, _uuid.v4)(),
40
- open: true,
41
- type: 'IMAGE',
42
- content: {
43
- h5Name: 'name2',
44
- pcName: 'name2',
45
- h5ImgSrc: '',
46
- pcImgSrc: '',
47
- clickUrl: ''
48
- },
49
- hover: {
50
- open: false,
51
- backgroundType: 'enlarge',
52
- magnification: 1.5,
53
- pcImgHoverUrl: '',
54
- h5ImgHoverUrl: ''
55
- }
56
- },
57
- sourceType: text
58
- };
59
- };
60
-
61
- exports.OrdersGroupSourceJSON = OrdersGroupSourceJSON;
62
-
63
- var getDefaultJSON = function getDefaultJSON() {
64
- return {
65
- id: (0, _uuid.v4)(),
66
- type: 'ORDERS',
67
- groupSource: [OrdersGroupSourceJSON('To Pay'), OrdersGroupSourceJSON('To Ship'), OrdersGroupSourceJSON('To Receive'), OrdersGroupSourceJSON('Done'), OrdersGroupSourceJSON('Cancelled')],
68
- spacing: {
69
- pc: {
70
- paddingTop: 0,
71
- paddingBottom: 0,
72
- marginBottom: 0
73
- },
74
- mobile: {
75
- paddingTop: 0,
76
- paddingBottom: 0,
77
- marginBottom: 0
78
- }
79
- },
80
- background: {
81
- opacity: 100,
82
- color: '#FFFFFF',
83
- image: '',
84
- bgType: 'color'
85
- }
86
- };
87
- };
88
-
89
- exports.getDefaultJSON = getDefaultJSON;
@@ -1,84 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _mobile = _interopRequireDefault(require("./mobile"));
11
-
12
- var _defaultJSON = require("./defaultJSON");
13
-
14
- var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
-
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
22
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
-
24
- var __extends = void 0 && (void 0).__extends || function () {
25
- var _extendStatics = function extendStatics(d, b) {
26
- _extendStatics = Object.setPrototypeOf || {
27
- __proto__: []
28
- } instanceof Array && function (d, b) {
29
- d.__proto__ = b;
30
- } || function (d, b) {
31
- for (var p in b) {
32
- if (b.hasOwnProperty(p)) d[p] = b[p];
33
- }
34
- };
35
-
36
- return _extendStatics(d, b);
37
- };
38
-
39
- return function (d, b) {
40
- _extendStatics(d, b);
41
-
42
- function __() {
43
- this.constructor = d;
44
- }
45
-
46
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
- };
48
- }();
49
-
50
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
- var c = arguments.length,
52
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
- d;
54
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
- }
57
- return c > 3 && r && Object.defineProperty(target, key, r), r;
58
- };
59
-
60
- var Orders =
61
- /** @class */
62
- function (_super) {
63
- __extends(Orders, _super);
64
-
65
- function Orders() {
66
- return _super !== null && _super.apply(this, arguments) || this;
67
- }
68
-
69
- Orders.prototype.render = function () {
70
- var nodeData = this.props.nodeData;
71
- return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
- data: nodeData
73
- }));
74
- };
75
-
76
- Orders.defaultProps = {};
77
- Orders.type = 'ORDERS';
78
- Orders.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
- Orders = __decorate([_compositeDecorator["default"]], Orders);
80
- return Orders;
81
- }(_react.Component);
82
-
83
- var _default = Orders;
84
- exports["default"] = _default;
@@ -1,345 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.orderData = exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
- var _components = require("../../../../../meta-comp/components");
13
-
14
- var _locale = require("../../../../../locale");
15
-
16
- var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
17
-
18
- var _commonUtil = require("../../../../../utils/commonUtil");
19
-
20
- var _index = require("../../PersonalInformation/mobile/index");
21
-
22
- require("./index.less");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- var __extends = void 0 && (void 0).__extends || function () {
27
- var _extendStatics = function extendStatics(d, b) {
28
- _extendStatics = Object.setPrototypeOf || {
29
- __proto__: []
30
- } instanceof Array && function (d, b) {
31
- d.__proto__ = b;
32
- } || function (d, b) {
33
- for (var p in b) {
34
- if (b.hasOwnProperty(p)) d[p] = b[p];
35
- }
36
- };
37
-
38
- return _extendStatics(d, b);
39
- };
40
-
41
- return function (d, b) {
42
- _extendStatics(d, b);
43
-
44
- function __() {
45
- this.constructor = d;
46
- }
47
-
48
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
- };
50
- }();
51
-
52
- var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
53
- function adopt(value) {
54
- return value instanceof P ? value : new P(function (resolve) {
55
- resolve(value);
56
- });
57
- }
58
-
59
- return new (P || (P = Promise))(function (resolve, reject) {
60
- function fulfilled(value) {
61
- try {
62
- step(generator.next(value));
63
- } catch (e) {
64
- reject(e);
65
- }
66
- }
67
-
68
- function rejected(value) {
69
- try {
70
- step(generator["throw"](value));
71
- } catch (e) {
72
- reject(e);
73
- }
74
- }
75
-
76
- function step(result) {
77
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
78
- }
79
-
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- };
83
-
84
- var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
85
- var _ = {
86
- label: 0,
87
- sent: function sent() {
88
- if (t[0] & 1) throw t[1];
89
- return t[1];
90
- },
91
- trys: [],
92
- ops: []
93
- },
94
- f,
95
- y,
96
- t,
97
- g;
98
- return g = {
99
- next: verb(0),
100
- "throw": verb(1),
101
- "return": verb(2)
102
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
103
- return this;
104
- }), g;
105
-
106
- function verb(n) {
107
- return function (v) {
108
- return step([n, v]);
109
- };
110
- }
111
-
112
- function step(op) {
113
- if (f) throw new TypeError("Generator is already executing.");
114
-
115
- while (_) {
116
- try {
117
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
118
- if (y = 0, t) op = [op[0] & 2, t.value];
119
-
120
- switch (op[0]) {
121
- case 0:
122
- case 1:
123
- t = op;
124
- break;
125
-
126
- case 4:
127
- _.label++;
128
- return {
129
- value: op[1],
130
- done: false
131
- };
132
-
133
- case 5:
134
- _.label++;
135
- y = op[1];
136
- op = [0];
137
- continue;
138
-
139
- case 7:
140
- op = _.ops.pop();
141
-
142
- _.trys.pop();
143
-
144
- continue;
145
-
146
- default:
147
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
148
- _ = 0;
149
- continue;
150
- }
151
-
152
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
153
- _.label = op[1];
154
- break;
155
- }
156
-
157
- if (op[0] === 6 && _.label < t[1]) {
158
- _.label = t[1];
159
- t = op;
160
- break;
161
- }
162
-
163
- if (t && _.label < t[2]) {
164
- _.label = t[2];
165
-
166
- _.ops.push(op);
167
-
168
- break;
169
- }
170
-
171
- if (t[2]) _.ops.pop();
172
-
173
- _.trys.pop();
174
-
175
- continue;
176
- }
177
-
178
- op = body.call(thisArg, _);
179
- } catch (e) {
180
- op = [6, e];
181
- y = 0;
182
- } finally {
183
- f = t = 0;
184
- }
185
- }
186
-
187
- if (op[0] & 5) throw op[1];
188
- return {
189
- value: op[0] ? op[1] : void 0,
190
- done: true
191
- };
192
- }
193
- };
194
-
195
- var getAccountPageValue = function getAccountPageValue(key) {
196
- var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
197
- return accountPageValue ? accountPageValue[key] || '' : '';
198
- };
199
-
200
- var orderData = {
201
- 'To Pay': {
202
- key: 'toPayNum',
203
- route: '/main/order/1'
204
- },
205
- 'To Ship': {
206
- key: 'toDeliveryNum',
207
- route: '/main/order/2'
208
- },
209
- 'To Receive': {
210
- key: 'toReceiveNum',
211
- route: '/main/order/3'
212
- },
213
- Done: {
214
- key: 'toRatingNum',
215
- route: '/main/order/4'
216
- },
217
- Cancelled: {
218
- key: 'returnsNum',
219
- route: '/main/order/5'
220
- }
221
- };
222
- exports.orderData = orderData;
223
-
224
- var OrdersMobile =
225
- /** @class */
226
- function (_super) {
227
- __extends(OrdersMobile, _super);
228
-
229
- function OrdersMobile() {
230
- var _this = _super !== null && _super.apply(this, arguments) || this;
231
-
232
- _this.state = {
233
- orderStatus: getAccountPageValue('orderStatus') || {}
234
- };
235
-
236
- _this.onItemClick = function (v) {
237
- var _a;
238
-
239
- var routeUrl = (_a = orderData[v]) === null || _a === void 0 ? void 0 : _a.route;
240
- var selfUrl = (0, _commonUtil.ensure)(function () {
241
- return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
242
- }, '');
243
- (0, _commonUtil.navigateTo)(routeUrl || selfUrl);
244
- };
245
-
246
- _this.getInit = function () {
247
- return __awaiter(_this, void 0, void 0, function () {
248
- var orderStatus;
249
- return __generator(this, function (_a) {
250
- switch (_a.label) {
251
- case 0:
252
- return [4
253
- /*yield*/
254
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/orders/status/num', {}, 'GET')];
255
-
256
- case 1:
257
- orderStatus = _a.sent();
258
- this.setState({
259
- orderStatus: orderStatus
260
- });
261
- (0, _index.setAccountPageValue)({
262
- orderStatus: orderStatus
263
- });
264
- return [2
265
- /*return*/
266
- ];
267
- }
268
- });
269
- });
270
- };
271
-
272
- _this.getImageHtml = function (item) {
273
- var orderStatus = _this.state.orderStatus;
274
- var num = (0, _commonUtil.ensure)(function () {
275
- return orderStatus[orderData[item.sourceType].key];
276
- }, '');
277
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
278
- data: item.image,
279
- maxWidth: "100%"
280
- }), num ? /*#__PURE__*/_react["default"].createElement("span", {
281
- className: "pot"
282
- }, num) : null);
283
- };
284
-
285
- return _this;
286
- }
287
-
288
- OrdersMobile.prototype.componentDidMount = function () {
289
- if ((0, _commonUtil.isLogin)()) {
290
- this.getInit();
291
- }
292
- };
293
-
294
- OrdersMobile.prototype.render = function () {
295
- var _this = this;
296
-
297
- var data = this.props.data;
298
- return /*#__PURE__*/_react["default"].createElement("div", {
299
- className: (0, _classnames["default"])('orders-mobile')
300
- }, /*#__PURE__*/_react["default"].createElement("div", {
301
- className: "fixed-wrap"
302
- }, /*#__PURE__*/_react["default"].createElement("div", {
303
- className: "top"
304
- }, /*#__PURE__*/_react["default"].createElement("span", {
305
- className: "title"
306
- }, (0, _locale.i18n)('ORDERS')), /*#__PURE__*/_react["default"].createElement("div", {
307
- className: "btn-wrap"
308
- }, /*#__PURE__*/_react["default"].createElement("span", {
309
- className: "text",
310
- onClick: function onClick() {
311
- return (0, _commonUtil.navigateTo)('/main/order/0');
312
- }
313
- }, (0, _locale.i18n)('VIEW_ALL_ORDERS')), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
314
- color: "#C7C7C7",
315
- size: 13,
316
- type: "icon-outlined-right"
317
- }))), /*#__PURE__*/_react["default"].createElement("div", {
318
- className: "list"
319
- }, data.groupSource.map(function (item) {
320
- return /*#__PURE__*/_react["default"].createElement("div", {
321
- key: item.id,
322
- className: "item",
323
- onClick: function onClick() {
324
- return _this.onItemClick(item.sourceType);
325
- }
326
- }, /*#__PURE__*/_react["default"].createElement("div", {
327
- className: "img-wrap"
328
- }, item.image.open && _this.getImageHtml(item)), item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
329
- className: "title",
330
- data: item.title,
331
- onTextInput: function onTextInput(text) {
332
- item.title.text = text;
333
- }
334
- }));
335
- }))));
336
- };
337
-
338
- OrdersMobile.defaultProps = {
339
- data: {}
340
- };
341
- return OrdersMobile;
342
- }(_react["default"].Component);
343
-
344
- var _default = OrdersMobile;
345
- exports["default"] = _default;
@@ -1,82 +0,0 @@
1
- .orders-mobile {
2
- padding: 0 0.32rem;
3
- }
4
- .orders-mobile .fixed-wrap {
5
- display: flex;
6
- flex-direction: column;
7
- background-color: #fff;
8
- box-shadow: 0 0.06rem 0.12rem rgba(0, 0, 0, 0.16);
9
- border-radius: 0.32rem;
10
- width: auto;
11
- padding: 0.32rem;
12
- }
13
- .orders-mobile .fixed-wrap .top {
14
- display: flex;
15
- flex-direction: row;
16
- justify-content: space-between;
17
- font-weight: 600;
18
- line-height: 0.36rem;
19
- color: var(--font-color);
20
- }
21
- .orders-mobile .fixed-wrap .top .title {
22
- font-size: 0.28rem;
23
- font-weight: 600;
24
- color: #2C2C2C;
25
- }
26
- .orders-mobile .fixed-wrap .top .btn-wrap {
27
- display: flex;
28
- flex-direction: row;
29
- justify-content: center;
30
- align-items: center;
31
- }
32
- .orders-mobile .fixed-wrap .top .btn-wrap .text {
33
- font-size: 0.28rem;
34
- color: #929292;
35
- font-weight: 400;
36
- margin-right: 0.08rem;
37
- }
38
- .orders-mobile .fixed-wrap .list {
39
- display: flex;
40
- flex-direction: row;
41
- justify-content: space-between;
42
- height: 1.32rem;
43
- margin-top: 0.48rem;
44
- margin-bottom: 0.02rem;
45
- }
46
- .orders-mobile .fixed-wrap .list .item {
47
- display: flex;
48
- flex-direction: column;
49
- justify-content: center;
50
- align-items: center;
51
- flex: 1;
52
- }
53
- .orders-mobile .fixed-wrap .list .item .img-wrap {
54
- position: relative;
55
- display: flex;
56
- margin-bottom: 0.16rem;
57
- width: 0.72rem;
58
- height: 0.72rem;
59
- }
60
- .orders-mobile .fixed-wrap .list .item .img-wrap .pot {
61
- display: inline-block;
62
- padding: 0 0.08rem;
63
- background: #ce1126;
64
- border: 0.02rem solid #ce1126;
65
- font-size: 0.16rem;
66
- text-align: center;
67
- color: #fff;
68
- position: absolute;
69
- top: -0.04rem;
70
- left: 0.4rem;
71
- min-width: 0.32rem;
72
- height: 0.32rem;
73
- border-radius: 50%;
74
- line-height: 0.3rem;
75
- }
76
- .orders-mobile .fixed-wrap .list .item .title {
77
- height: 0.44rem;
78
- font-size: 0.24rem;
79
- line-height: 0.22rem;
80
- color: #2C2C2C;
81
- text-align: center;
82
- }
@@ -1,95 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getDefaultJSON = exports.PersonalInfoGroupSourceJSON = void 0;
7
-
8
- var _uuid = require("uuid");
9
-
10
- var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
11
- var groupId = (0, _uuid.v4)();
12
- return {
13
- id: groupId,
14
- title: {
15
- parentId: groupId,
16
- id: (0, _uuid.v4)(),
17
- open: true,
18
- type: 'TEXT',
19
- specialContent: [],
20
- text: text || 'Name',
21
- content: {
22
- sizeType: 'Customize font styles',
23
- fontFamily: 'Open Sans',
24
- fontWeight: 400,
25
- fontSize: 12,
26
- color: '#fff',
27
- width: 0,
28
- textAlign: 'center'
29
- },
30
- underline: {
31
- open: false,
32
- textDecorationColor: '',
33
- textDecorationStyle: 'solid'
34
- },
35
- vertical: {}
36
- },
37
- number: {
38
- parentId: groupId,
39
- id: (0, _uuid.v4)(),
40
- open: true,
41
- type: 'TEXT',
42
- specialContent: [],
43
- text: 0,
44
- content: {
45
- sizeType: 'Customize font styles',
46
- fontFamily: 'Open Sans',
47
- fontWeight: 600,
48
- fontSize: 18,
49
- color: '#fff',
50
- width: 0,
51
- textAlign: 'center'
52
- },
53
- underline: {
54
- open: false,
55
- textDecorationColor: '',
56
- textDecorationStyle: 'solid'
57
- },
58
- vertical: {}
59
- },
60
- sourceType: text
61
- };
62
- };
63
-
64
- exports.PersonalInfoGroupSourceJSON = PersonalInfoGroupSourceJSON;
65
-
66
- var getDefaultJSON = function getDefaultJSON() {
67
- return {
68
- id: (0, _uuid.v4)(),
69
- type: 'PERSONAL_INFOMATION',
70
- login: {
71
- open: true
72
- },
73
- groupSource: [PersonalInfoGroupSourceJSON('Wishlist'), PersonalInfoGroupSourceJSON('Stores'), PersonalInfoGroupSourceJSON('Vouchers'), PersonalInfoGroupSourceJSON('Recently Viewed')],
74
- spacing: {
75
- pc: {
76
- paddingTop: 0,
77
- paddingBottom: 0,
78
- marginBottom: 0
79
- },
80
- mobile: {
81
- paddingTop: 0,
82
- paddingBottom: 0,
83
- marginBottom: 0
84
- }
85
- },
86
- background: {
87
- opacity: 100,
88
- color: '#3d5fa4',
89
- image: '',
90
- bgType: 'color'
91
- }
92
- };
93
- };
94
-
95
- exports.getDefaultJSON = getDefaultJSON;