@fonixtree/magic-design 1.0.65 → 1.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +6 -62
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
- 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 +2 -36
- package/es/assets/less/button.less +0 -5
- package/es/assets/less/cylon-antd.less +1686 -7246
- package/es/assets/less/font.less +0 -22
- package/es/common/Button/index.less +1 -0
- package/es/common/CountDown/index.js +11 -20
- package/es/common/GroupList/index.js +2 -7
- package/es/common/ImagePicker/index.js +3 -1
- package/es/common/LinkModal/CouponTable/index.js +3 -3
- package/es/common/LinkModal/CustomTable/index.js +0 -1
- package/es/common/LinkModal/FunctionTable/index.js +1 -2
- package/es/common/LinkModal/index.js +2 -14
- package/es/common/MagicLink/index.js +2 -2
- package/es/common/ProductModal/index.js +3 -38
- package/es/common/ProductSource/index.js +18 -59
- package/es/common/UrlPicker/index.js +10 -62
- package/es/common/index.js +0 -24
- package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/es/composite-comp/bol/components/Video/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
- package/es/composite-comp/bol/components/Wallet/index.js +15 -11
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
- package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
- package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
- package/es/composite-comp/common/components/ProductItem/index.js +20 -22
- package/es/composite-comp/common/components/ProductItem/index.less +12 -2
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
- package/es/constants/component-types.js +3 -45
- package/es/constants/index.js +5 -74
- package/es/constants/layout.js +1 -48
- package/es/core/Designer/ChatRobot/index.js +17 -84
- package/es/core/Designer/ChatRobot/index.less +28 -69
- package/es/core/Designer/ConfigPanel/index.js +3 -14
- package/es/core/Designer/FonixtreeGpt/index.js +29 -222
- package/es/core/Designer/PageCompList/index.js +5 -6
- package/es/core/Designer/QuickMenuBar/index.js +5 -11
- package/es/core/Designer/QuickMenuBar/index.less +0 -4
- package/es/core/Designer/RenderHtml/index.js +15 -18
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
- package/es/core/Designer/ToolBarModal/index.js +27 -69
- package/es/core/Designer/ToolBarModal/index.less +2 -3
- package/es/core/Designer/index.js +2 -26
- package/es/core/Renderer/index.js +29 -74
- package/es/decorator/compositeDecorator.js +6 -33
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +3 -17
- package/es/locale/es/es.json +3 -17
- package/es/locale/id/id.json +3 -17
- package/es/meta-comp/components/Image/index.js +25 -31
- package/es/meta-comp/components/Text/index.js +1 -4
- package/es/meta-comp/components/Text/index.less +0 -8
- package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/mobx/Frame.js +2 -17
- package/es/mobx/index.js +3 -9
- package/es/utils/androidUtil.js +2 -13
- package/es/utils/businessUtil.js +3 -25
- package/es/utils/commonUtil.js +22 -177
- package/es/utils/coreUtil.js +2 -45
- package/es/utils/currencyUtil.js +2 -9
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +6 -62
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
- 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 +2 -36
- package/lib/assets/less/button.less +0 -5
- package/lib/assets/less/cylon-antd.less +1686 -7246
- package/lib/assets/less/font.less +0 -22
- package/lib/common/Button/index.less +1 -0
- package/lib/common/CountDown/index.js +11 -20
- package/lib/common/GroupList/index.js +2 -7
- package/lib/common/ImagePicker/index.js +3 -1
- package/lib/common/LinkModal/CouponTable/index.js +3 -3
- package/lib/common/LinkModal/CustomTable/index.js +0 -1
- package/lib/common/LinkModal/FunctionTable/index.js +1 -2
- package/lib/common/LinkModal/index.js +2 -14
- package/lib/common/MagicLink/index.js +2 -2
- package/lib/common/ProductModal/index.js +3 -38
- package/lib/common/ProductSource/index.js +18 -59
- package/lib/common/UrlPicker/index.js +10 -62
- package/lib/common/index.js +0 -24
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/lib/composite-comp/bol/components/Video/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
- package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
- package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
- package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
- package/lib/constants/component-types.js +3 -45
- package/lib/constants/index.js +5 -74
- package/lib/constants/layout.js +1 -48
- package/lib/core/Designer/ChatRobot/index.js +17 -84
- package/lib/core/Designer/ChatRobot/index.less +28 -69
- package/lib/core/Designer/ConfigPanel/index.js +3 -14
- package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
- package/lib/core/Designer/PageCompList/index.js +5 -6
- package/lib/core/Designer/QuickMenuBar/index.js +5 -11
- package/lib/core/Designer/QuickMenuBar/index.less +0 -4
- package/lib/core/Designer/RenderHtml/index.js +15 -18
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
- package/lib/core/Designer/ToolBarModal/index.js +27 -69
- package/lib/core/Designer/ToolBarModal/index.less +2 -3
- package/lib/core/Designer/index.js +2 -26
- package/lib/core/Renderer/index.js +29 -74
- package/lib/decorator/compositeDecorator.js +6 -33
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +3 -17
- package/lib/locale/es/es.json +3 -17
- package/lib/locale/id/id.json +3 -17
- package/lib/meta-comp/components/Image/index.js +25 -31
- package/lib/meta-comp/components/Text/index.js +1 -4
- package/lib/meta-comp/components/Text/index.less +0 -8
- package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/mobx/Frame.js +2 -17
- package/lib/mobx/index.js +3 -9
- package/lib/utils/androidUtil.js +2 -13
- package/lib/utils/businessUtil.js +3 -25
- package/lib/utils/commonUtil.js +22 -177
- package/lib/utils/coreUtil.js +2 -45
- package/lib/utils/currencyUtil.js +2 -9
- package/package.json +1 -2
- 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/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/common/AffiliateProductModal/index.js +0 -582
- package/es/common/AffiliateProductModal/index.less +0 -146
- package/es/common/CardCarousel/index.js +0 -171
- package/es/common/CardCarousel/index.less +0 -28
- package/es/common/CropperModal/index.js +0 -126
- package/es/common/CropperModal/index.less +0 -29
- package/es/common/MyModal/index.js +0 -417
- package/es/common/MyModal/index.less +0 -74
- package/es/common/UrlPicker/AnchorModal/index.js +0 -170
- package/es/common/UrlPicker/AnchorModal/index.less +0 -21
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
- package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- 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 +0 -61
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
- package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
- package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/es/composite-comp/dito/components/Orders/index.js +0 -84
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
- package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
- package/es/mobx/UserState.js +0 -144
- 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/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/common/AffiliateProductModal/index.js +0 -582
- package/lib/common/AffiliateProductModal/index.less +0 -146
- package/lib/common/CardCarousel/index.js +0 -171
- package/lib/common/CardCarousel/index.less +0 -28
- package/lib/common/CropperModal/index.js +0 -126
- package/lib/common/CropperModal/index.less +0 -29
- package/lib/common/MyModal/index.js +0 -417
- package/lib/common/MyModal/index.less +0 -74
- package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
- package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
- package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- 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 +0 -61
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
- package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/lib/composite-comp/dito/components/Orders/index.js +0 -84
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
- package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
- package/lib/mobx/UserState.js +0 -144
package/es/utils/commonUtil.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.addZero = exports.addUrlQuery = void 0;
|
|
7
7
|
exports.asyncDataURLtoImage = asyncDataURLtoImage;
|
|
8
|
-
exports.
|
|
8
|
+
exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
|
|
9
9
|
exports.commonFetch = commonFetch;
|
|
10
10
|
exports.convertCount = exports.compatibleNewPageData = void 0;
|
|
11
11
|
exports.convertImageUrl = convertImageUrl;
|
|
@@ -16,13 +16,11 @@ exports.dragSource = exports.downloadBase64Image = void 0;
|
|
|
16
16
|
exports.ensure = ensure;
|
|
17
17
|
exports.getGAData = exports.getColorRgba = void 0;
|
|
18
18
|
exports.getPageDataMap = getPageDataMap;
|
|
19
|
-
exports.getUrlParams = void 0;
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.isLogin = isLogin;
|
|
23
|
-
exports.onListenTouch = exports.nextTick = exports.navigateTo = void 0;
|
|
19
|
+
exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
|
|
20
|
+
exports.navigateToWithSearch = navigateToWithSearch;
|
|
21
|
+
exports.nextTick = void 0;
|
|
24
22
|
exports.pushGA = pushGA;
|
|
25
|
-
exports.
|
|
23
|
+
exports.pxToRem = void 0;
|
|
26
24
|
exports.shareFacebook = shareFacebook;
|
|
27
25
|
exports.shareLinkedin = shareLinkedin;
|
|
28
26
|
exports.shareTwitter = shareTwitter;
|
|
@@ -37,14 +35,8 @@ var _uuid = require("uuid");
|
|
|
37
35
|
|
|
38
36
|
var _qs = _interopRequireDefault(require("qs"));
|
|
39
37
|
|
|
40
|
-
var _androidUtil = require("./androidUtil");
|
|
41
|
-
|
|
42
|
-
var _storeUtil = require("./storeUtil");
|
|
43
|
-
|
|
44
38
|
var _constants = require("../constants");
|
|
45
39
|
|
|
46
|
-
var _mobx = require("../mobx");
|
|
47
|
-
|
|
48
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
49
41
|
|
|
50
42
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
@@ -296,29 +288,20 @@ function commonFetch(url, data, method) {
|
|
|
296
288
|
});
|
|
297
289
|
}
|
|
298
290
|
|
|
299
|
-
var navigateTo = function navigateTo(url
|
|
300
|
-
console.log(url);
|
|
301
|
-
|
|
291
|
+
var navigateTo = function navigateTo(url) {
|
|
302
292
|
if (!url) {
|
|
303
293
|
return;
|
|
304
294
|
}
|
|
305
295
|
|
|
306
296
|
var _a = url.split(';'),
|
|
307
297
|
h5Url = _a[0],
|
|
308
|
-
appUrl = _a[1];
|
|
309
|
-
|
|
310
|
-
if (appUrl && (0, _androidUtil.browserVersion)().isApp) {
|
|
311
|
-
window.location.href = appUrl;
|
|
312
|
-
} // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
|
|
298
|
+
appUrl = _a[1]; // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
|
|
313
299
|
|
|
314
300
|
|
|
315
301
|
if (!appUrl && !h5Url.startsWith('/')) {
|
|
316
302
|
window.location.href = h5Url;
|
|
317
303
|
} else if (window.magicDesign.history) {
|
|
318
|
-
window.magicDesign.history.push(
|
|
319
|
-
pathname: h5Url,
|
|
320
|
-
state: state
|
|
321
|
-
});
|
|
304
|
+
window.magicDesign.history.push(url);
|
|
322
305
|
} else if (window.magicDesign.navigatePreUrl) {
|
|
323
306
|
// 预览模式跳转
|
|
324
307
|
if (h5Url.startsWith('/')) {
|
|
@@ -328,110 +311,20 @@ var navigateTo = function navigateTo(url, state) {
|
|
|
328
311
|
}
|
|
329
312
|
}
|
|
330
313
|
};
|
|
331
|
-
/**
|
|
314
|
+
/** 携带search 跳转 */
|
|
332
315
|
|
|
333
316
|
|
|
334
317
|
exports.navigateTo = navigateTo;
|
|
335
318
|
|
|
336
|
-
function
|
|
337
|
-
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* 跳转登陆页面
|
|
341
|
-
* SF打开的页面,需要跳转到手机验证码登陆页面
|
|
342
|
-
* @param {*} state
|
|
343
|
-
*/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
function goLogin(state, replaceFlag) {
|
|
347
|
-
if (state === void 0) {
|
|
348
|
-
state = {};
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
if (replaceFlag === void 0) {
|
|
352
|
-
replaceFlag = false;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
var isFromSf = (0, _storeUtil.getStore)(_constants.STORE_KEY.IS_FROM_SF);
|
|
356
|
-
var signUrl = isFromSf === 'Y' ? '/sign-in-opt' : '/sign-in';
|
|
319
|
+
function navigateToWithSearch(url, search, state) {
|
|
320
|
+
var _a;
|
|
357
321
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
} else {
|
|
364
|
-
navigateTo(signUrl, state);
|
|
365
|
-
}
|
|
322
|
+
(_a = window.magicDesign) === null || _a === void 0 ? void 0 : _a.history.push({
|
|
323
|
+
pathname: url,
|
|
324
|
+
search: search,
|
|
325
|
+
state: state
|
|
326
|
+
});
|
|
366
327
|
}
|
|
367
|
-
/**
|
|
368
|
-
* 检查是否登录 未登录返回登录页
|
|
369
|
-
* @param {boolean?} isLead 是否引导登录
|
|
370
|
-
* @returns boolean
|
|
371
|
-
*/
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
var checkLogin = function checkLogin(isLead, redirectUrl, replaceFlag) {
|
|
375
|
-
if (isLead === void 0) {
|
|
376
|
-
isLead = true;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
if (!isLogin()) {
|
|
380
|
-
if (isLead) {
|
|
381
|
-
if ((0, _androidUtil.browserVersion)().isApp) {
|
|
382
|
-
goToLoginApp();
|
|
383
|
-
} else {
|
|
384
|
-
var _a = window.location,
|
|
385
|
-
pathname = _a.pathname,
|
|
386
|
-
search = _a.search,
|
|
387
|
-
hash = _a.hash;
|
|
388
|
-
|
|
389
|
-
var _redirectUrl = pathname + search + hash;
|
|
390
|
-
|
|
391
|
-
goLogin({
|
|
392
|
-
redirectUrl: redirectUrl || _redirectUrl
|
|
393
|
-
}, replaceFlag);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
return false;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
return true;
|
|
401
|
-
};
|
|
402
|
-
/**
|
|
403
|
-
* TODO 根据IP获取地址信息
|
|
404
|
-
*/
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
exports.checkLogin = checkLogin;
|
|
408
|
-
|
|
409
|
-
var setDefaultAddressFromIP = function setDefaultAddressFromIP() {
|
|
410
|
-
/** 设置初始地址 */
|
|
411
|
-
|
|
412
|
-
/** 接口返回数据addrPath: "1|2|137088|137089|137090" 保留后两个再拼上contactStdId
|
|
413
|
-
* 未登陆造数据和真实数据一致使用countryId占位
|
|
414
|
-
*/
|
|
415
|
-
|
|
416
|
-
/** 138375,138376,126065,126066 */
|
|
417
|
-
if (!_mobx.userState.state.userAddress) {
|
|
418
|
-
_mobx.userState.setState({
|
|
419
|
-
userAddress: {
|
|
420
|
-
_FROM: 'ip',
|
|
421
|
-
addrPath: 'countryId|countryId1T|countryId2T|138375|138376|126065',
|
|
422
|
-
city: 'CITY OF MANILA',
|
|
423
|
-
contactStdId: 126066,
|
|
424
|
-
// country: 'CITY OF MANILA',
|
|
425
|
-
district: 'SAN MIGUEL',
|
|
426
|
-
street: 'Barangay 637',
|
|
427
|
-
province: 'NCR, CITY OF MANILA, FIRST DISTRICT',
|
|
428
|
-
type: 'address'
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
exports.setDefaultAddressFromIP = setDefaultAddressFromIP;
|
|
435
328
|
|
|
436
329
|
var addUrlQuery = function addUrlQuery(url, queryObj) {
|
|
437
330
|
if (/\?/.test(url)) {
|
|
@@ -759,7 +652,7 @@ function pushGA(data, eventName) {
|
|
|
759
652
|
elementName: data.elementName
|
|
760
653
|
};
|
|
761
654
|
console.log('GA push', eventName, eventData);
|
|
762
|
-
|
|
655
|
+
window.gtag('event', eventName, eventData);
|
|
763
656
|
}
|
|
764
657
|
} catch (error) {
|
|
765
658
|
console.error(error);
|
|
@@ -872,7 +765,8 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
|
|
|
872
765
|
exports.asyncNextTick = asyncNextTick;
|
|
873
766
|
|
|
874
767
|
var convertToRem = function convertToRem(value) {
|
|
875
|
-
|
|
768
|
+
return value; // PTO项目 解开注释
|
|
769
|
+
|
|
876
770
|
if (window.magicDesign.device === 'pc') {
|
|
877
771
|
return value + "px";
|
|
878
772
|
}
|
|
@@ -891,7 +785,8 @@ var convertToRem = function convertToRem(value) {
|
|
|
891
785
|
exports.convertToRem = convertToRem;
|
|
892
786
|
|
|
893
787
|
var pxToRem = function pxToRem(styleObj) {
|
|
894
|
-
|
|
788
|
+
return styleObj; // PTO项目 解开注释
|
|
789
|
+
|
|
895
790
|
if (window.magicDesign.device === 'pc') {
|
|
896
791
|
return styleObj;
|
|
897
792
|
}
|
|
@@ -1027,54 +922,4 @@ var convertCount = function convertCount(value) {
|
|
|
1027
922
|
return newValue;
|
|
1028
923
|
};
|
|
1029
924
|
|
|
1030
|
-
exports.convertCount = convertCount;
|
|
1031
|
-
|
|
1032
|
-
var onListenTouch = function onListenTouch(cls, leftFunc, rightFunc) {
|
|
1033
|
-
var box = document.querySelector(cls); // 监听对象
|
|
1034
|
-
|
|
1035
|
-
var startTime = ''; // 触摸开始时间
|
|
1036
|
-
|
|
1037
|
-
var startDistanceX = ''; // 触摸开始X轴位置
|
|
1038
|
-
|
|
1039
|
-
var startDistanceY = ''; // 触摸开始Y轴位置
|
|
1040
|
-
|
|
1041
|
-
var endTime = ''; // 触摸结束时间
|
|
1042
|
-
|
|
1043
|
-
var endDistanceX = ''; // 触摸结束X轴位置
|
|
1044
|
-
|
|
1045
|
-
var endDistanceY = ''; // 触摸结束Y轴位置
|
|
1046
|
-
|
|
1047
|
-
var moveTime = ''; // 触摸时间
|
|
1048
|
-
|
|
1049
|
-
var moveDistanceX = ''; // 触摸移动X轴距离
|
|
1050
|
-
|
|
1051
|
-
var moveDistanceY = ''; // 触摸移动Y轴距离
|
|
1052
|
-
|
|
1053
|
-
box.addEventListener('touchstart', function (e) {
|
|
1054
|
-
startTime = new Date().getTime();
|
|
1055
|
-
startDistanceX = e.touches[0].screenX;
|
|
1056
|
-
startDistanceY = e.touches[0].screenY;
|
|
1057
|
-
});
|
|
1058
|
-
box.addEventListener('touchend', function (e) {
|
|
1059
|
-
endTime = new Date().getTime();
|
|
1060
|
-
endDistanceX = e.changedTouches[0].screenX;
|
|
1061
|
-
endDistanceY = e.changedTouches[0].screenY;
|
|
1062
|
-
moveTime = endTime - startTime;
|
|
1063
|
-
moveDistanceX = startDistanceX - endDistanceX;
|
|
1064
|
-
moveDistanceY = startDistanceY - endDistanceY; // 判断滑动距离超过40 且 时间小于500毫秒
|
|
1065
|
-
|
|
1066
|
-
if ((Math.abs(moveDistanceX) > 40 || Math.abs(moveDistanceY) > 40) && moveTime < 500) {
|
|
1067
|
-
// 判断X轴移动的距离是否大于Y轴移动的距离
|
|
1068
|
-
if (Math.abs(moveDistanceX) > Math.abs(moveDistanceY)) {
|
|
1069
|
-
// 左右
|
|
1070
|
-
if (moveDistanceX > 0) leftFunc();else rightFunc();
|
|
1071
|
-
} else {
|
|
1072
|
-
// 上下
|
|
1073
|
-
return moveDistanceY > 0 ? 'top' : 'bottom';
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
});
|
|
1077
|
-
return null;
|
|
1078
|
-
};
|
|
1079
|
-
|
|
1080
|
-
exports.onListenTouch = onListenTouch;
|
|
925
|
+
exports.convertCount = convertCount;
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -286,22 +286,6 @@ var getCoupon = function getCoupon(couponId) {
|
|
|
286
286
|
});
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
-
function isUrl(string) {
|
|
290
|
-
// var pattern = new RegExp('^(https?:\\/\\/)?' + // 协议
|
|
291
|
-
// '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // 域名
|
|
292
|
-
// '((\\d{1,3}\\.){3}\\d{1,3}))' + // 或者 IP (v4) 地址
|
|
293
|
-
// '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // 端口和路径
|
|
294
|
-
// '(\\?[;&a-z\\d%_.~+=-]*)?' + // 查询字符串
|
|
295
|
-
// '(\\#[-a-z\\d_]*)?$', 'i'); // fragment locator
|
|
296
|
-
// return !!pattern.test(string);
|
|
297
|
-
try {
|
|
298
|
-
new URL(string);
|
|
299
|
-
return true;
|
|
300
|
-
} catch (_) {
|
|
301
|
-
return false;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
289
|
var clickUrl = function clickUrl(url) {
|
|
306
290
|
if (url === void 0) {
|
|
307
291
|
url = '';
|
|
@@ -326,17 +310,6 @@ var clickUrl = function clickUrl(url) {
|
|
|
326
310
|
url: params.link
|
|
327
311
|
}
|
|
328
312
|
});
|
|
329
|
-
/** 锚点跳转 */
|
|
330
|
-
|
|
331
|
-
if (params.type === 'ANCHOR') {
|
|
332
|
-
(0, _commonUtil.ensure)(function () {
|
|
333
|
-
var nodeId = isPc() ? params.data.pcNodeId : params.data.mobileNodeId;
|
|
334
|
-
document.querySelector("#node-" + nodeId).scrollIntoView({
|
|
335
|
-
behavior: 'smooth'
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
return;
|
|
339
|
-
}
|
|
340
313
|
|
|
341
314
|
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
342
315
|
(0, _androidUtil.sendToApp)(data);
|
|
@@ -369,25 +342,9 @@ var clickUrl = function clickUrl(url) {
|
|
|
369
342
|
}
|
|
370
343
|
|
|
371
344
|
return;
|
|
372
|
-
} // 输入的是完整的跳转地址
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
if (isUrl(link)) {
|
|
376
|
-
if (!link.includes(window.location.host)) {
|
|
377
|
-
// 跳转外链 需要把userToken带上
|
|
378
|
-
if (link.includes('?')) {
|
|
379
|
-
var a = link + "&userToken=" + (localStorage.getItem('h5Token') || '');
|
|
380
|
-
window.open(a);
|
|
381
|
-
} else {
|
|
382
|
-
var a = link + "?userToken=" + (localStorage.getItem('h5Token') || '');
|
|
383
|
-
window.open(a);
|
|
384
|
-
}
|
|
385
|
-
} else {
|
|
386
|
-
window.open(link);
|
|
387
|
-
}
|
|
388
|
-
} else {
|
|
389
|
-
(0, _commonUtil.navigateTo)(link);
|
|
390
345
|
}
|
|
346
|
+
|
|
347
|
+
(0, _commonUtil.navigateTo)(link);
|
|
391
348
|
}
|
|
392
349
|
};
|
|
393
350
|
|
package/es/utils/currencyUtil.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.
|
|
6
|
+
exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.formatCurrencyWithSymbol = exports.formatCurrency = exports.formatBackendCurrency = exports.currencyToFont = exports.calcFloatCount = exports.addSeparators = void 0;
|
|
7
7
|
|
|
8
8
|
var _divide = _interopRequireDefault(require("lodash/divide"));
|
|
9
9
|
|
|
@@ -105,13 +105,6 @@ var formatCurrencyWithSymbol = function formatCurrencyWithSymbol(num) {
|
|
|
105
105
|
var ret = formatCurrency(num);
|
|
106
106
|
return getPricePrefix() + " " + ret;
|
|
107
107
|
};
|
|
108
|
-
|
|
109
|
-
exports.formatCurrencyWithSymbol = formatCurrencyWithSymbol;
|
|
110
|
-
|
|
111
|
-
var formatCurrencyWithSymbolNotSpace = function formatCurrencyWithSymbolNotSpace(num) {
|
|
112
|
-
var ret = formatCurrency(num);
|
|
113
|
-
return "" + getPricePrefix() + ret;
|
|
114
|
-
};
|
|
115
108
|
/**
|
|
116
109
|
* TODO 未兼容科学计数法(小数点后7位)
|
|
117
110
|
* 计算浮点位数
|
|
@@ -120,7 +113,7 @@ var formatCurrencyWithSymbolNotSpace = function formatCurrencyWithSymbolNotSpace
|
|
|
120
113
|
*/
|
|
121
114
|
|
|
122
115
|
|
|
123
|
-
exports.
|
|
116
|
+
exports.formatCurrencyWithSymbol = formatCurrencyWithSymbol;
|
|
124
117
|
|
|
125
118
|
var calcFloatCount = function calcFloatCount(number) {
|
|
126
119
|
var numbString = String(number);
|
|
Binary file
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family: "magic-box-iconfont";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
url('magic-box-iconfont.ttf?t=1709712007938') format('truetype');
|
|
2
|
+
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.magic-box-iconfont {
|
|
@@ -14,62 +13,6 @@
|
|
|
14
13
|
-moz-osx-font-smoothing: grayscale;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
.magic-box-icon-orders:before {
|
|
18
|
-
content: "\e64c";
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.magic-box-icon-function:before {
|
|
22
|
-
content: "\e6d1";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.magic-box-icon-messages:before {
|
|
26
|
-
content: "\e600";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.magic-box-icon-set:before {
|
|
30
|
-
content: "\e601";
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.magic-box-icon-cards_fill:before {
|
|
34
|
-
content: "\e7a6";
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.magic-box-icon-account:before {
|
|
38
|
-
content: "\e655";
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.magic-box-icon-anchor:before {
|
|
42
|
-
content: "\e642";
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.magic-box-icon-circle-down:before {
|
|
46
|
-
content: "\e686";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.magic-box-icon-circle-up:before {
|
|
50
|
-
content: "\e687";
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.magic-box-icon-template:before {
|
|
54
|
-
content: "\e685";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.magic-box-icon-text-align-center:before {
|
|
58
|
-
content: "\e682";
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.magic-box-icon-text-align-left:before {
|
|
62
|
-
content: "\e683";
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.magic-box-icon-text-align-right:before {
|
|
66
|
-
content: "\e684";
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.magic-box-icon-Wallet:before {
|
|
70
|
-
content: "\e681";
|
|
71
|
-
}
|
|
72
|
-
|
|
73
16
|
.magic-box-icon-ShoppingCartSimple1:before {
|
|
74
17
|
content: "\e680";
|
|
75
18
|
}
|
|
@@ -544,4 +487,5 @@
|
|
|
544
487
|
|
|
545
488
|
.magic-box-icon-image:before {
|
|
546
489
|
content: "\e608";
|
|
547
|
-
}
|
|
490
|
+
}
|
|
491
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -13,38 +13,6 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.icon-anchor:before {
|
|
17
|
-
content: "\e642";
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.icon-circle-down:before {
|
|
21
|
-
content: "\e686";
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.icon-circle-up:before {
|
|
25
|
-
content: "\e687";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.icon-template:before {
|
|
29
|
-
content: "\e685";
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.icon-text-align-center:before {
|
|
33
|
-
content: "\e682";
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.icon-text-align-left:before {
|
|
37
|
-
content: "\e683";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.icon-text-align-right:before {
|
|
41
|
-
content: "\e684";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.icon-Wallet:before {
|
|
45
|
-
content: "\e681";
|
|
46
|
-
}
|
|
47
|
-
|
|
48
16
|
.icon-ShoppingCartSimple1:before {
|
|
49
17
|
content: "\e680";
|
|
50
18
|
}
|