@fonixtree/magic-design 2.0.202 → 2.0.204
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/AvenirNext-Bold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +27 -3
- package/es/assets/fonts/magic-box-iconfont.js +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/layout-icon/banner-slide-layout3.png +0 -0
- package/es/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/es/assets/images/layout-icon/news-layout1.png +0 -0
- package/es/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/es/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/es/assets/less/font.less +30 -0
- package/es/assets/less/global.less +5 -0
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/LinkModal/ProductList/index.js +484 -0
- package/es/common/LinkModal/ProductList/index.less +130 -0
- package/es/common/LinkModal/index.js +8 -1
- package/es/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/es/common/ProductCardModal/index.js +255 -0
- package/es/common/ProductCardModal/index.less +131 -0
- package/es/common/Toast/index.js +30 -0
- package/es/common/Toast/index.less +29 -0
- package/es/common/UrlPicker/index.js +1 -1
- package/es/common/Video/index.js +5 -3
- package/es/common/VideoPC/background.png +0 -0
- package/es/common/VideoPC/closeImg.png +0 -0
- package/es/common/VideoPC/components/index.js +100 -0
- package/es/common/VideoPC/components/index.less +62 -0
- package/es/common/VideoPC/cover.png +0 -0
- package/es/common/VideoPC/index.js +750 -0
- package/es/common/VideoPC/index.less +79 -0
- package/es/common/index.js +24 -0
- package/es/composite-comp/common/components/ProductItem/index.js +15 -8
- package/es/composite-comp/common/components/ProductItem/index.less +7 -0
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/es/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/es/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{lib/composite-comp/dito/components/Orders → es/composite-comp/dito/components/News}/index.js +13 -13
- package/es/composite-comp/dito/components/News/pc/index.js +113 -0
- package/es/composite-comp/dito/components/News/pc/index.less +46 -0
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/es/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/es/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{lib/composite-comp/dito/config-panels/OrdersConfig → es/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/es/constants/component-types.js +27 -9
- package/es/constants/index.js +40 -20
- package/es/constants/layout.js +46 -2
- package/es/core/Designer/ConfigPanel/index.js +17 -1
- package/es/core/Renderer/index.js +37 -2
- package/es/decorator/compositeDecorator.js +5 -1
- package/es/decorator/metaDecorator.js +1 -2
- package/es/locale/ar/ar.json +11 -1
- package/es/locale/en/en.json +11 -1
- package/es/locale/es/es.json +11 -1
- package/es/meta-comp/components/Button/editable.js +3 -1
- package/es/meta-comp/components/Button/index.js +13 -4
- package/es/meta-comp/components/Button/index.less +8 -1
- package/es/meta-comp/components/Image/index.js +7 -2
- package/es/meta-comp/components/Image/index.less +7 -0
- package/es/meta-comp/components/Text/index.js +6 -2
- package/es/meta-comp/components/Text/index.less +3 -0
- package/es/mobx/Frame.js +12 -1
- package/es/mobx/Store.js +12 -0
- package/es/utils/androidUtil.js +10 -2
- package/es/utils/businessUtil.js +218 -3
- package/es/utils/commonUtil.js +155 -4
- package/es/utils/coreUtil.js +59 -4
- package/es/utils/messageUtil.js +40 -0
- package/es/utils/pluginsUtil.js +1 -0
- package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +27 -3
- package/lib/assets/fonts/magic-box-iconfont.js +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/layout-icon/banner-slide-layout3.png +0 -0
- package/lib/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/lib/assets/images/layout-icon/news-layout1.png +0 -0
- package/lib/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/lib/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/lib/assets/less/font.less +30 -0
- package/lib/assets/less/global.less +5 -0
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/LinkModal/ProductList/index.js +484 -0
- package/lib/common/LinkModal/ProductList/index.less +130 -0
- package/lib/common/LinkModal/index.js +8 -1
- package/lib/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/lib/common/ProductCardModal/index.js +255 -0
- package/lib/common/ProductCardModal/index.less +131 -0
- package/lib/common/Toast/index.js +30 -0
- package/lib/common/Toast/index.less +29 -0
- package/lib/common/UrlPicker/index.js +1 -1
- package/lib/common/Video/index.js +5 -3
- package/lib/common/VideoPC/background.png +0 -0
- package/lib/common/VideoPC/closeImg.png +0 -0
- package/lib/common/VideoPC/components/index.js +100 -0
- package/lib/common/VideoPC/components/index.less +62 -0
- package/lib/common/VideoPC/cover.png +0 -0
- package/lib/common/VideoPC/index.js +750 -0
- package/lib/common/VideoPC/index.less +79 -0
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +15 -8
- package/lib/composite-comp/common/components/ProductItem/index.less +7 -0
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/lib/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{es/composite-comp/dito/components/Orders → lib/composite-comp/dito/components/News}/index.js +13 -13
- package/lib/composite-comp/dito/components/News/pc/index.js +113 -0
- package/lib/composite-comp/dito/components/News/pc/index.less +46 -0
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/lib/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/lib/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{es/composite-comp/dito/config-panels/OrdersConfig → lib/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/lib/constants/component-types.js +27 -9
- package/lib/constants/index.js +40 -20
- package/lib/constants/layout.js +46 -2
- package/lib/core/Designer/ConfigPanel/index.js +17 -1
- package/lib/core/Renderer/index.js +37 -2
- package/lib/decorator/compositeDecorator.js +5 -1
- package/lib/decorator/metaDecorator.js +1 -2
- package/lib/locale/ar/ar.json +11 -1
- package/lib/locale/en/en.json +11 -1
- package/lib/locale/es/es.json +11 -1
- package/lib/meta-comp/components/Button/editable.js +3 -1
- package/lib/meta-comp/components/Button/index.js +13 -4
- package/lib/meta-comp/components/Button/index.less +8 -1
- package/lib/meta-comp/components/Image/index.js +7 -2
- package/lib/meta-comp/components/Image/index.less +7 -0
- package/lib/meta-comp/components/Text/index.js +6 -2
- package/lib/meta-comp/components/Text/index.less +3 -0
- package/lib/mobx/Frame.js +12 -1
- package/lib/mobx/Store.js +12 -0
- package/lib/utils/androidUtil.js +10 -2
- package/lib/utils/businessUtil.js +218 -3
- package/lib/utils/commonUtil.js +155 -4
- package/lib/utils/coreUtil.js +59 -4
- package/lib/utils/messageUtil.js +40 -0
- package/lib/utils/pluginsUtil.js +1 -0
- package/package.json +5 -2
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
- /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
.mProductList {
|
|
2
|
+
height: 500px;
|
|
3
|
+
|
|
4
|
+
.proModalWrap {
|
|
5
|
+
.info {
|
|
6
|
+
background: #ecf1fd;
|
|
7
|
+
border: 1px solid #bdcff9;
|
|
8
|
+
border-radius: 2px;
|
|
9
|
+
padding: 5px 0 5px 16px;
|
|
10
|
+
margin-bottom: 8px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.prodImage {
|
|
14
|
+
width: 36px;
|
|
15
|
+
height: 36px;
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
background-position: 50% 50%;
|
|
18
|
+
background-size: contain;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mProductListContent {
|
|
22
|
+
display: flex;
|
|
23
|
+
|
|
24
|
+
.rightCot {
|
|
25
|
+
width: calc(100% - 240px);
|
|
26
|
+
margin-left: 16px;
|
|
27
|
+
|
|
28
|
+
.selectedCot {
|
|
29
|
+
padding-right: 18px;
|
|
30
|
+
margin-left: 4px;
|
|
31
|
+
height: 78px;
|
|
32
|
+
background: #f8f8f8;
|
|
33
|
+
border: 1px solid #e0e0e0;
|
|
34
|
+
border-radius: 2px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
// flex-wrap: wrap;
|
|
38
|
+
overflow-x: auto;
|
|
39
|
+
|
|
40
|
+
.selectedItem {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
margin-top: 12px;
|
|
43
|
+
margin-left: 18px;
|
|
44
|
+
height: 52px;
|
|
45
|
+
position: relative;
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
.selectedItemImg {
|
|
49
|
+
width: 52px;
|
|
50
|
+
height: 52px;
|
|
51
|
+
border: 1px solid #4477ee !important;
|
|
52
|
+
box-shadow: 0 0 0 2px rgba(68, 119, 238, 0.15);
|
|
53
|
+
border-radius: 2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.selectedItemClose {
|
|
57
|
+
display: flex;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.selectedItemClose {
|
|
62
|
+
display: none;
|
|
63
|
+
border: 1px solid #000;
|
|
64
|
+
width: 16px;
|
|
65
|
+
height: 16px;
|
|
66
|
+
border-radius: 50%;
|
|
67
|
+
padding: 2px;
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: -9px;
|
|
70
|
+
right: -8px;
|
|
71
|
+
z-index: 400;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.selectedItemImg {
|
|
76
|
+
height: 52px;
|
|
77
|
+
width: 52px;
|
|
78
|
+
border: 1px solid #e0e0e0;
|
|
79
|
+
border-radius: 2px;
|
|
80
|
+
|
|
81
|
+
&.invalid {
|
|
82
|
+
border: 1px solid red;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.leftCot {
|
|
90
|
+
width: 280px;
|
|
91
|
+
// height: 400px;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
border-right: 1px solid #e0e0e0;
|
|
94
|
+
padding-right: 15px;
|
|
95
|
+
|
|
96
|
+
.price {
|
|
97
|
+
display: flex;
|
|
98
|
+
width: calc(100% - 16px);
|
|
99
|
+
|
|
100
|
+
.icon {
|
|
101
|
+
width: 100px;
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
align-items: center;
|
|
105
|
+
border: 1px solid #e0e0e0;
|
|
106
|
+
border-radius: 2px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cylon-form-item {
|
|
111
|
+
margin-bottom: 4px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.buttonStyle {
|
|
115
|
+
margin-top: 10px;
|
|
116
|
+
text-align: right;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.cylon-modal-root {
|
|
124
|
+
display: flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
position: absolute;
|
|
127
|
+
left: 0;
|
|
128
|
+
right: 0;
|
|
129
|
+
z-index: 1001;
|
|
130
|
+
}
|
|
@@ -55,6 +55,8 @@ var _MissionDetail = _interopRequireDefault(require("./MissionDetail"));
|
|
|
55
55
|
|
|
56
56
|
var _BizType = _interopRequireDefault(require("./BizType"));
|
|
57
57
|
|
|
58
|
+
var _ProductList = _interopRequireDefault(require("./ProductList"));
|
|
59
|
+
|
|
58
60
|
var _locale = require("../../locale");
|
|
59
61
|
|
|
60
62
|
var _commonUtil = require("../../utils/commonUtil");
|
|
@@ -449,9 +451,14 @@ var LinkModal = function LinkModal(props) {
|
|
|
449
451
|
onChange: function onChange(value) {
|
|
450
452
|
return setLinkUrl(value);
|
|
451
453
|
}
|
|
454
|
+
}), selected === 'ProductList' && /*#__PURE__*/_react["default"].createElement(_ProductList["default"], {
|
|
455
|
+
onChange: function onChange(url, t) {
|
|
456
|
+
setLinkUrl(url);
|
|
457
|
+
setTotal(t);
|
|
458
|
+
}
|
|
452
459
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
453
460
|
className: "footer"
|
|
454
|
-
}, selected === 'FilteredProduct' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
461
|
+
}, selected === 'FilteredProduct' || selected === 'ProductList' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
455
462
|
className: "total"
|
|
456
463
|
}, (0, _locale.i18n)('PRODUCTS_IN_TOTAL', {
|
|
457
464
|
total: total
|
|
Binary file
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = ProductCardModal;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _framerMotion = require("framer-motion");
|
|
13
|
+
|
|
14
|
+
var _dotIcon = _interopRequireDefault(require("./imgs/dot-icon.png"));
|
|
15
|
+
|
|
16
|
+
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
17
|
+
|
|
18
|
+
require("./index.less");
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
var _commonUtil = require("../../utils/commonUtil");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function ProductCardModal(_a) {
|
|
31
|
+
var _b = _a.data,
|
|
32
|
+
data = _b === void 0 ? [] : _b,
|
|
33
|
+
onClose = _a.onClose,
|
|
34
|
+
_c = _a.autoplay,
|
|
35
|
+
autoplay = _c === void 0 ? false : _c;
|
|
36
|
+
|
|
37
|
+
var _d = (0, _react.useState)(0),
|
|
38
|
+
active = _d[0],
|
|
39
|
+
setActive = _d[1];
|
|
40
|
+
|
|
41
|
+
var _e = (0, _react.useState)(true),
|
|
42
|
+
loading = _e[0],
|
|
43
|
+
setLoading = _e[1];
|
|
44
|
+
|
|
45
|
+
var flag = true;
|
|
46
|
+
|
|
47
|
+
var handleNext = function handleNext(e) {
|
|
48
|
+
e.stopPropagation();
|
|
49
|
+
setActive(function (prev) {
|
|
50
|
+
return (prev + 1) % data.length;
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var handlePrev = function handlePrev(e) {
|
|
55
|
+
e.stopPropagation();
|
|
56
|
+
setActive(function (prev) {
|
|
57
|
+
return (prev - 1 + data.length) % data.length;
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var isActive = function isActive(index) {
|
|
62
|
+
return index === active;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
var isShow = function isShow(index) {
|
|
66
|
+
if (data.length > 3) {
|
|
67
|
+
var oneShow = 0;
|
|
68
|
+
var twoShow = 0;
|
|
69
|
+
|
|
70
|
+
if (active === 0) {
|
|
71
|
+
oneShow = data.length - 1;
|
|
72
|
+
twoShow = active + 1;
|
|
73
|
+
} else if (active === data.length - 1) {
|
|
74
|
+
oneShow = active - 1;
|
|
75
|
+
twoShow = 0;
|
|
76
|
+
} else {
|
|
77
|
+
oneShow = active - 1;
|
|
78
|
+
twoShow = active + 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return index === oneShow || index === twoShow;
|
|
82
|
+
} else {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var randomRotateY = function randomRotateY(index) {
|
|
88
|
+
// return Math.floor(Math.random() * 21) - 10;
|
|
89
|
+
// return Math.floor((index % 2 === 0 ? -index : index) * 0.1 * 21) - 10;
|
|
90
|
+
return index === 0 || index === 1 ? -10 : 10;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
var handleScroll = function handleScroll(e) {
|
|
94
|
+
if (flag) {
|
|
95
|
+
flag = false; // 统一处理 delta 值
|
|
96
|
+
|
|
97
|
+
var delta = 0;
|
|
98
|
+
|
|
99
|
+
if (e.deltaY) {
|
|
100
|
+
delta = e.deltaY; // 现代浏览器
|
|
101
|
+
} else if (e.wheelDelta) {
|
|
102
|
+
delta = -e.wheelDelta / 40; // 旧版浏览器,调整方向和数值
|
|
103
|
+
} // 判断方向
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
if (delta > 0) {
|
|
107
|
+
console.log('向下滚动..');
|
|
108
|
+
handleNext(e);
|
|
109
|
+
} else if (delta < 0) {
|
|
110
|
+
console.log('向上滚动');
|
|
111
|
+
handlePrev(e);
|
|
112
|
+
} // 阻止默认滚动行为(如需要)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
e.preventDefault();
|
|
116
|
+
var scrollTimeout_1 = setTimeout(function () {
|
|
117
|
+
flag = true;
|
|
118
|
+
clearTimeout(scrollTimeout_1);
|
|
119
|
+
}, 2000);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
(0, _react.useEffect)(function () {
|
|
124
|
+
if (autoplay) {
|
|
125
|
+
var interval_1 = setInterval(handleNext, 5000);
|
|
126
|
+
return function () {
|
|
127
|
+
return clearInterval(interval_1);
|
|
128
|
+
};
|
|
129
|
+
} // 监听滚轮事件(推荐:现代浏览器)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
document.addEventListener('wheel', handleScroll); // 兼容旧版浏览器(如 IE/旧 WebKit)
|
|
133
|
+
// document.addEventListener('mousewheel', handleScroll);
|
|
134
|
+
|
|
135
|
+
return function () {
|
|
136
|
+
document.removeEventListener('wheel', handleScroll); // document.removeEventListener('mousewheel', handleScroll);
|
|
137
|
+
};
|
|
138
|
+
}, [autoplay]);
|
|
139
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
|
+
className: "productCardModalWrap",
|
|
141
|
+
onClick: onClose
|
|
142
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: "content",
|
|
144
|
+
onClick: function onClick(e) {
|
|
145
|
+
return e.stopPropagation();
|
|
146
|
+
}
|
|
147
|
+
}, /*#__PURE__*/_react["default"].createElement(_framerMotion.AnimatePresence, null, data.map(function (item, index) {
|
|
148
|
+
return /*#__PURE__*/_react["default"].createElement(_framerMotion.motion.div, {
|
|
149
|
+
key: item.offerId,
|
|
150
|
+
animate: {
|
|
151
|
+
opacity: isActive(index) ? 1 : isShow(index) ? 0.7 : 0,
|
|
152
|
+
scale: isActive(index) ? 1 : 0.95,
|
|
153
|
+
z: isActive(index) ? 0 : -100,
|
|
154
|
+
rotate: isActive(index) ? 0 : randomRotateY(index),
|
|
155
|
+
zIndex: isActive(index) ? 999 : data.length + 2 - index,
|
|
156
|
+
y: isActive(index) ? [0, -80, 0] : 0
|
|
157
|
+
},
|
|
158
|
+
className: "card",
|
|
159
|
+
exit: {
|
|
160
|
+
opacity: 0,
|
|
161
|
+
scale: 0.9,
|
|
162
|
+
z: 100,
|
|
163
|
+
rotate: randomRotateY(index)
|
|
164
|
+
},
|
|
165
|
+
initial: {
|
|
166
|
+
opacity: 0,
|
|
167
|
+
scale: 0.9,
|
|
168
|
+
z: -100,
|
|
169
|
+
rotate: randomRotateY(index)
|
|
170
|
+
},
|
|
171
|
+
transition: {
|
|
172
|
+
duration: 0.4,
|
|
173
|
+
ease: 'easeInOut'
|
|
174
|
+
}
|
|
175
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
176
|
+
alt: "",
|
|
177
|
+
className: "bgImg",
|
|
178
|
+
draggable: false,
|
|
179
|
+
onLoad: function onLoad() {
|
|
180
|
+
return setLoading(false);
|
|
181
|
+
},
|
|
182
|
+
src: item.cardImgUrl
|
|
183
|
+
}), !loading && /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
|
+
className: "absoluteWrap"
|
|
185
|
+
}, /*#__PURE__*/_react["default"].createElement(_framerMotion.motion.div, {
|
|
186
|
+
key: active,
|
|
187
|
+
animate: {
|
|
188
|
+
y: 0,
|
|
189
|
+
opacity: 1
|
|
190
|
+
},
|
|
191
|
+
className: "text",
|
|
192
|
+
exit: {
|
|
193
|
+
y: -20,
|
|
194
|
+
opacity: 0
|
|
195
|
+
},
|
|
196
|
+
initial: {
|
|
197
|
+
y: 20,
|
|
198
|
+
opacity: 0
|
|
199
|
+
},
|
|
200
|
+
transition: {
|
|
201
|
+
duration: 0.2,
|
|
202
|
+
ease: 'easeInOut'
|
|
203
|
+
}
|
|
204
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
+
dangerouslySetInnerHTML: {
|
|
206
|
+
__html: (0, _commonUtil.xssDecode)(item.goodsIntroduce || '')
|
|
207
|
+
}
|
|
208
|
+
})), index === active && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
209
|
+
className: "closIcon",
|
|
210
|
+
color: "#929292",
|
|
211
|
+
onClick: onClose,
|
|
212
|
+
size: 22,
|
|
213
|
+
type: "icon-close"
|
|
214
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
215
|
+
className: "btnApply",
|
|
216
|
+
onClick: function onClick() {
|
|
217
|
+
return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + item.productId);
|
|
218
|
+
}
|
|
219
|
+
}, "Apply Now", /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
220
|
+
color: "#FCD116",
|
|
221
|
+
size: 20,
|
|
222
|
+
type: "icon-arrow-right"
|
|
223
|
+
})), index === active && /*#__PURE__*/_react["default"].createElement("img", {
|
|
224
|
+
alt: "",
|
|
225
|
+
className: "dotIcon",
|
|
226
|
+
src: _dotIcon["default"]
|
|
227
|
+
}), index === active && /*#__PURE__*/_react["default"].createElement("div", {
|
|
228
|
+
className: "cardLeft",
|
|
229
|
+
onClick: function onClick(e) {
|
|
230
|
+
return handlePrev(e);
|
|
231
|
+
}
|
|
232
|
+
}), index === active && /*#__PURE__*/_react["default"].createElement("div", {
|
|
233
|
+
className: "cardRight",
|
|
234
|
+
onClick: function onClick(e) {
|
|
235
|
+
return handleNext(e);
|
|
236
|
+
}
|
|
237
|
+
})));
|
|
238
|
+
}))), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
239
|
+
className: "iconLeft",
|
|
240
|
+
color: "#929292",
|
|
241
|
+
onClick: function onClick(e) {
|
|
242
|
+
return handlePrev(e);
|
|
243
|
+
},
|
|
244
|
+
size: 36,
|
|
245
|
+
type: "icon-circle-down"
|
|
246
|
+
}), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
247
|
+
className: "iconRight",
|
|
248
|
+
color: "#929292",
|
|
249
|
+
onClick: function onClick(e) {
|
|
250
|
+
return handleNext(e);
|
|
251
|
+
},
|
|
252
|
+
size: 36,
|
|
253
|
+
type: "icon-circle-down"
|
|
254
|
+
}));
|
|
255
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.productCardModalWrap {
|
|
2
|
+
background: rgba(0, 0, 0, 0.9);
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1000;
|
|
5
|
+
top: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
width: 100vw;
|
|
10
|
+
height: 100vh;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
position: relative;
|
|
17
|
+
width: 50%;
|
|
18
|
+
|
|
19
|
+
.card {
|
|
20
|
+
transform-origin: bottom;
|
|
21
|
+
inset: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: fit-content;
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
margin: auto;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
|
|
30
|
+
.cardLeft {
|
|
31
|
+
width: 50%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
z-index: 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cardRight {
|
|
40
|
+
width: 50%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
right: 0;
|
|
45
|
+
z-index: 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.bgImg {
|
|
49
|
+
display: block;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: auto;
|
|
52
|
+
border-radius: 1.5rem;
|
|
53
|
+
-o-object-position: center;
|
|
54
|
+
object-position: center;
|
|
55
|
+
-o-object-fit: cover;
|
|
56
|
+
object-fit: cover;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.closIcon {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 5%;
|
|
62
|
+
right: 5%;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
z-index: 3;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dotIcon {
|
|
68
|
+
width: 28px;
|
|
69
|
+
position: absolute;
|
|
70
|
+
bottom: 25px;
|
|
71
|
+
left: 0;
|
|
72
|
+
right: 0;
|
|
73
|
+
margin: auto;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.text {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 20%;
|
|
79
|
+
right: 10%;
|
|
80
|
+
width: 35%;
|
|
81
|
+
height: 42%;
|
|
82
|
+
overflow-y: auto;
|
|
83
|
+
|
|
84
|
+
p {
|
|
85
|
+
min-height: 1em;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.btnApply {
|
|
90
|
+
color: #fff;
|
|
91
|
+
background-color: #CE1126;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
font-size: .3rem;
|
|
94
|
+
width: fit-content;
|
|
95
|
+
padding: 10px 24px;
|
|
96
|
+
border-radius: 100px;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
gap: 8px;
|
|
101
|
+
position: absolute;
|
|
102
|
+
bottom: 25%;
|
|
103
|
+
left: 55%;
|
|
104
|
+
z-index: 3;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.iconLeft {
|
|
111
|
+
transform: rotate(90deg);
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
position: absolute;
|
|
114
|
+
left: 20%;
|
|
115
|
+
top: 0;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
margin: auto;
|
|
118
|
+
align-self: center;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.iconRight {
|
|
122
|
+
transform: rotate(-90deg);
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
position: absolute;
|
|
125
|
+
right: 20%;
|
|
126
|
+
top: 0;
|
|
127
|
+
bottom: 0;
|
|
128
|
+
margin: auto;
|
|
129
|
+
align-self: center;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = Toast;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
|
|
18
|
+
function Toast(_a) {
|
|
19
|
+
var message = _a.message,
|
|
20
|
+
onClose = _a.onClose,
|
|
21
|
+
duration = _a.duration;
|
|
22
|
+
(0, _react.useEffect)(function () {
|
|
23
|
+
setTimeout(function () {
|
|
24
|
+
onClose();
|
|
25
|
+
}, duration);
|
|
26
|
+
}, []);
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
|
+
className: "toastWrap"
|
|
29
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, message));
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.toastWrap {
|
|
2
|
+
position: fixed;
|
|
3
|
+
display: flex;
|
|
4
|
+
top: 40%;
|
|
5
|
+
left: 20px;
|
|
6
|
+
right: 20px;
|
|
7
|
+
z-index: 99999;
|
|
8
|
+
transform: translateZ(1000px);
|
|
9
|
+
background-color: #e5f6ea;
|
|
10
|
+
min-height: 32px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
margin-bottom: 15px;
|
|
13
|
+
background: rgba(0, 0, 0, 0.8);
|
|
14
|
+
border-radius: 16px;
|
|
15
|
+
animation: fadeIn .2s linear;
|
|
16
|
+
|
|
17
|
+
span {
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
color: #fff;
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
text-align: center;
|
|
23
|
+
color: #FFFFFF;
|
|
24
|
+
line-height: 24px;
|
|
25
|
+
padding: 15px;
|
|
26
|
+
letter-spacing: .5px;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -87,7 +87,7 @@ function (_super) {
|
|
|
87
87
|
modalConfig = _c.modalConfig; // 弹框选择url不可编辑,需要先清除
|
|
88
88
|
|
|
89
89
|
var editable = !value || !value.type;
|
|
90
|
-
var inputName = (value === null || value === void 0 ? void 0 : value.name) || '';
|
|
90
|
+
var inputName = (value === null || value === void 0 ? void 0 : value.name) || (value === null || value === void 0 ? void 0 : value.value) || '';
|
|
91
91
|
|
|
92
92
|
if ((value === null || value === void 0 ? void 0 : value.type) === _constants.urlTypeMap.ANCHOR) {
|
|
93
93
|
var selectedAnchorIndex = _mobx.store.MPageData.findIndex(function (m) {
|
|
@@ -375,7 +375,7 @@ var createAliVideo = function createAliVideo(domId, opts) {
|
|
|
375
375
|
rePlay: false,
|
|
376
376
|
playsinline: true,
|
|
377
377
|
preload: true,
|
|
378
|
-
controlBarVisibility: 'hover',
|
|
378
|
+
controlBarVisibility: opts.controlBarHide ? 'never' : 'hover',
|
|
379
379
|
useH5Prism: true,
|
|
380
380
|
skinLayout: skinLayout
|
|
381
381
|
}, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", components), _window$Aliplayer), function (player) {
|
|
@@ -784,9 +784,11 @@ function (_super) {
|
|
|
784
784
|
var _a = this.props,
|
|
785
785
|
videoId = _a.videoId,
|
|
786
786
|
opts = _a.opts,
|
|
787
|
-
play = _a.play
|
|
787
|
+
play = _a.play,
|
|
788
|
+
onClick = _a.onClick;
|
|
788
789
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
789
|
-
className: "video-container"
|
|
790
|
+
className: "video-container",
|
|
791
|
+
onClick: onClick
|
|
790
792
|
}, opts.source ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
791
793
|
className: "video-wrap",
|
|
792
794
|
id: 'video' + videoId
|
|
Binary file
|
|
Binary file
|