@fonixtree/magic-design 1.0.53 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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 +62 -10
- package/es/common/index.js +16 -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 +87 -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 +467 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -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 +1 -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 +24 -1
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +16 -2
- package/es/locale/es/es.json +16 -2
- package/es/locale/id/id.json +16 -2
- 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/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 +167 -19
- package/es/utils/coreUtil.js +45 -2
- package/es/utils/currencyUtil.js +9 -2
- 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/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 +62 -10
- package/lib/common/index.js +16 -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 +87 -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 +467 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +132 -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 +1 -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 +24 -1
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +16 -2
- package/lib/locale/es/es.json +16 -2
- package/lib/locale/id/id.json +16 -2
- 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/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 +167 -19
- package/lib/utils/coreUtil.js +45 -2
- package/lib/utils/currencyUtil.js +9 -2
- package/package.json +1 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _locale = require("../../../locale");
|
|
13
|
+
|
|
14
|
+
var _mobx = require("../../../mobx");
|
|
15
|
+
|
|
16
|
+
var _constants = require("../../../constants");
|
|
17
|
+
|
|
18
|
+
require("./index.less");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
+
__proto__: []
|
|
26
|
+
} instanceof Array && function (d, b) {
|
|
27
|
+
d.__proto__ = b;
|
|
28
|
+
} || function (d, b) {
|
|
29
|
+
for (var p in b) {
|
|
30
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return _extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return function (d, b) {
|
|
38
|
+
_extendStatics(d, b);
|
|
39
|
+
|
|
40
|
+
function __() {
|
|
41
|
+
this.constructor = d;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
49
|
+
__assign = Object.assign || function (t) {
|
|
50
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
51
|
+
s = arguments[i];
|
|
52
|
+
|
|
53
|
+
for (var p in s) {
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return t;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return __assign.apply(this, arguments);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var AnchorModal =
|
|
65
|
+
/** @class */
|
|
66
|
+
function (_super) {
|
|
67
|
+
__extends(AnchorModal, _super);
|
|
68
|
+
|
|
69
|
+
function AnchorModal() {
|
|
70
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
71
|
+
|
|
72
|
+
_this.state = {
|
|
73
|
+
selectedValue: ''
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
_this.onAnchorChange = function (e) {
|
|
77
|
+
var selectedAnchor = _mobx.store.MPageData.find(function (m) {
|
|
78
|
+
return m.id === e.target.value;
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
console.log('store.MPageData: ', JSON.parse(JSON.stringify(_mobx.store.MPageData)));
|
|
82
|
+
|
|
83
|
+
_this.setState({
|
|
84
|
+
selectedValue: selectedAnchor.id
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
_this.onOk = function () {
|
|
89
|
+
var initData = _this.props.initData;
|
|
90
|
+
var selectedValue = _this.state.selectedValue;
|
|
91
|
+
|
|
92
|
+
var selectedAnchorIndex = _mobx.store.MPageData.findIndex(function (m) {
|
|
93
|
+
return m.id === selectedValue;
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
var selectedAnchor = _mobx.store.MPageData[selectedAnchorIndex];
|
|
97
|
+
|
|
98
|
+
var value = __assign({}, initData.value);
|
|
99
|
+
|
|
100
|
+
if (selectedAnchor.activeTerminal === 'ALL') {
|
|
101
|
+
value.pcNodeId = selectedAnchor.id;
|
|
102
|
+
value.mobileNodeId = selectedAnchor.id;
|
|
103
|
+
} else if (selectedAnchor.activeTerminal === 'MOBILE') {
|
|
104
|
+
value.mobileNodeId = selectedAnchor.id;
|
|
105
|
+
} else if (selectedAnchor.activeTerminal === 'PC') {
|
|
106
|
+
value.pcNodeId = selectedAnchor.id;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
var data = {
|
|
110
|
+
type: _constants.urlTypeMap.ANCHOR,
|
|
111
|
+
value: value
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
_this.props.onConfirm(data);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
return _this;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
AnchorModal.prototype.render = function () {
|
|
121
|
+
var _a = this.props,
|
|
122
|
+
visible = _a.visible,
|
|
123
|
+
onClose = _a.onClose;
|
|
124
|
+
var selectedValue = this.state.selectedValue;
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
|
|
126
|
+
cancelText: (0, _locale.i18n)('CANCEL'),
|
|
127
|
+
draggable: false,
|
|
128
|
+
footer: null,
|
|
129
|
+
okText: "OK",
|
|
130
|
+
onCancel: onClose,
|
|
131
|
+
title: (0, _locale.i18n)('ANCHOR'),
|
|
132
|
+
visible: visible,
|
|
133
|
+
width: "400px",
|
|
134
|
+
wrapClassName: "magicAnchorModal"
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_antd.Radio.Group, {
|
|
136
|
+
onChange: this.onAnchorChange,
|
|
137
|
+
value: selectedValue
|
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Space, {
|
|
139
|
+
direction: "vertical"
|
|
140
|
+
}, _mobx.store.MPageData.map(function (page, i) {
|
|
141
|
+
var _a;
|
|
142
|
+
|
|
143
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
|
|
144
|
+
value: page.id
|
|
145
|
+
}, i + 1, "\u3001", (_a = _constants.compInfoMap[page.type]) === null || _a === void 0 ? void 0 : _a.name);
|
|
146
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
+
className: "footer"
|
|
148
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
149
|
+
className: "btn-cancel",
|
|
150
|
+
onClick: function onClick() {
|
|
151
|
+
return onClose && onClose();
|
|
152
|
+
}
|
|
153
|
+
}, (0, _locale.i18n)('CANCEL')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
154
|
+
className: "btn-confirm",
|
|
155
|
+
onClick: this.onOk,
|
|
156
|
+
type: "primary"
|
|
157
|
+
}, (0, _locale.i18n)('OK'))));
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
AnchorModal.defaultProps = {
|
|
161
|
+
visible: false,
|
|
162
|
+
onClose: function onClose() {},
|
|
163
|
+
onConfirm: function onConfirm() {},
|
|
164
|
+
initData: null
|
|
165
|
+
};
|
|
166
|
+
return AnchorModal;
|
|
167
|
+
}(_react["default"].Component);
|
|
168
|
+
|
|
169
|
+
var _default = AnchorModal;
|
|
170
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.magicAnchorModal {
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
.footer {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: flex-end;
|
|
8
|
+
padding-top: 20px;
|
|
9
|
+
|
|
10
|
+
.btn-cancel {
|
|
11
|
+
margin-right: 12px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn-confirm {
|
|
15
|
+
background: #2F54EB;
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: 6px;
|
|
18
|
+
// margin-left: 20px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -7,16 +7,24 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
require("./index.less");
|
|
11
|
-
|
|
12
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
11
|
|
|
12
|
+
var _AnchorModal = _interopRequireDefault(require("./AnchorModal"));
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../utils/coreUtil");
|
|
15
|
+
|
|
14
16
|
var _locale = require("../../locale");
|
|
15
17
|
|
|
16
18
|
var _LinkModal = _interopRequireDefault(require("../LinkModal"));
|
|
17
19
|
|
|
18
20
|
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
19
21
|
|
|
22
|
+
var _constants = require("../../constants");
|
|
23
|
+
|
|
24
|
+
var _mobx = require("../../mobx");
|
|
25
|
+
|
|
26
|
+
require("./index.less");
|
|
27
|
+
|
|
20
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
29
|
|
|
22
30
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -44,6 +52,8 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
44
52
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
53
|
};
|
|
46
54
|
}();
|
|
55
|
+
/* eslint-disable max-len */
|
|
56
|
+
|
|
47
57
|
|
|
48
58
|
var UrlPicker =
|
|
49
59
|
/** @class */
|
|
@@ -54,7 +64,8 @@ function (_super) {
|
|
|
54
64
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
65
|
|
|
56
66
|
_this.state = {
|
|
57
|
-
visible: false
|
|
67
|
+
visible: false,
|
|
68
|
+
anchorModalVisible: false
|
|
58
69
|
};
|
|
59
70
|
return _this;
|
|
60
71
|
}
|
|
@@ -62,13 +73,29 @@ function (_super) {
|
|
|
62
73
|
UrlPicker.prototype.render = function () {
|
|
63
74
|
var _this = this;
|
|
64
75
|
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
76
|
+
var _a;
|
|
77
|
+
|
|
78
|
+
var _b = this.state,
|
|
79
|
+
visible = _b.visible,
|
|
80
|
+
anchorModalVisible = _b.anchorModalVisible;
|
|
81
|
+
var _c = this.props,
|
|
82
|
+
value = _c.value,
|
|
83
|
+
_onChange = _c.onChange,
|
|
84
|
+
disabled = _c.disabled,
|
|
85
|
+
onlySpecificCode = _c.onlySpecificCode; // 弹框选择url不可编辑,需要先清除
|
|
70
86
|
|
|
71
87
|
var editable = !value || !value.type;
|
|
88
|
+
var inputName = (value === null || value === void 0 ? void 0 : value.name) || '';
|
|
89
|
+
|
|
90
|
+
if ((value === null || value === void 0 ? void 0 : value.type) === _constants.urlTypeMap.ANCHOR) {
|
|
91
|
+
var selectedAnchorIndex = _mobx.store.MPageData.findIndex(function (m) {
|
|
92
|
+
return m.id === ((0, _coreUtil.isPc)() ? value.value.pcNodeId : value.value.mobileNodeId);
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
var selectedAnchor = _mobx.store.MPageData[selectedAnchorIndex];
|
|
96
|
+
inputName = selectedAnchorIndex + 1 + "\u3001" + ((_a = _constants.compInfoMap[selectedAnchor.type]) === null || _a === void 0 ? void 0 : _a.name);
|
|
97
|
+
}
|
|
98
|
+
|
|
72
99
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
100
|
className: "m-url-picker"
|
|
74
101
|
}, disabled && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -87,10 +114,19 @@ function (_super) {
|
|
|
87
114
|
},
|
|
88
115
|
placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
|
|
89
116
|
type: "text",
|
|
90
|
-
value:
|
|
117
|
+
value: inputName
|
|
91
118
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
92
119
|
className: "icon-btns"
|
|
93
|
-
},
|
|
120
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
121
|
+
color: "#000",
|
|
122
|
+
onClick: function onClick() {
|
|
123
|
+
return _this.setState({
|
|
124
|
+
anchorModalVisible: true
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
size: "20px",
|
|
128
|
+
type: "icon-anchor"
|
|
129
|
+
}), window.magicDesign.outputType != 'html' && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
94
130
|
color: "#000",
|
|
95
131
|
onClick: function onClick() {
|
|
96
132
|
return _this.setState({
|
|
@@ -119,7 +155,23 @@ function (_super) {
|
|
|
119
155
|
visible: false
|
|
120
156
|
});
|
|
121
157
|
},
|
|
158
|
+
onlySpecificCode: onlySpecificCode,
|
|
122
159
|
visible: visible
|
|
160
|
+
}), anchorModalVisible && /*#__PURE__*/_react["default"].createElement(_AnchorModal["default"], {
|
|
161
|
+
initData: value,
|
|
162
|
+
onClose: function onClose() {
|
|
163
|
+
return _this.setState({
|
|
164
|
+
anchorModalVisible: false
|
|
165
|
+
});
|
|
166
|
+
},
|
|
167
|
+
onConfirm: function onConfirm(value) {
|
|
168
|
+
_onChange(value);
|
|
169
|
+
|
|
170
|
+
_this.setState({
|
|
171
|
+
anchorModalVisible: false
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
visible: anchorModalVisible
|
|
123
175
|
}));
|
|
124
176
|
};
|
|
125
177
|
|
package/lib/common/index.js
CHANGED
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "ButtonIconLayout", {
|
|
|
21
21
|
return _ButtonIconLayout["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "CardCarousel", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _CardCarousel["default"];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "Collapse", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function get() {
|
|
@@ -81,6 +87,12 @@ Object.defineProperty(exports, "LayoutSelector", {
|
|
|
81
87
|
return _LayoutSelector["default"];
|
|
82
88
|
}
|
|
83
89
|
});
|
|
90
|
+
Object.defineProperty(exports, "MyModal", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _MyModal["default"];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
84
96
|
Object.defineProperty(exports, "ProductSource", {
|
|
85
97
|
enumerable: true,
|
|
86
98
|
get: function get() {
|
|
@@ -172,4 +184,8 @@ var _InputNumber = _interopRequireDefault(require("./InputNumber"));
|
|
|
172
184
|
|
|
173
185
|
var _VideoUpload = _interopRequireDefault(require("./VideoUpload"));
|
|
174
186
|
|
|
187
|
+
var _CardCarousel = _interopRequireDefault(require("./CardCarousel"));
|
|
188
|
+
|
|
189
|
+
var _MyModal = _interopRequireDefault(require("./MyModal"));
|
|
190
|
+
|
|
175
191
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -213,8 +213,7 @@ function (_super) {
|
|
|
213
213
|
if (window.magicDesign.pushGA) {
|
|
214
214
|
window.magicDesign.pushGA({}, 'select_promotion', {
|
|
215
215
|
event_label: (0, _ConfigPanel.getSecondConfigName)(data, item.id),
|
|
216
|
-
promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
217
|
-
promotion_id: item.id
|
|
216
|
+
promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
218
217
|
});
|
|
219
218
|
}
|
|
220
219
|
},
|
|
@@ -1,80 +1,54 @@
|
|
|
1
1
|
.m-banner-mobile {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.swiper-ban {
|
|
58
|
-
position: absolute;
|
|
59
|
-
width: 100%;
|
|
60
|
-
bottom: 10px;
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
|
|
65
|
-
.ban {
|
|
66
|
-
font-size: 16px;
|
|
67
|
-
width: 1.5em;
|
|
68
|
-
height: 0.3em;
|
|
69
|
-
background: #FFF;
|
|
70
|
-
cursor: inherit;
|
|
71
|
-
margin-right: 0.3em;
|
|
72
|
-
transition: all .5s;
|
|
73
|
-
|
|
74
|
-
&.active {
|
|
75
|
-
width: 1.5em;
|
|
76
|
-
opacity: 1;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
3
|
+
}
|
|
4
|
+
.m-banner-mobile .cylon-carousel .slick-track {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
.m-banner-mobile .carouselItem {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
.m-banner-mobile .carouselItem .carouseContent {
|
|
13
|
+
padding: 0 0.56rem;
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
margin-bottom: auto;
|
|
19
|
+
}
|
|
20
|
+
.m-banner-mobile .carouselItem .title {
|
|
21
|
+
margin-bottom: 0.16rem;
|
|
22
|
+
}
|
|
23
|
+
.m-banner-mobile .carouselItem .sub-title {
|
|
24
|
+
margin-bottom: 0.4rem;
|
|
25
|
+
}
|
|
26
|
+
.m-banner-mobile .carouselItem .btn-wrap {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: flex-start;
|
|
30
|
+
}
|
|
31
|
+
.m-banner-mobile .carouselItem .btn-wrap .btn {
|
|
32
|
+
margin-right: 0.24rem;
|
|
33
|
+
}
|
|
34
|
+
.m-banner-mobile .swiper-ban {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 100%;
|
|
37
|
+
bottom: 0.2rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
.m-banner-mobile .swiper-ban .ban {
|
|
43
|
+
font-size: 0.32rem;
|
|
44
|
+
width: 1.5em;
|
|
45
|
+
height: 0.3em;
|
|
46
|
+
background: #FFF;
|
|
47
|
+
cursor: inherit;
|
|
48
|
+
margin-right: 0.3em;
|
|
49
|
+
transition: all 0.5s;
|
|
50
|
+
}
|
|
51
|
+
.m-banner-mobile .swiper-ban .ban.active {
|
|
52
|
+
width: 1.5em;
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
@@ -1,103 +1,84 @@
|
|
|
1
1
|
.m-carousel-mobile {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border-radius: 50%;
|
|
86
|
-
background: #FFF;
|
|
87
|
-
cursor: inherit;
|
|
88
|
-
margin-right: 10px;
|
|
89
|
-
transition: all .5s;
|
|
90
|
-
|
|
91
|
-
&:last-child {
|
|
92
|
-
margin-right: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.active {
|
|
96
|
-
width: 2em;
|
|
97
|
-
height: 1em;
|
|
98
|
-
border-radius: 100px;
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
4
|
+
}
|
|
5
|
+
.m-carousel-mobile .content {
|
|
6
|
+
display: flex;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
}
|
|
9
|
+
.m-carousel-mobile .slider-wrap {
|
|
10
|
+
width: 100%;
|
|
11
|
+
margin: 0 auto;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
}
|
|
14
|
+
.m-carousel-mobile .slider-wrap .slick-list {
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
.m-carousel-mobile .slider-wrap .slick-list:hover {
|
|
18
|
+
padding-top: 2rem;
|
|
19
|
+
margin-top: -2rem;
|
|
20
|
+
padding-bottom: 2rem;
|
|
21
|
+
margin-bottom: -2rem;
|
|
22
|
+
}
|
|
23
|
+
.m-carousel-mobile .slider-wrap .slick-list .slick-track {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.24rem;
|
|
27
|
+
}
|
|
28
|
+
.m-carousel-mobile .slider-wrap .img-wrap .img {
|
|
29
|
+
width: fit-content;
|
|
30
|
+
height: fit-content;
|
|
31
|
+
display: block;
|
|
32
|
+
margin: 0 auto;
|
|
33
|
+
}
|
|
34
|
+
.m-carousel-mobile .slider-wrap .img-wrap .title {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
margin-top: 0.24rem;
|
|
38
|
+
}
|
|
39
|
+
.m-carousel-mobile .slider-wrap .img-wrap .text {
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
margin-top: 0.12rem;
|
|
43
|
+
}
|
|
44
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags {
|
|
45
|
+
margin-top: 0.16rem;
|
|
46
|
+
margin-bottom: 0.24rem;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div {
|
|
53
|
+
margin-right: 0.16rem;
|
|
54
|
+
}
|
|
55
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div:last-child {
|
|
56
|
+
margin-right: 0;
|
|
57
|
+
}
|
|
58
|
+
.m-carousel-mobile .swiper-ban {
|
|
59
|
+
position: absolute;
|
|
60
|
+
width: 100%;
|
|
61
|
+
bottom: 0.12rem;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
66
|
+
.m-carousel-mobile .swiper-ban .ban {
|
|
67
|
+
font-size: 0.16rem;
|
|
68
|
+
width: 1em;
|
|
69
|
+
height: 1em;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
background: #FFF;
|
|
72
|
+
cursor: inherit;
|
|
73
|
+
margin-right: 0.2rem;
|
|
74
|
+
transition: all 0.5s;
|
|
75
|
+
}
|
|
76
|
+
.m-carousel-mobile .swiper-ban .ban:last-child {
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
}
|
|
79
|
+
.m-carousel-mobile .swiper-ban .ban.active {
|
|
80
|
+
width: 2em;
|
|
81
|
+
height: 1em;
|
|
82
|
+
border-radius: 2rem;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|