@fonixtree/magic-design 0.1.78 → 0.1.80
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 +31 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +31 -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/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/CardCarousel/index.js +171 -0
- package/es/common/CardCarousel/index.less +28 -0
- package/es/common/GroupList/index.less +3 -0
- package/es/common/ImagePicker/index.js +1 -3
- package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/index.js +14 -2
- package/es/common/MyModal/index.js +417 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/ProductModal/index.js +2 -3
- package/es/common/ProductSource/index.js +42 -10
- package/es/common/UrlPicker/index.js +3 -1
- package/es/common/index.js +16 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
- package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/es/composite-comp/bol/components/Video/index.js +1 -2
- 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 +89 -13
- 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 +8 -6
- 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 +177 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/es/composite-comp/common/components/ProductItem/index.js +25 -17
- package/es/composite-comp/common/components/ProductItem/index.less +17 -8
- 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/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/FlashDeal/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -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/Recommend/mobile/index.js +10 -9
- package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- 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/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 +123 -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/RecommendConfig/RecommendConfigGroup/index.js +15 -11
- 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/HeadNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/es/constants/component-types.js +27 -3
- package/es/constants/index.js +26 -1
- package/es/constants/layout.js +48 -1
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/es/core/Designer/ChatRobot/index.js +36 -14
- package/es/core/Designer/ChatRobot/index.less +69 -28
- package/es/core/Designer/ConfigPanel/index.js +8 -3
- package/es/core/Designer/History/index.js +2 -2
- package/es/core/Designer/PageCompList/index.js +8 -5
- package/es/core/Designer/QuickMenuBar/index.js +5 -3
- 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 +12 -1
- package/es/core/Renderer/index.js +55 -8
- package/es/decorator/compositeDecorator.js +23 -0
- package/es/locale/en/en.json +6 -1
- package/es/locale/es/es.json +6 -1
- package/es/locale/id/id.json +6 -1
- 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 +20 -1
- package/es/meta-comp/components/Text/index.less +8 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/es/mobx/Frame.js +17 -2
- package/es/utils/businessUtil.js +17 -6
- package/es/utils/commonUtil.js +54 -4
- 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 +31 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -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/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/CardCarousel/index.js +171 -0
- package/lib/common/CardCarousel/index.less +28 -0
- package/lib/common/GroupList/index.less +3 -0
- package/lib/common/ImagePicker/index.js +1 -3
- package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/index.js +14 -2
- package/lib/common/MyModal/index.js +417 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/ProductModal/index.js +2 -3
- package/lib/common/ProductSource/index.js +42 -10
- package/lib/common/UrlPicker/index.js +3 -1
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/index.js +1 -2
- 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 +89 -13
- 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 +8 -6
- 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 +177 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
- package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
- 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/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/FlashDeal/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -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/Recommend/mobile/index.js +10 -9
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- 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/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 +123 -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/RecommendConfig/RecommendConfigGroup/index.js +15 -11
- 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/HeadNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/lib/constants/component-types.js +27 -3
- package/lib/constants/index.js +26 -1
- package/lib/constants/layout.js +48 -1
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/lib/core/Designer/ChatRobot/index.js +36 -14
- package/lib/core/Designer/ChatRobot/index.less +69 -28
- package/lib/core/Designer/ConfigPanel/index.js +8 -3
- package/lib/core/Designer/History/index.js +2 -2
- package/lib/core/Designer/PageCompList/index.js +8 -5
- package/lib/core/Designer/QuickMenuBar/index.js +5 -3
- 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 +12 -1
- package/lib/core/Renderer/index.js +55 -8
- package/lib/decorator/compositeDecorator.js +23 -0
- package/lib/locale/en/en.json +6 -1
- package/lib/locale/es/es.json +6 -1
- package/lib/locale/id/id.json +6 -1
- 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 +20 -1
- package/lib/meta-comp/components/Text/index.less +8 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/lib/mobx/Frame.js +17 -2
- package/lib/utils/businessUtil.js +17 -6
- package/lib/utils/commonUtil.js +54 -4
- package/lib/utils/currencyUtil.js +9 -2
- package/package.json +1 -1
|
@@ -7,10 +7,18 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
10
12
|
var _components = require("../../../../../meta-comp/components");
|
|
11
13
|
|
|
14
|
+
var _mobx = require("../../../../../mobx");
|
|
15
|
+
|
|
16
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
+
|
|
12
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
13
19
|
|
|
20
|
+
var _common = require("../../../../../common");
|
|
21
|
+
|
|
14
22
|
var _constants = require("../../../../../constants");
|
|
15
23
|
|
|
16
24
|
var _currencyUtil = require("../../../../../utils/currencyUtil");
|
|
@@ -227,35 +235,84 @@ function (_super) {
|
|
|
227
235
|
function WalletMobile() {
|
|
228
236
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
229
237
|
|
|
238
|
+
_this.carouselRef = /*#__PURE__*/_react["default"].createRef();
|
|
230
239
|
_this.state = {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
bnpl: 0
|
|
240
|
+
sliderIndex: 0,
|
|
241
|
+
userWalletData: {}
|
|
234
242
|
};
|
|
243
|
+
_this.destroy = null;
|
|
235
244
|
|
|
236
245
|
_this.getMyWalletData = function () {
|
|
237
246
|
return __awaiter(_this, void 0, void 0, function () {
|
|
238
|
-
var _a, userCreditResps, userCashbackValues, creditObj,
|
|
247
|
+
var data, _a, userCreditResps, userCashbackValues, userBalance, userPoint, defaultShowWallet, bnplObj, creditObj, B2BObj;
|
|
239
248
|
|
|
240
|
-
|
|
241
|
-
|
|
249
|
+
var _b;
|
|
250
|
+
|
|
251
|
+
var _this = this;
|
|
252
|
+
|
|
253
|
+
return __generator(this, function (_c) {
|
|
254
|
+
switch (_c.label) {
|
|
242
255
|
case 0:
|
|
256
|
+
data = this.props.data;
|
|
243
257
|
return [4
|
|
244
258
|
/*yield*/
|
|
245
259
|
, (0, _commonUtil.commonFetch)('/designer/v1/h5/mywallet/list', {}, 'GET')];
|
|
246
260
|
|
|
247
261
|
case 1:
|
|
248
|
-
_a =
|
|
262
|
+
_a = _c.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues, userBalance = _a.userBalance, userPoint = _a.userPoint, defaultShowWallet = _a.defaultShowWallet;
|
|
263
|
+
bnplObj = userCreditResps === null || userCreditResps === void 0 ? void 0 : userCreditResps.find(function (item) {
|
|
264
|
+
return item.creditId === 1;
|
|
265
|
+
});
|
|
249
266
|
creditObj = userCreditResps === null || userCreditResps === void 0 ? void 0 : userCreditResps.find(function (item) {
|
|
250
|
-
return item.creditId === 2
|
|
267
|
+
return item.creditId === 2;
|
|
251
268
|
});
|
|
252
|
-
|
|
253
|
-
return item.creditId ===
|
|
269
|
+
B2BObj = userCreditResps === null || userCreditResps === void 0 ? void 0 : userCreditResps.find(function (item) {
|
|
270
|
+
return item.creditId === 3;
|
|
254
271
|
});
|
|
255
272
|
this.setState({
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
273
|
+
userWalletData: (_b = {}, _b[_constants.walletType.BNPL] = {
|
|
274
|
+
amount: userCreditResps === null ? '****' : bnplObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(bnplObj.availableAmount) : 'APPLY',
|
|
275
|
+
show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(bnplObj === null || bnplObj === void 0 ? void 0 : bnplObj.state)
|
|
276
|
+
}, _b[_constants.walletType.CREDIT] = {
|
|
277
|
+
amount: userCreditResps === null ? '****' : creditObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(creditObj.availableAmount) : 'APPLY',
|
|
278
|
+
show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(creditObj === null || creditObj === void 0 ? void 0 : creditObj.state)
|
|
279
|
+
}, _b[_constants.walletType.B2B] = {
|
|
280
|
+
amount: userCreditResps === null ? '****' : B2BObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(B2BObj.availableAmount) : 'APPLY',
|
|
281
|
+
text: B2BObj ? 'Add more products to your shop!' : '',
|
|
282
|
+
btnText: B2BObj ? 'Procure Product' : '',
|
|
283
|
+
show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(B2BObj === null || B2BObj === void 0 ? void 0 : B2BObj.state)
|
|
284
|
+
}, _b[_constants.walletType.CASHBACK] = {
|
|
285
|
+
amount: userCashbackValues === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userCashbackValues),
|
|
286
|
+
show: true
|
|
287
|
+
}, _b[_constants.walletType.BALANCE] = {
|
|
288
|
+
amount: userBalance === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userBalance),
|
|
289
|
+
btnText: userBalance ? 'Social Commerce' : '',
|
|
290
|
+
show: true
|
|
291
|
+
}, _b[_constants.walletType.CENDUIT] = {
|
|
292
|
+
amount: userPoint === null ? '****' : userPoint,
|
|
293
|
+
btnText: userPoint ? 'CenDuit Mall' : '',
|
|
294
|
+
show: true
|
|
295
|
+
}, _b)
|
|
296
|
+
}, function () {
|
|
297
|
+
var _a;
|
|
298
|
+
|
|
299
|
+
if (data.customize.layout === 'layout2' && _this.carouselRef) {
|
|
300
|
+
var userWalletData_1 = _this.state.userWalletData;
|
|
301
|
+
|
|
302
|
+
var _groupSource = data.groupSource.filter(function (f) {
|
|
303
|
+
var _a;
|
|
304
|
+
|
|
305
|
+
return (_a = userWalletData_1[f.sourceType]) === null || _a === void 0 ? void 0 : _a.show;
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
var defaultShowIndex_1 = 0;
|
|
309
|
+
|
|
310
|
+
_groupSource.forEach(function (f, i) {
|
|
311
|
+
if (f.sourceType === defaultShowWallet) defaultShowIndex_1 = i;
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
(_a = _this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.slideTo(defaultShowIndex_1);
|
|
315
|
+
}
|
|
259
316
|
});
|
|
260
317
|
return [2
|
|
261
318
|
/*return*/
|
|
@@ -265,88 +322,281 @@ function (_super) {
|
|
|
265
322
|
});
|
|
266
323
|
};
|
|
267
324
|
|
|
268
|
-
_this.
|
|
269
|
-
var _a
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
if (
|
|
274
|
-
|
|
275
|
-
|
|
325
|
+
_this.mouseEnterBtn = function (e) {
|
|
326
|
+
var _a, _b;
|
|
327
|
+
|
|
328
|
+
var data = _this.props.data;
|
|
329
|
+
|
|
330
|
+
if ((_a = data.setting.navigation) === null || _a === void 0 ? void 0 : _a.hoverColor) {
|
|
331
|
+
e.target.style.color = data.setting.navigation.hoverColor;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if ((_b = data.setting.navigation) === null || _b === void 0 ? void 0 : _b.hoverSize) {
|
|
335
|
+
e.target.style.fontSize = data.setting.navigation.hoverSize;
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
_this.mouseLeaveBtn = function (e) {
|
|
340
|
+
var _a, _b;
|
|
341
|
+
|
|
342
|
+
var data = _this.props.data;
|
|
343
|
+
|
|
344
|
+
if ((_a = data.setting.navigation) === null || _a === void 0 ? void 0 : _a.color) {
|
|
345
|
+
e.target.style.color = data.setting.navigation.color;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if ((_b = data.setting.navigation) === null || _b === void 0 ? void 0 : _b.size) {
|
|
349
|
+
e.target.style.fontSize = data.setting.navigation.size;
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
_this.sliderGoTo = function (groupSource) {
|
|
354
|
+
var nextIndex = groupSource.findIndex(function (item) {
|
|
355
|
+
return item.id === _mobx.store.clickedGroup;
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
if (nextIndex != -1 && nextIndex != _this.state.sliderIndex) {
|
|
359
|
+
_this.carouselRef.current.slideTo(nextIndex);
|
|
360
|
+
}
|
|
276
361
|
};
|
|
277
362
|
|
|
278
363
|
return _this;
|
|
279
364
|
}
|
|
280
365
|
|
|
281
366
|
WalletMobile.prototype.componentDidMount = function () {
|
|
367
|
+
var _this = this;
|
|
368
|
+
|
|
282
369
|
this.getMyWalletData();
|
|
370
|
+
this.destroy = (0, _mobx.autorun)(function () {
|
|
371
|
+
var _a;
|
|
372
|
+
|
|
373
|
+
if (_this.props.data.customize.layout === 'layout2' && _this.carouselRef) {
|
|
374
|
+
_this.sliderGoTo(_this.props.data.groupSource);
|
|
375
|
+
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
|
|
379
|
+
(_a = _this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.stopPlay();
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
WalletMobile.prototype.componentWillReceiveProps = function (nextProps) {
|
|
386
|
+
var _a, _b;
|
|
387
|
+
|
|
388
|
+
if (nextProps.data.customize.layout === 'layout2' && this.carouselRef) {
|
|
389
|
+
this.sliderGoTo(nextProps.data.groupSource);
|
|
390
|
+
|
|
391
|
+
if (nextProps.data.setting.autoplay.open) {
|
|
392
|
+
(_a = this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.startPlay();
|
|
393
|
+
} else {
|
|
394
|
+
(_b = this.carouselRef.current) === null || _b === void 0 ? void 0 : _b.stopPlay();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
283
397
|
};
|
|
284
398
|
|
|
285
399
|
WalletMobile.prototype.render = function () {
|
|
286
400
|
var _this = this;
|
|
287
401
|
|
|
402
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
403
|
+
|
|
288
404
|
var data = this.props.data;
|
|
289
|
-
var
|
|
405
|
+
var _j = this.state,
|
|
406
|
+
sliderIndex = _j.sliderIndex,
|
|
407
|
+
userWalletData = _j.userWalletData;
|
|
290
408
|
var colNum = data.customize.rowNum;
|
|
291
|
-
|
|
292
|
-
className: "m-Wallet-mobile"
|
|
293
|
-
}, data.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
294
|
-
className: "headline",
|
|
295
|
-
data: data.title.headline
|
|
296
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
297
|
-
className: "content column_" + colNum,
|
|
298
|
-
style: (0, _commonUtil.pxToRem)({
|
|
299
|
-
gap: MOBILE_IMG_SIZE[colNum].gap
|
|
300
|
-
})
|
|
301
|
-
}, data.groupSource.map(function (item) {
|
|
302
|
-
var _amount = _this.getAmount(item.sourceType);
|
|
409
|
+
var autoplay = (_b = (_a = data.setting) === null || _a === void 0 ? void 0 : _a.autoplay) === null || _b === void 0 ? void 0 : _b.open;
|
|
303
410
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
className: "item-wrap",
|
|
307
|
-
onMouseEnter: function onMouseEnter() {
|
|
308
|
-
var _a;
|
|
411
|
+
var _groupSource = data.groupSource.filter(function (f) {
|
|
412
|
+
var _a;
|
|
309
413
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
var _a;
|
|
414
|
+
return (_a = userWalletData[f.sourceType]) === null || _a === void 0 ? void 0 : _a.show;
|
|
415
|
+
});
|
|
416
|
+
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
314
417
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
418
|
+
|
|
419
|
+
if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
|
|
420
|
+
autoplay = false;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
var navStyle = {
|
|
424
|
+
fontSize: (0, _commonUtil.convertToRem)((_d = (_c = data.setting) === null || _c === void 0 ? void 0 : _c.navigation) === null || _d === void 0 ? void 0 : _d.size),
|
|
425
|
+
color: (_f = (_e = data.setting) === null || _e === void 0 ? void 0 : _e.navigation) === null || _f === void 0 ? void 0 : _f.color
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
var getItemContent = function getItemContent(item, preItem, nextItem) {
|
|
429
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
430
|
+
|
|
431
|
+
var data = _this.props.data;
|
|
432
|
+
var userWalletData = _this.state.userWalletData;
|
|
433
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
434
|
+
var _bgStyle = {};
|
|
435
|
+
|
|
436
|
+
if (item.background) {
|
|
437
|
+
if (item.background.bgType === 'color') {
|
|
438
|
+
_bgStyle.backgroundColor = item.background.color;
|
|
439
|
+
_bgStyle.opacity = item.background.opacity ? item.background.opacity : 1;
|
|
440
|
+
} else {
|
|
441
|
+
_bgStyle.backgroundImage = "url(" + item.background.image + ")";
|
|
442
|
+
_bgStyle.backgroundPosition = 'center';
|
|
443
|
+
_bgStyle.backgroundSize = 'cover';
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
item.text.text = ((_a = userWalletData[item.sourceType]) === null || _a === void 0 ? void 0 : _a.text) || 'Make money and shop on Cendol!';
|
|
448
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
449
|
+
className: "text-content",
|
|
450
|
+
style: _bgStyle
|
|
451
|
+
}, ((_b = item.title) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
452
|
+
className: "title",
|
|
453
|
+
data: item.title,
|
|
454
|
+
GAData: __assign(__assign({}, GAData), {
|
|
455
|
+
groupId: item.id,
|
|
456
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
319
457
|
})
|
|
320
|
-
}, item.
|
|
321
|
-
className: "
|
|
322
|
-
data:
|
|
458
|
+
}), ((_c = item.amount) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
459
|
+
className: "amount",
|
|
460
|
+
data: __assign(__assign({}, item.amount), {
|
|
461
|
+
text: (_d = userWalletData[item.sourceType]) === null || _d === void 0 ? void 0 : _d.amount
|
|
462
|
+
}),
|
|
323
463
|
GAData: __assign(__assign({}, GAData), {
|
|
324
464
|
groupId: item.id,
|
|
325
465
|
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
326
|
-
})
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}, item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
332
|
-
className: "title",
|
|
333
|
-
data: item.hover.open && item.hover.title.open && _this.state["hover_" + item.id] ? item.hover.title : item.title,
|
|
466
|
+
}),
|
|
467
|
+
readonly: true
|
|
468
|
+
}), ((_e = item.text) === null || _e === void 0 ? void 0 : _e.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
469
|
+
className: "text",
|
|
470
|
+
data: item.text,
|
|
334
471
|
GAData: __assign(__assign({}, GAData), {
|
|
335
472
|
groupId: item.id,
|
|
336
473
|
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
337
474
|
})
|
|
338
|
-
}), item.
|
|
339
|
-
className: "
|
|
340
|
-
data: __assign(__assign({}, item.
|
|
341
|
-
text:
|
|
475
|
+
}), ((_f = item.button) === null || _f === void 0 ? void 0 : _f.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
476
|
+
className: "wallet-btn",
|
|
477
|
+
data: __assign(__assign({}, item.button), {
|
|
478
|
+
text: ((_g = userWalletData[item.sourceType]) === null || _g === void 0 ? void 0 : _g.btnText) || 'Lets Go!'
|
|
479
|
+
}),
|
|
480
|
+
GAData: __assign(__assign({}, GAData), {
|
|
481
|
+
groupId: item.id,
|
|
482
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
483
|
+
})
|
|
484
|
+
}), data.customize.layout === 'layout2' && ((_h = item.peek) === null || _h === void 0 ? void 0 : _h.open) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
485
|
+
className: "peek left"
|
|
486
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
487
|
+
data: __assign(__assign({}, item.peek), {
|
|
488
|
+
text: "" + (((_j = preItem === null || preItem === void 0 ? void 0 : preItem.title) === null || _j === void 0 ? void 0 : _j.text) || '')
|
|
489
|
+
}),
|
|
490
|
+
GAData: __assign(__assign({}, GAData), {
|
|
491
|
+
groupId: item.id,
|
|
492
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
493
|
+
}),
|
|
494
|
+
readonly: true
|
|
495
|
+
}), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
496
|
+
data: __assign(__assign({}, item.peek), {
|
|
497
|
+
text: "" + (((_k = userWalletData[preItem === null || preItem === void 0 ? void 0 : preItem.sourceType]) === null || _k === void 0 ? void 0 : _k.amount) || '')
|
|
498
|
+
}),
|
|
499
|
+
GAData: __assign(__assign({}, GAData), {
|
|
500
|
+
groupId: item.id,
|
|
501
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
502
|
+
}),
|
|
503
|
+
readonly: true
|
|
504
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
505
|
+
className: "peek right"
|
|
506
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
507
|
+
data: __assign(__assign({}, item.peek), {
|
|
508
|
+
text: "" + (((_l = nextItem === null || nextItem === void 0 ? void 0 : nextItem.title) === null || _l === void 0 ? void 0 : _l.text) || '')
|
|
509
|
+
}),
|
|
510
|
+
GAData: __assign(__assign({}, GAData), {
|
|
511
|
+
groupId: item.id,
|
|
512
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
513
|
+
}),
|
|
514
|
+
readonly: true
|
|
515
|
+
}), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
516
|
+
data: __assign(__assign({}, item.peek), {
|
|
517
|
+
text: "" + (((_m = userWalletData[nextItem === null || nextItem === void 0 ? void 0 : nextItem.sourceType]) === null || _m === void 0 ? void 0 : _m.amount) || '')
|
|
342
518
|
}),
|
|
343
519
|
GAData: __assign(__assign({}, GAData), {
|
|
344
520
|
groupId: item.id,
|
|
345
521
|
groupName: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
|
|
346
522
|
}),
|
|
347
523
|
readonly: true
|
|
348
|
-
})));
|
|
349
|
-
}
|
|
524
|
+
}))));
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
528
|
+
className: "m-Wallet-mobile"
|
|
529
|
+
}, data.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
530
|
+
className: "headline",
|
|
531
|
+
data: data.title.headline
|
|
532
|
+
}), data.customize.layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
533
|
+
className: "column-layout column_" + colNum,
|
|
534
|
+
style: (0, _commonUtil.pxToRem)({
|
|
535
|
+
gap: MOBILE_IMG_SIZE[colNum].gap
|
|
536
|
+
})
|
|
537
|
+
}, _groupSource.map(function (item) {
|
|
538
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
539
|
+
key: item.id,
|
|
540
|
+
className: "item-wrap",
|
|
541
|
+
style: (0, _commonUtil.pxToRem)({
|
|
542
|
+
width: "calc((100% - " + (0, _commonUtil.convertToRem)(MOBILE_IMG_SIZE[colNum].gap * (colNum - 1)) + ") / " + colNum + ")"
|
|
543
|
+
})
|
|
544
|
+
}, getItemContent(item));
|
|
545
|
+
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
546
|
+
className: "carousel-layout"
|
|
547
|
+
}, data.setting.navigation.open && _groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
548
|
+
className: "carousel-icon-left",
|
|
549
|
+
onClick: function onClick() {
|
|
550
|
+
return _this.carouselRef.current.toPrev();
|
|
551
|
+
},
|
|
552
|
+
onMouseEnter: this.mouseEnterBtn,
|
|
553
|
+
onMouseLeave: this.mouseLeaveBtn,
|
|
554
|
+
style: navStyle,
|
|
555
|
+
type: "icon-left"
|
|
556
|
+
}), /*#__PURE__*/_react["default"].createElement(_common.CardCarousel, {
|
|
557
|
+
ref: this.carouselRef,
|
|
558
|
+
autoplay: autoplay,
|
|
559
|
+
delay: ((_h = (_g = data.setting) === null || _g === void 0 ? void 0 : _g.autoplay) === null || _h === void 0 ? void 0 : _h.interval) * 1000,
|
|
560
|
+
onChange: function onChange(index) {
|
|
561
|
+
return _this.setState({
|
|
562
|
+
sliderIndex: index
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
}, _groupSource.map(function (item, index) {
|
|
566
|
+
var preItemFirst = _groupSource.length > 1 ? _groupSource[_groupSource.length - 1] : null;
|
|
567
|
+
var preItemLast = _groupSource.length > 1 ? _groupSource[0] : null;
|
|
568
|
+
var preItem = index === 0 ? preItemFirst : _groupSource[index - 1];
|
|
569
|
+
var nextItem = index === _groupSource.length - 1 ? preItemLast : _groupSource[index + 1];
|
|
570
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
571
|
+
key: item.id,
|
|
572
|
+
className: "item-wrap"
|
|
573
|
+
}, getItemContent(item, preItem, nextItem));
|
|
574
|
+
})), data.setting.navigation.open && _groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
575
|
+
className: "carousel-icon-right",
|
|
576
|
+
onClick: function onClick() {
|
|
577
|
+
return _this.carouselRef.current.toNext();
|
|
578
|
+
},
|
|
579
|
+
onMouseEnter: this.mouseEnterBtn,
|
|
580
|
+
onMouseLeave: this.mouseLeaveBtn,
|
|
581
|
+
style: navStyle,
|
|
582
|
+
type: "icon-right"
|
|
583
|
+
}), data.setting.dots.open && _groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
584
|
+
className: "swiper-ban"
|
|
585
|
+
}, _groupSource.map(function (item, i) {
|
|
586
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
587
|
+
key: i,
|
|
588
|
+
className: (0, _classnames["default"])('ban', {
|
|
589
|
+
active: i == sliderIndex
|
|
590
|
+
}),
|
|
591
|
+
onClick: function onClick() {
|
|
592
|
+
return _this.carouselRef.current.slideTo(i);
|
|
593
|
+
},
|
|
594
|
+
style: (0, _commonUtil.pxToRem)({
|
|
595
|
+
backgroundColor: i == sliderIndex ? data.setting.dots.hoverColor : data.setting.dots.color,
|
|
596
|
+
fontSize: i == sliderIndex ? data.setting.dots.hoverSize : data.setting.dots.size
|
|
597
|
+
})
|
|
598
|
+
});
|
|
599
|
+
}))));
|
|
350
600
|
};
|
|
351
601
|
|
|
352
602
|
WalletMobile.defaultProps = {
|
|
@@ -1,27 +1,103 @@
|
|
|
1
1
|
.m-Wallet-mobile .headline {
|
|
2
2
|
margin-bottom: 0.14rem;
|
|
3
3
|
}
|
|
4
|
-
.m-Wallet-mobile .content {
|
|
4
|
+
.m-Wallet-mobile .item-wrap .text-content {
|
|
5
|
+
position: relative !important;
|
|
5
6
|
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
6
9
|
flex-wrap: wrap;
|
|
10
|
+
border-radius: 0.2rem;
|
|
11
|
+
padding: 0.2rem 0.8rem 1.16rem 0.8rem;
|
|
12
|
+
}
|
|
13
|
+
.m-Wallet-mobile .item-wrap .text-content .wallet-btn {
|
|
14
|
+
margin-top: 0.2rem;
|
|
7
15
|
}
|
|
8
|
-
.m-Wallet-mobile .
|
|
9
|
-
|
|
16
|
+
.m-Wallet-mobile .item-wrap .text-content .peek {
|
|
17
|
+
position: absolute;
|
|
18
|
+
bottom: 0.16rem;
|
|
19
|
+
width: 1.2rem !important;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
}
|
|
22
|
+
.m-Wallet-mobile .item-wrap .text-content .peek.left {
|
|
23
|
+
left: 0.8rem;
|
|
10
24
|
}
|
|
11
|
-
.m-Wallet-mobile .
|
|
12
|
-
|
|
25
|
+
.m-Wallet-mobile .item-wrap .text-content .peek.right {
|
|
26
|
+
right: 0.8rem;
|
|
13
27
|
}
|
|
14
|
-
.m-Wallet-mobile .
|
|
28
|
+
.m-Wallet-mobile .column-layout {
|
|
15
29
|
display: flex;
|
|
16
|
-
|
|
17
|
-
justify-content:
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
}
|
|
33
|
+
.m-Wallet-mobile .column-layout .text-content {
|
|
34
|
+
padding: 0.2rem 0 0.2rem 0;
|
|
35
|
+
}
|
|
36
|
+
.m-Wallet-mobile .column-layout .text-content .wallet-btn {
|
|
37
|
+
margin-top: 0.2rem;
|
|
38
|
+
}
|
|
39
|
+
.m-Wallet-mobile .column-layout .text-content .peek {
|
|
40
|
+
bottom: 0.2rem;
|
|
41
|
+
}
|
|
42
|
+
.m-Wallet-mobile .column-layout .text-content .peek.left {
|
|
43
|
+
left: 0.32rem;
|
|
44
|
+
}
|
|
45
|
+
.m-Wallet-mobile .column-layout .text-content .peek.right {
|
|
46
|
+
right: 0.32rem;
|
|
47
|
+
}
|
|
48
|
+
.m-Wallet-mobile .carousel-layout {
|
|
18
49
|
position: relative;
|
|
19
|
-
|
|
50
|
+
min-height: 4.8rem;
|
|
20
51
|
}
|
|
21
|
-
.m-Wallet-mobile .
|
|
22
|
-
|
|
23
|
-
|
|
52
|
+
.m-Wallet-mobile .carousel-layout .slick-track {
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
.m-Wallet-mobile .carousel-layout .carousel-icon-left {
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: 0.32rem;
|
|
60
|
+
top: 0;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
margin: auto;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
z-index: 20;
|
|
24
65
|
}
|
|
25
|
-
.m-Wallet-mobile .
|
|
66
|
+
.m-Wallet-mobile .carousel-layout .carousel-icon-right {
|
|
26
67
|
position: absolute;
|
|
68
|
+
right: 0.32rem;
|
|
69
|
+
top: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
margin: auto;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
z-index: 20;
|
|
74
|
+
}
|
|
75
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban {
|
|
76
|
+
position: absolute;
|
|
77
|
+
width: 100%;
|
|
78
|
+
bottom: 0.72rem;
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
z-index: 20;
|
|
83
|
+
}
|
|
84
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban .ban {
|
|
85
|
+
font-size: 0.16rem;
|
|
86
|
+
width: 1em;
|
|
87
|
+
height: 1em;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
background-color: #FFF;
|
|
90
|
+
cursor: inherit;
|
|
91
|
+
margin-right: 0.2rem;
|
|
92
|
+
transition: all 0.5s;
|
|
93
|
+
opacity: 0.4;
|
|
94
|
+
}
|
|
95
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban .ban:last-child {
|
|
96
|
+
margin-right: 0;
|
|
97
|
+
}
|
|
98
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban .ban.active {
|
|
99
|
+
width: 2em;
|
|
100
|
+
height: 1em;
|
|
101
|
+
border-radius: 2rem;
|
|
102
|
+
opacity: 1;
|
|
27
103
|
}
|
|
@@ -17,8 +17,6 @@ var _currencyUtil = require("../../../../../utils/currencyUtil");
|
|
|
17
17
|
|
|
18
18
|
var _ConfigPanel = require("../../../../../core/Designer/ConfigPanel");
|
|
19
19
|
|
|
20
|
-
require("./index.less");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
22
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
.m-Wallet-pc {
|
|
2
|
-
|
|
3
|
-
.headline {
|
|
4
|
-
margin-bottom: 20px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.content {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-wrap: wrap;
|
|
10
|
-
|
|
11
|
-
&.column_3 {
|
|
12
|
-
.item-wrap {
|
|
13
|
-
.title {
|
|
14
|
-
top: 24%;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.amount {
|
|
18
|
-
bottom: 14%;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.item-wrap {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
position: relative;
|
|
28
|
-
border-radius: 10px;
|
|
29
|
-
|
|
30
|
-
.image {
|
|
31
|
-
border-radius: 10px;
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.text-content {
|
|
36
|
-
position: absolute;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
.m-Wallet-pc {}
|