@fonixtree/magic-design 1.0.66 → 1.0.68
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.
- package/es/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/Trueno-Light.otf +0 -0
- package/es/assets/fonts/Trueno-Regular.otf +0 -0
- package/es/assets/fonts/TruenoBd.otf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +62 -6
- package/es/assets/fonts/magic-box-iconfont.css.bak +35 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +36 -2
- package/es/assets/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/assets/less/button.less +5 -0
- package/es/assets/less/cylon-antd.less +7246 -1686
- package/es/assets/less/font.less +22 -0
- package/es/common/AffiliateProductModal/index.js +582 -0
- package/es/common/AffiliateProductModal/index.less +146 -0
- package/es/common/Button/index.less +0 -1
- package/es/common/CardCarousel/index.js +171 -0
- package/es/common/CardCarousel/index.less +28 -0
- package/es/common/CountDown/index.js +20 -11
- package/es/common/CropperModal/index.js +126 -0
- package/es/common/CropperModal/index.less +29 -0
- package/es/common/GroupList/index.js +7 -2
- package/es/common/ImagePicker/index.js +1 -3
- package/es/common/LinkModal/CouponTable/index.js +3 -3
- package/es/common/LinkModal/CustomTable/index.js +1 -0
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/index.js +14 -2
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/MyModal/index.js +417 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/ProductModal/index.js +38 -3
- package/es/common/ProductSource/index.js +59 -18
- package/es/common/UrlPicker/AnchorModal/index.js +170 -0
- package/es/common/UrlPicker/AnchorModal/index.less +21 -0
- package/es/common/UrlPicker/index.js +52 -9
- package/es/common/index.js +24 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -2
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/Video/index.js +1 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/es/composite-comp/bol/components/Wallet/index.js +11 -15
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
- package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/es/composite-comp/common/components/ProductItem/index.js +22 -20
- package/es/composite-comp/common/components/ProductItem/index.less +2 -12
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
- package/es/composite-comp/dito/components/CommonFunctions/index.js +84 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
- package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
- package/es/composite-comp/dito/components/Orders/index.js +84 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.js +345 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.less +82 -0
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
- package/es/composite-comp/dito/components/PersonalInformation/index.js +84 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +587 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +133 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -5
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
- package/es/constants/component-types.js +45 -3
- package/es/constants/index.js +74 -5
- package/es/constants/layout.js +48 -1
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/es/core/Designer/ChatRobot/index.js +84 -17
- package/es/core/Designer/ChatRobot/index.less +69 -28
- package/es/core/Designer/ConfigPanel/index.js +14 -3
- package/es/core/Designer/FonixtreeGpt/index.js +222 -29
- package/es/core/Designer/PageCompList/index.js +6 -5
- package/es/core/Designer/QuickMenuBar/index.js +11 -5
- package/es/core/Designer/QuickMenuBar/index.less +4 -0
- package/es/core/Designer/RenderHtml/index.js +18 -15
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/es/core/Designer/ToolBarModal/index.js +68 -22
- package/es/core/Designer/ToolBarModal/index.less +3 -2
- package/es/core/Designer/index.js +26 -2
- package/es/core/Renderer/index.js +74 -29
- package/es/decorator/compositeDecorator.js +33 -6
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +17 -3
- package/es/locale/es/es.json +17 -3
- package/es/locale/id/id.json +17 -3
- package/es/meta-comp/components/Image/index.js +31 -25
- package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/es/meta-comp/components/Text/index.js +4 -1
- package/es/meta-comp/components/Text/index.less +8 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/mobx/Frame.js +17 -2
- package/es/mobx/UserState.js +144 -0
- package/es/mobx/index.js +9 -3
- package/es/utils/androidUtil.js +13 -2
- package/es/utils/businessUtil.js +25 -3
- package/es/utils/commonUtil.js +177 -22
- package/es/utils/coreUtil.js +45 -2
- package/es/utils/currencyUtil.js +9 -2
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/Trueno-Light.otf +0 -0
- package/lib/assets/fonts/Trueno-Regular.otf +0 -0
- package/lib/assets/fonts/TruenoBd.otf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +62 -6
- package/lib/assets/fonts/magic-box-iconfont.css.bak +35 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +36 -2
- package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/assets/less/button.less +5 -0
- package/lib/assets/less/cylon-antd.less +7246 -1686
- package/lib/assets/less/font.less +22 -0
- package/lib/common/AffiliateProductModal/index.js +582 -0
- package/lib/common/AffiliateProductModal/index.less +146 -0
- package/lib/common/Button/index.less +0 -1
- package/lib/common/CardCarousel/index.js +171 -0
- package/lib/common/CardCarousel/index.less +28 -0
- package/lib/common/CountDown/index.js +20 -11
- package/lib/common/CropperModal/index.js +126 -0
- package/lib/common/CropperModal/index.less +29 -0
- package/lib/common/GroupList/index.js +7 -2
- package/lib/common/ImagePicker/index.js +1 -3
- package/lib/common/LinkModal/CouponTable/index.js +3 -3
- package/lib/common/LinkModal/CustomTable/index.js +1 -0
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/index.js +14 -2
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/MyModal/index.js +417 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/ProductModal/index.js +38 -3
- package/lib/common/ProductSource/index.js +59 -18
- package/lib/common/UrlPicker/AnchorModal/index.js +170 -0
- package/lib/common/UrlPicker/AnchorModal/index.less +21 -0
- package/lib/common/UrlPicker/index.js +52 -9
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -2
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/Video/index.js +1 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -54
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +103 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +168 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +22 -20
- package/lib/composite-comp/common/components/ProductItem/index.less +2 -12
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
- package/lib/composite-comp/dito/components/CommonFunctions/index.js +84 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +107 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +102 -0
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
- package/lib/composite-comp/dito/components/Orders/index.js +84 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +345 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +82 -0
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +84 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +587 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +133 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -5
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -5
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +6 -9
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +62 -66
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +121 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +122 -0
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
- package/lib/constants/component-types.js +45 -3
- package/lib/constants/index.js +74 -5
- package/lib/constants/layout.js +48 -1
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +128 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/lib/core/Designer/ChatRobot/index.js +84 -17
- package/lib/core/Designer/ChatRobot/index.less +69 -28
- package/lib/core/Designer/ConfigPanel/index.js +14 -3
- package/lib/core/Designer/FonixtreeGpt/index.js +222 -29
- package/lib/core/Designer/PageCompList/index.js +6 -5
- package/lib/core/Designer/QuickMenuBar/index.js +11 -5
- package/lib/core/Designer/QuickMenuBar/index.less +4 -0
- package/lib/core/Designer/RenderHtml/index.js +18 -15
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/lib/core/Designer/ToolBarModal/index.js +68 -22
- package/lib/core/Designer/ToolBarModal/index.less +3 -2
- package/lib/core/Designer/index.js +26 -2
- package/lib/core/Renderer/index.js +74 -29
- package/lib/decorator/compositeDecorator.js +33 -6
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +17 -3
- package/lib/locale/es/es.json +17 -3
- package/lib/locale/id/id.json +17 -3
- package/lib/meta-comp/components/Image/index.js +31 -25
- package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/lib/meta-comp/components/Text/index.js +4 -1
- package/lib/meta-comp/components/Text/index.less +8 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/mobx/Frame.js +17 -2
- package/lib/mobx/UserState.js +144 -0
- package/lib/mobx/index.js +9 -3
- package/lib/utils/androidUtil.js +13 -2
- package/lib/utils/businessUtil.js +25 -3
- package/lib/utils/commonUtil.js +177 -22
- package/lib/utils/coreUtil.js +45 -2
- package/lib/utils/currencyUtil.js +9 -2
- package/package.json +2 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
.affiliateModalCot {
|
|
2
|
+
width: 1200px;
|
|
3
|
+
right: unset !important;
|
|
4
|
+
left: unset !important;
|
|
5
|
+
|
|
6
|
+
.proModalWrap {
|
|
7
|
+
thead .cylon-checkbox {
|
|
8
|
+
visibility: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.content {
|
|
12
|
+
display: flex;
|
|
13
|
+
margin-bottom: 8px;
|
|
14
|
+
|
|
15
|
+
.rightCot {
|
|
16
|
+
width: calc(100% - 260px);
|
|
17
|
+
margin-left: 16px;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
|
|
22
|
+
.prodImg {
|
|
23
|
+
display: inline-block;
|
|
24
|
+
width: 36px;
|
|
25
|
+
height: 36px;
|
|
26
|
+
background-size: cover;
|
|
27
|
+
background-position: 50% 50%;
|
|
28
|
+
background-repeat: no-repeat;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.selectedCot {
|
|
32
|
+
padding-right: 18px;
|
|
33
|
+
margin-left: 4px;
|
|
34
|
+
height: 78px;
|
|
35
|
+
background: #f8f8f8;
|
|
36
|
+
border: 1px solid #e0e0e0;
|
|
37
|
+
border-radius: 2px;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
// flex-wrap: wrap;
|
|
41
|
+
overflow-x: auto;
|
|
42
|
+
|
|
43
|
+
.selectedItem {
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
margin-top: 12px;
|
|
46
|
+
margin-left: 18px;
|
|
47
|
+
height: 52px;
|
|
48
|
+
position: relative;
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
.selectedItemImg {
|
|
52
|
+
width: 52px;
|
|
53
|
+
height: 52px;
|
|
54
|
+
border: 1px solid #4477ee !important;
|
|
55
|
+
box-shadow: 0 0 0 2px rgba(68, 119, 238, 0.15);
|
|
56
|
+
border-radius: 2px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.selectedItemClose {
|
|
60
|
+
display: flex;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.selectedItemClose {
|
|
65
|
+
display: none;
|
|
66
|
+
border: 1px solid #000;
|
|
67
|
+
width: 16px;
|
|
68
|
+
height: 16px;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
padding: 2px;
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: -9px;
|
|
73
|
+
right: -8px;
|
|
74
|
+
z-index: 400;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// &:nth-child(n + 11) {
|
|
79
|
+
// margin-top: 5px !important;
|
|
80
|
+
// }
|
|
81
|
+
|
|
82
|
+
.selectedItemImg {
|
|
83
|
+
height: 52px;
|
|
84
|
+
width: 52px;
|
|
85
|
+
border: 1px solid #e0e0e0;
|
|
86
|
+
border-radius: 2px;
|
|
87
|
+
|
|
88
|
+
&.invalid {
|
|
89
|
+
border: 1px solid red;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.leftCot {
|
|
97
|
+
width: 260px;
|
|
98
|
+
padding-right: 14px;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
border-right: 1px solid #e0e0e0;
|
|
101
|
+
|
|
102
|
+
.divider {
|
|
103
|
+
width: 10%;
|
|
104
|
+
display: inline-block;
|
|
105
|
+
text-align: center;
|
|
106
|
+
height: 32px;
|
|
107
|
+
line-height: 32px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.buttonStyle {
|
|
111
|
+
margin-top: 10px;
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: row-reverse;
|
|
114
|
+
align-items: center;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.footer {
|
|
120
|
+
padding-top: 12px;
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
border-top: 1px solid #e0e0e0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.total {
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
color: #2d3040;
|
|
130
|
+
letter-spacing: 0;
|
|
131
|
+
|
|
132
|
+
.totalNum {
|
|
133
|
+
color: #4477ee;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.cylon-modal-root {
|
|
140
|
+
display: flex;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
position: absolute;
|
|
143
|
+
left: 0;
|
|
144
|
+
right: 0;
|
|
145
|
+
z-index: 1001;
|
|
146
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.CardCarousel = void 0;
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _commonUtil = require("../../utils/commonUtil");
|
|
17
|
+
|
|
18
|
+
require("./index.less");
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
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 CardCarousel =
|
|
53
|
+
/** @class */
|
|
54
|
+
function (_super) {
|
|
55
|
+
__extends(CardCarousel, _super);
|
|
56
|
+
|
|
57
|
+
function CardCarousel() {
|
|
58
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
+
|
|
60
|
+
_this.state = {
|
|
61
|
+
index: 0
|
|
62
|
+
};
|
|
63
|
+
_this.carouselRef = /*#__PURE__*/_react["default"].createRef();
|
|
64
|
+
_this.inter = null;
|
|
65
|
+
|
|
66
|
+
_this.toPrev = function () {
|
|
67
|
+
var children = _this.props.children;
|
|
68
|
+
var index = _this.state.index;
|
|
69
|
+
var preIndex = index > 0 ? index : children.length;
|
|
70
|
+
|
|
71
|
+
_this.slideTo(preIndex - 1);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
_this.toNext = function () {
|
|
75
|
+
var children = _this.props.children;
|
|
76
|
+
var index = _this.state.index;
|
|
77
|
+
var nextIndex = index < children.length - 1 ? index + 1 : 0;
|
|
78
|
+
|
|
79
|
+
_this.slideTo(nextIndex);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
_this.startPlay = function () {
|
|
83
|
+
var _a = _this.props,
|
|
84
|
+
delay = _a.delay,
|
|
85
|
+
autoplay = _a.autoplay;
|
|
86
|
+
|
|
87
|
+
if (!_this.inter && autoplay) {
|
|
88
|
+
_this.inter = setInterval(function () {
|
|
89
|
+
_this.toNext();
|
|
90
|
+
}, delay);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
_this.stopPlay = function () {
|
|
95
|
+
if (_this.inter) {
|
|
96
|
+
clearInterval(_this.inter);
|
|
97
|
+
_this.inter = null;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
_this.slideTo = function (index) {
|
|
102
|
+
var onChange = _this.props.onChange;
|
|
103
|
+
|
|
104
|
+
_this.stopPlay();
|
|
105
|
+
|
|
106
|
+
_this.setState({
|
|
107
|
+
index: index
|
|
108
|
+
}, function () {
|
|
109
|
+
onChange(index);
|
|
110
|
+
|
|
111
|
+
_this.startPlay();
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
return _this;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
CardCarousel.prototype.componentDidMount = function () {
|
|
119
|
+
(0, _commonUtil.onListenTouch)('.cardCarousel', this.toPrev, this.toNext);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
CardCarousel.prototype.componentWillReceiveProps = function (nextProps) {
|
|
123
|
+
if (nextProps.autoplay) {
|
|
124
|
+
this.startPlay();
|
|
125
|
+
} else {
|
|
126
|
+
this.stopPlay();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
CardCarousel.prototype.render = function () {
|
|
131
|
+
var index = this.state.index;
|
|
132
|
+
var children = this.props.children;
|
|
133
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
+
ref: this.carouselRef,
|
|
135
|
+
className: "cardCarousel"
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
|
+
className: "content"
|
|
138
|
+
}, _react["default"].Children.map(children, function (child, i) {
|
|
139
|
+
var zIndex = i >= index ? children.length - i + index : index - i;
|
|
140
|
+
var space = children.length - zIndex === 1 ? 5 : children.length - zIndex === 2 ? 10 : 0;
|
|
141
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
|
+
className: (0, _classnames["default"])('cardItem', {
|
|
143
|
+
active: i === index
|
|
144
|
+
}),
|
|
145
|
+
style: {
|
|
146
|
+
zIndex: zIndex,
|
|
147
|
+
transform: "translate(" + space + "px, " + space + "px)"
|
|
148
|
+
}
|
|
149
|
+
}, child);
|
|
150
|
+
})));
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return CardCarousel;
|
|
154
|
+
}(_react.Component);
|
|
155
|
+
|
|
156
|
+
exports.CardCarousel = CardCarousel;
|
|
157
|
+
CardCarousel.propTypes = {
|
|
158
|
+
/** 外层容器 */
|
|
159
|
+
onChange: _propTypes["default"].func,
|
|
160
|
+
autoplay: _propTypes["default"].bool,
|
|
161
|
+
delay: _propTypes["default"].number
|
|
162
|
+
};
|
|
163
|
+
CardCarousel.defaultProps = {
|
|
164
|
+
onChange: function onChange() {
|
|
165
|
+
return null;
|
|
166
|
+
},
|
|
167
|
+
autoplay: false,
|
|
168
|
+
delay: 3000
|
|
169
|
+
};
|
|
170
|
+
var _default = CardCarousel;
|
|
171
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.cardCarousel {
|
|
2
|
+
width: 100%;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
|
|
5
|
+
.content {
|
|
6
|
+
|
|
7
|
+
.cardItem {
|
|
8
|
+
width: 100%;
|
|
9
|
+
border-radius: 10px;
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
position: absolute;
|
|
12
|
+
|
|
13
|
+
&.active {
|
|
14
|
+
transition: transform 0.3s;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.btn-left,
|
|
21
|
+
.btn-right {
|
|
22
|
+
width: 120px;
|
|
23
|
+
height: 40px;
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
color: #000;
|
|
26
|
+
margin: 10px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -57,9 +57,11 @@ function (_super) {
|
|
|
57
57
|
hour: '00',
|
|
58
58
|
min: '00',
|
|
59
59
|
second: '00',
|
|
60
|
-
nowTime: _this.props.now
|
|
60
|
+
nowTime: Number(_this.props.now),
|
|
61
|
+
now: _this.props.now
|
|
61
62
|
};
|
|
62
63
|
_this.timer = null;
|
|
64
|
+
_this.preTime = '';
|
|
63
65
|
|
|
64
66
|
_this.componentWillUnmount = function () {
|
|
65
67
|
_this.clearTimer();
|
|
@@ -112,19 +114,26 @@ function (_super) {
|
|
|
112
114
|
return _this;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
CountDown.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
CountDown.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
118
|
+
// 检查是否需要更新sortType
|
|
119
|
+
if (nextProps.now !== prevState.now) {
|
|
120
|
+
return {
|
|
121
|
+
now: nextProps.now,
|
|
120
122
|
nowTime: nextProps.now
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return null;
|
|
127
|
+
};
|
|
123
128
|
|
|
124
|
-
|
|
129
|
+
CountDown.prototype.componentDidUpdate = function () {
|
|
130
|
+
var now = this.state.now;
|
|
125
131
|
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
if (this.preTime != now) {
|
|
133
|
+
this.preTime = now;
|
|
134
|
+
this.clearTimer();
|
|
135
|
+
this.calcLastTime();
|
|
136
|
+
this.timer = setInterval(this.calcLastTime, 1000);
|
|
128
137
|
}
|
|
129
138
|
};
|
|
130
139
|
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactCropper = _interopRequireDefault(require("react-cropper"));
|
|
13
|
+
|
|
14
|
+
require("cropperjs/dist/cropper.css");
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
var _locale = require("../../locale");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
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 AComponent =
|
|
53
|
+
/** @class */
|
|
54
|
+
function (_super) {
|
|
55
|
+
__extends(AComponent, _super);
|
|
56
|
+
|
|
57
|
+
function AComponent() {
|
|
58
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
+
|
|
60
|
+
_this.state = {
|
|
61
|
+
src: ''
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
_this.onSubmit = function () {
|
|
65
|
+
_this.cropper.getCroppedCanvas().toBlob(function (blob) {
|
|
66
|
+
var fileName = _this.props.uploadedImageFile.name; // Vovi手机没有图片后缀
|
|
67
|
+
|
|
68
|
+
if (fileName && fileName.lastIndexOf('.') === -1) {
|
|
69
|
+
fileName = "file_" + new Date().getTime() + ".jpg";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
var formData = new FormData();
|
|
73
|
+
formData.append('file', blob, fileName);
|
|
74
|
+
|
|
75
|
+
_this.props.onSubmit(formData);
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
AComponent.prototype.componentDidMount = function () {
|
|
83
|
+
var _this = this;
|
|
84
|
+
|
|
85
|
+
var fileReader = new FileReader();
|
|
86
|
+
|
|
87
|
+
fileReader.onload = function (e) {
|
|
88
|
+
var dataURL = e.target.result;
|
|
89
|
+
|
|
90
|
+
_this.setState({
|
|
91
|
+
src: dataURL
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
fileReader.readAsDataURL(this.props.uploadedImageFile);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
AComponent.prototype.render = function () {
|
|
99
|
+
var _this = this;
|
|
100
|
+
|
|
101
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
+
className: "cropperModalWrap"
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactCropper["default"], {
|
|
104
|
+
aspectRatio: 1,
|
|
105
|
+
className: "company-logo-cropper",
|
|
106
|
+
guides: false,
|
|
107
|
+
onInitialized: function onInitialized(cop) {
|
|
108
|
+
_this.cropper = cop;
|
|
109
|
+
},
|
|
110
|
+
src: this.state.src,
|
|
111
|
+
viewMode: 1,
|
|
112
|
+
zoomable: false
|
|
113
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
+
className: "btnWrap"
|
|
115
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
+
onClick: this.props.onClose
|
|
117
|
+
}, (0, _locale.i18n)('CANCEL')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
118
|
+
onClick: this.onSubmit
|
|
119
|
+
}, (0, _locale.i18n)('SUBMIT'))));
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
return AComponent;
|
|
123
|
+
}(_react.Component);
|
|
124
|
+
|
|
125
|
+
var _default = AComponent;
|
|
126
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.cropperModalWrap {
|
|
2
|
+
background: #000;
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1000;
|
|
5
|
+
top: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
.btnWrap {
|
|
14
|
+
span {
|
|
15
|
+
color: #fff;
|
|
16
|
+
font-size: 18px;
|
|
17
|
+
position: absolute;
|
|
18
|
+
bottom: 10px;
|
|
19
|
+
|
|
20
|
+
&:first-child {
|
|
21
|
+
left: 12px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:last-child {
|
|
25
|
+
right: 12px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -52,8 +52,11 @@ var renderCardDefault = function renderCardDefault(src) {
|
|
|
52
52
|
alt: "",
|
|
53
53
|
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
54
54
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
-
className: "name"
|
|
56
|
-
|
|
55
|
+
className: "name",
|
|
56
|
+
dangerouslySetInnerHTML: {
|
|
57
|
+
__html: src.title.text
|
|
58
|
+
}
|
|
59
|
+
}));
|
|
57
60
|
};
|
|
58
61
|
|
|
59
62
|
var GroupList =
|
|
@@ -118,6 +121,8 @@ function (_super) {
|
|
|
118
121
|
_this.setState({});
|
|
119
122
|
|
|
120
123
|
(0, _coreUtil.renderPreview)();
|
|
124
|
+
|
|
125
|
+
_this.props.reRender();
|
|
121
126
|
};
|
|
122
127
|
|
|
123
128
|
_this.deleteItem = function (e, item) {
|
|
@@ -205,8 +205,6 @@ function (_super) {
|
|
|
205
205
|
_this.setState({
|
|
206
206
|
inputVal: e.target.value
|
|
207
207
|
});
|
|
208
|
-
|
|
209
|
-
console.log('---d', e.target.value);
|
|
210
208
|
},
|
|
211
209
|
placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
|
|
212
210
|
type: "text",
|
|
@@ -290,7 +288,7 @@ function (_super) {
|
|
|
290
288
|
type: "icon-ai"
|
|
291
289
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
292
290
|
className: "btn-txt"
|
|
293
|
-
}, (0, _locale.i18n)('
|
|
291
|
+
}, (0, _locale.i18n)('AI'))))), way === 'url' ? this.getImageUrl() : this.getImagePick(), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], {
|
|
294
292
|
onClose: function onClose() {
|
|
295
293
|
return _this.setState({
|
|
296
294
|
aiImageVisible: false
|
|
@@ -217,10 +217,10 @@ function CouponTable(props) {
|
|
|
217
217
|
setPaginationParams = _c[1];
|
|
218
218
|
|
|
219
219
|
var columns = [{
|
|
220
|
-
title: '
|
|
220
|
+
title: 'Coupon Name',
|
|
221
221
|
dataIndex: 'name'
|
|
222
222
|
}, {
|
|
223
|
-
title: '
|
|
223
|
+
title: 'Coupon Value',
|
|
224
224
|
dataIndex: 'value'
|
|
225
225
|
}, {
|
|
226
226
|
title: 'Period of Vaildity',
|
|
@@ -238,7 +238,7 @@ function CouponTable(props) {
|
|
|
238
238
|
|
|
239
239
|
var handleValue = function handleValue(obj) {
|
|
240
240
|
if (obj.thAmount) {
|
|
241
|
-
return obj.discountMethod === 'AMT' ? "Over " + (0, _currencyUtil.currencyToFont)(obj.thAmount) + " Minus " + (0, _currencyUtil.currencyToFont)(obj.discountAmount) : Number(obj.discountAmount) / 100 + "% off";
|
|
241
|
+
return obj.discountMethod === 'AMT' ? "Over " + (0, _currencyUtil.currencyToFont)(obj.thAmount) + " Minus " + (0, _currencyUtil.currencyToFont)(obj.discountAmount) : Number(obj.discountAmount) / 100 + "% off " + (0, _currencyUtil.currencyToFont)(obj.thAmount);
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
return obj.discountMethod === 'AMT' ? "Minus " + (0, _currencyUtil.currencyToFont)(obj.discountAmount) : Number(obj.discountAmount) / 100 + "% off";
|
|
@@ -182,7 +182,8 @@ function FunctionTable(props) {
|
|
|
182
182
|
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
183
183
|
_onChange({
|
|
184
184
|
name: selectedRows[0].urlName,
|
|
185
|
-
value: selectedRows[0].url
|
|
185
|
+
value: selectedRows[0].url,
|
|
186
|
+
remark: selectedRows[0].remark
|
|
186
187
|
});
|
|
187
188
|
}
|
|
188
189
|
};
|
|
@@ -211,7 +211,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
211
211
|
var LinkModal = function LinkModal(props) {
|
|
212
212
|
var onConfirm = props.onConfirm,
|
|
213
213
|
onClose = props.onClose,
|
|
214
|
-
visible = props.visible
|
|
214
|
+
visible = props.visible,
|
|
215
|
+
onlySpecificCode = props.onlySpecificCode;
|
|
215
216
|
|
|
216
217
|
var _a = (0, _react.useState)(''),
|
|
217
218
|
linkUrl = _a[0],
|
|
@@ -231,7 +232,7 @@ var LinkModal = function LinkModal(props) {
|
|
|
231
232
|
|
|
232
233
|
var getLinkTypes = function getLinkTypes() {
|
|
233
234
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
234
|
-
var types;
|
|
235
|
+
var types, type;
|
|
235
236
|
return __generator(this, function (_a) {
|
|
236
237
|
switch (_a.label) {
|
|
237
238
|
case 0:
|
|
@@ -243,6 +244,17 @@ var LinkModal = function LinkModal(props) {
|
|
|
243
244
|
|
|
244
245
|
case 1:
|
|
245
246
|
types = _a.sent();
|
|
247
|
+
|
|
248
|
+
if (onlySpecificCode) {
|
|
249
|
+
type = types.filter(function (item) {
|
|
250
|
+
return item.linkTypeCode === onlySpecificCode;
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
if (type.length > 0) {
|
|
254
|
+
types = type;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
246
258
|
setLinkTypes(types);
|
|
247
259
|
setSelected(types[0].linkTypeCode);
|
|
248
260
|
return [2
|
|
@@ -7,9 +7,9 @@ exports.onAClick = exports.getLinkUrl = exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _coreUtil = require("../../utils/coreUtil");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _businessUtil = require("../../utils/businessUtil");
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
15
|
|