@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,184 @@
|
|
|
1
|
+
.search-dito-header {
|
|
2
|
+
display: block;
|
|
3
|
+
max-width: 1200px;
|
|
4
|
+
height: 64px;
|
|
5
|
+
padding: 16px 40px;
|
|
6
|
+
border-radius: 32px;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 10%);
|
|
12
|
+
position: absolute;
|
|
13
|
+
left: 120px;
|
|
14
|
+
right: 120px;
|
|
15
|
+
top: 16px;
|
|
16
|
+
margin: auto;
|
|
17
|
+
z-index: 2;
|
|
18
|
+
|
|
19
|
+
.logo {
|
|
20
|
+
width: auto;
|
|
21
|
+
height: 30px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.navigation {
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
ul {
|
|
28
|
+
padding: 0;
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nav-list {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
gap: 10px;
|
|
36
|
+
|
|
37
|
+
li {
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
color: #2C2C2C;
|
|
41
|
+
padding: 8px 12px;
|
|
42
|
+
list-style: none;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 4px;
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
color: #CE1126;
|
|
50
|
+
|
|
51
|
+
.icon_down {
|
|
52
|
+
color: #CE1126 !important;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nav-card {
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
padding: 10px;
|
|
61
|
+
border-radius: 16px;
|
|
62
|
+
display: flex;
|
|
63
|
+
gap: 8px;
|
|
64
|
+
width: max-content;
|
|
65
|
+
min-height: 200px;
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 38px;
|
|
68
|
+
transition: left 0.2s ease;
|
|
69
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 10%);
|
|
70
|
+
|
|
71
|
+
ul {
|
|
72
|
+
padding: 10px 0;
|
|
73
|
+
|
|
74
|
+
li {
|
|
75
|
+
list-style: none;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
font-size: 14px;
|
|
78
|
+
color: #2c2c2c;
|
|
79
|
+
padding: 0 16px;
|
|
80
|
+
height: 36px;
|
|
81
|
+
line-height: 36px;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: space-between;
|
|
86
|
+
|
|
87
|
+
.icon_right {
|
|
88
|
+
margin-left: 4px;
|
|
89
|
+
visibility: hidden;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
color: #CE1126;
|
|
94
|
+
|
|
95
|
+
.icon_right {
|
|
96
|
+
visibility: visible;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
img {
|
|
103
|
+
width: 200px;
|
|
104
|
+
height: 200px;
|
|
105
|
+
border-radius: 8px;
|
|
106
|
+
margin-left: 20px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.right {
|
|
112
|
+
display: flex;
|
|
113
|
+
gap: 20px;
|
|
114
|
+
align-items: center;
|
|
115
|
+
|
|
116
|
+
.icon-wrap {
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
position: relative;
|
|
119
|
+
|
|
120
|
+
.cart-num {
|
|
121
|
+
position: absolute;
|
|
122
|
+
top: -8px;
|
|
123
|
+
right: -8px;
|
|
124
|
+
width: 20px;
|
|
125
|
+
height: 20px;
|
|
126
|
+
background-color: #ce1126;
|
|
127
|
+
color: #fff;
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
font-size: 11px;
|
|
130
|
+
line-height: 20px;
|
|
131
|
+
text-align: center;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.personal-info {
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: 8px;
|
|
139
|
+
position: relative;
|
|
140
|
+
font-weight: 500;
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
color: #2c2c2c;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
|
|
145
|
+
&.showLogOut {
|
|
146
|
+
padding-bottom: 30px;
|
|
147
|
+
margin-bottom: -30px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.avatar-img {
|
|
151
|
+
width: 32px;
|
|
152
|
+
height: 32px;
|
|
153
|
+
border-radius: 50%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.log-out-wrap {
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 50px;
|
|
159
|
+
left: -2px;
|
|
160
|
+
padding: 4px;
|
|
161
|
+
border-radius: 8px;
|
|
162
|
+
background-color: #fff;
|
|
163
|
+
|
|
164
|
+
.item {
|
|
165
|
+
padding: 8px 16px;
|
|
166
|
+
width: max-content;
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
gap: 10px;
|
|
171
|
+
color: #2c2c2c;
|
|
172
|
+
font-weight: 500;
|
|
173
|
+
font-size: 14px;
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.icon-log-out {
|
|
178
|
+
transform: rotate(90deg);
|
|
179
|
+
transition: transform 0.3s;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _common = require("../../../../../../../common");
|
|
11
|
+
|
|
12
|
+
var _commonUtil = require("../../../../../../../utils/commonUtil");
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
var _PlaySvg = _interopRequireDefault(require("../../../../../../../meta-comp/config-panels/PlayIconConfig/PlaySvg"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
+
__proto__: []
|
|
26
|
+
} instanceof Array && function (d, b) {
|
|
27
|
+
d.__proto__ = b;
|
|
28
|
+
} || function (d, b) {
|
|
29
|
+
for (var p in b) {
|
|
30
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return _extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return function (d, b) {
|
|
38
|
+
_extendStatics(d, b);
|
|
39
|
+
|
|
40
|
+
function __() {
|
|
41
|
+
this.constructor = d;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
49
|
+
__assign = Object.assign || function (t) {
|
|
50
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
51
|
+
s = arguments[i];
|
|
52
|
+
|
|
53
|
+
for (var p in s) {
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return t;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return __assign.apply(this, arguments);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var VideoItem =
|
|
65
|
+
/** @class */
|
|
66
|
+
function (_super) {
|
|
67
|
+
__extends(VideoItem, _super);
|
|
68
|
+
|
|
69
|
+
function VideoItem() {
|
|
70
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
71
|
+
|
|
72
|
+
_this.state = {};
|
|
73
|
+
/** 视频ref映射 */
|
|
74
|
+
|
|
75
|
+
_this.videoRefMap = {};
|
|
76
|
+
|
|
77
|
+
_this.playOrPause = function (group) {
|
|
78
|
+
(0, _commonUtil.ensure)(function () {
|
|
79
|
+
if (_this.videoRefMap[group.id].playing) {
|
|
80
|
+
_this.videoRefMap[group.id].playing = false;
|
|
81
|
+
|
|
82
|
+
_this.videoRefMap[group.id].el.player.pause();
|
|
83
|
+
} else {
|
|
84
|
+
if (group.video.playPosition == 'Popup') {
|
|
85
|
+
_this.videoRefMap[group.id].el.fullPlay('pc');
|
|
86
|
+
} else {
|
|
87
|
+
_this.videoRefMap[group.id].playing = true;
|
|
88
|
+
|
|
89
|
+
_this.videoRefMap[group.id].el.player.play();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
_this.setState({});
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
VideoItem.prototype.render = function () {
|
|
101
|
+
var _this = this;
|
|
102
|
+
|
|
103
|
+
var _a, _b, _c, _d, _e;
|
|
104
|
+
|
|
105
|
+
var data = this.props.data;
|
|
106
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
+
className: "video-item-wrap",
|
|
108
|
+
style: {
|
|
109
|
+
cursor: data.clickUrl ? 'pointer' : 'auto'
|
|
110
|
+
}
|
|
111
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.VideoPC, {
|
|
112
|
+
ref: function ref(el) {
|
|
113
|
+
if (!_this.videoRefMap[data.id]) {
|
|
114
|
+
_this.videoRefMap[data.id] = {
|
|
115
|
+
el: el,
|
|
116
|
+
playing: data.video.autoplay
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
_this.setState({});
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
onClick: function onClick() {
|
|
123
|
+
(0, _coreUtil.clickUrl)(data.clickUrl);
|
|
124
|
+
},
|
|
125
|
+
onEnd: function onEnd() {
|
|
126
|
+
_this.videoRefMap[data.id].playing = false;
|
|
127
|
+
|
|
128
|
+
_this.setState({});
|
|
129
|
+
},
|
|
130
|
+
opts: __assign(__assign({}, data.video), {
|
|
131
|
+
cover: (0, _coreUtil.getVideoCover)(data),
|
|
132
|
+
source: data.video.sourceUrl,
|
|
133
|
+
controlBarHide: true
|
|
134
|
+
}),
|
|
135
|
+
play: (_a = this.videoRefMap[data.id]) === null || _a === void 0 ? void 0 : _a.playing,
|
|
136
|
+
videoId: data.id
|
|
137
|
+
}), !((_b = this.videoRefMap[data.id]) === null || _b === void 0 ? void 0 : _b.playing) && data.video.playButton == 'Middle' && ((_c = data === null || data === void 0 ? void 0 : data.playIcon) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
className: "play-btn center",
|
|
139
|
+
onClick: function onClick() {
|
|
140
|
+
_this.playOrPause(data);
|
|
141
|
+
}
|
|
142
|
+
}, /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
|
|
143
|
+
imgName: (_d = data === null || data === void 0 ? void 0 : data.playIcon) === null || _d === void 0 ? void 0 : _d.iconType,
|
|
144
|
+
imgWidth: (_e = data === null || data === void 0 ? void 0 : data.playIcon) === null || _e === void 0 ? void 0 : _e.pcSize
|
|
145
|
+
})));
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
VideoItem.defaultProps = {};
|
|
149
|
+
return VideoItem;
|
|
150
|
+
}(_react["default"].Component);
|
|
151
|
+
|
|
152
|
+
var _default = VideoItem;
|
|
153
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.video-item-wrap {
|
|
2
|
+
// height: 700px;
|
|
3
|
+
position: relative;
|
|
4
|
+
margin-bottom: 10px;
|
|
5
|
+
|
|
6
|
+
&:last-child {
|
|
7
|
+
margin-bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.play-btn {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 50%;
|
|
13
|
+
left: 50%;
|
|
14
|
+
transform: translate(-50%, -50%);
|
|
15
|
+
// width: 100px;
|
|
16
|
+
// height: 100px;
|
|
17
|
+
z-index: 1;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
img {
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd4");
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _VideoItem = _interopRequireDefault(require("./components/VideoItem"));
|
|
15
|
+
|
|
16
|
+
var _Header = _interopRequireDefault(require("./components/Header"));
|
|
17
|
+
|
|
18
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
19
|
+
|
|
20
|
+
var _components = require("../../../../../meta-comp/components");
|
|
21
|
+
|
|
22
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
23
|
+
|
|
24
|
+
var _mobx = require("../../../../../mobx");
|
|
25
|
+
|
|
26
|
+
require("slick-carousel/slick/slick.css");
|
|
27
|
+
|
|
28
|
+
require("slick-carousel/slick/slick-theme.css");
|
|
29
|
+
|
|
30
|
+
require("./index.less");
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
+
|
|
34
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
35
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
36
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
37
|
+
__proto__: []
|
|
38
|
+
} instanceof Array && function (d, b) {
|
|
39
|
+
d.__proto__ = b;
|
|
40
|
+
} || function (d, b) {
|
|
41
|
+
for (var p in b) {
|
|
42
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
return _extendStatics(d, b);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
return function (d, b) {
|
|
50
|
+
_extendStatics(d, b);
|
|
51
|
+
|
|
52
|
+
function __() {
|
|
53
|
+
this.constructor = d;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
57
|
+
};
|
|
58
|
+
}();
|
|
59
|
+
|
|
60
|
+
var SearchDitoPc =
|
|
61
|
+
/** @class */
|
|
62
|
+
function (_super) {
|
|
63
|
+
__extends(SearchDitoPc, _super);
|
|
64
|
+
|
|
65
|
+
function SearchDitoPc() {
|
|
66
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
+
|
|
68
|
+
_this.state = {
|
|
69
|
+
carouseIndex: 0
|
|
70
|
+
};
|
|
71
|
+
_this.carouselRef = /*#__PURE__*/_react["default"].createRef();
|
|
72
|
+
_this.destroy = null;
|
|
73
|
+
|
|
74
|
+
_this.bannerGoto = function (groupSource) {
|
|
75
|
+
var nextIndex = groupSource.findIndex(function (item) {
|
|
76
|
+
return item.id === _mobx.store.clickedGroup;
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
if (nextIndex != -1 && nextIndex != _this.state.carouseIndex) {
|
|
80
|
+
_this.carouselRef.current.goTo(nextIndex);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
_this.afterChange = function (n) {
|
|
85
|
+
_this.setState({
|
|
86
|
+
carouseIndex: n
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
return _this;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
SearchDitoPc.prototype.componentDidMount = function () {
|
|
94
|
+
var _this = this;
|
|
95
|
+
|
|
96
|
+
this.destroy = (0, _mobx.autorun)(function () {
|
|
97
|
+
_this.bannerGoto(_this.props.data.groupSource);
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
SearchDitoPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
102
|
+
this.bannerGoto(nextProps.data.groupSource);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
SearchDitoPc.prototype.componentWillUnmount = function () {
|
|
106
|
+
this.destroy();
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
SearchDitoPc.prototype.render = function () {
|
|
110
|
+
var _this = this;
|
|
111
|
+
|
|
112
|
+
var data = this.props.data;
|
|
113
|
+
var carouseIndex = this.state.carouseIndex;
|
|
114
|
+
var autoplay = data.setting.autoplay.open;
|
|
115
|
+
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
116
|
+
|
|
117
|
+
if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
|
|
118
|
+
autoplay = false;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
className: "m-search-dito-pc"
|
|
123
|
+
}, /*#__PURE__*/_react["default"].createElement(_Header["default"], {
|
|
124
|
+
data: data
|
|
125
|
+
}), data.groupSource.length > 0 && /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
126
|
+
key: JSON.stringify(data.groupSource),
|
|
127
|
+
ref: this.carouselRef,
|
|
128
|
+
afterChange: function afterChange(n) {
|
|
129
|
+
return _this.afterChange(n);
|
|
130
|
+
},
|
|
131
|
+
autoplay: autoplay,
|
|
132
|
+
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
133
|
+
className: "carousel-img",
|
|
134
|
+
dots: false,
|
|
135
|
+
infinite: false
|
|
136
|
+
}, data.groupSource.map(function (m, i) {
|
|
137
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
key: m.id
|
|
139
|
+
}, m.image && m.image.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
140
|
+
className: "bgImg",
|
|
141
|
+
data: m.image,
|
|
142
|
+
isBackground: true
|
|
143
|
+
}), m.video && i === carouseIndex && /*#__PURE__*/_react["default"].createElement(_VideoItem["default"], {
|
|
144
|
+
data: m
|
|
145
|
+
}));
|
|
146
|
+
})), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
|
+
className: "swiper-ban"
|
|
148
|
+
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
149
|
+
var _a;
|
|
150
|
+
|
|
151
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
|
+
key: (item === null || item === void 0 ? void 0 : item.id) || i,
|
|
153
|
+
className: (0, _classnames["default"])('ban', (_a = {
|
|
154
|
+
active: i == carouseIndex
|
|
155
|
+
}, _a[data.setting.dots.layout] = true, _a)),
|
|
156
|
+
onClick: function onClick() {
|
|
157
|
+
var _a;
|
|
158
|
+
|
|
159
|
+
return (_a = _this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.goTo(i);
|
|
160
|
+
},
|
|
161
|
+
style: (0, _commonUtil.pxToRem)({
|
|
162
|
+
backgroundColor: i == carouseIndex ? data.setting.dots.hoverColor.pc : data.setting.dots.color.pc,
|
|
163
|
+
fontSize: i == carouseIndex ? data.setting.dots.hoverSize.pc : data.setting.dots.size.pc
|
|
164
|
+
})
|
|
165
|
+
});
|
|
166
|
+
})));
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
SearchDitoPc.defaultProps = {
|
|
170
|
+
data: {}
|
|
171
|
+
};
|
|
172
|
+
return SearchDitoPc;
|
|
173
|
+
}(_react["default"].Component);
|
|
174
|
+
|
|
175
|
+
var _default = SearchDitoPc;
|
|
176
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.m-search-dito-pc {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-height: 96px;
|
|
5
|
+
background-color: #fff;
|
|
6
|
+
|
|
7
|
+
.carousel-img {
|
|
8
|
+
min-height: 400px;
|
|
9
|
+
|
|
10
|
+
.bgImg {
|
|
11
|
+
// height: 700px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.swiper-ban {
|
|
16
|
+
position: absolute;
|
|
17
|
+
z-index: 2;
|
|
18
|
+
width: 100%;
|
|
19
|
+
bottom: 16px;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
24
|
+
.ban {
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
width: 1em;
|
|
27
|
+
height: 0.25em;
|
|
28
|
+
background: #FFF;
|
|
29
|
+
cursor: inherit;
|
|
30
|
+
margin-right: 8px;
|
|
31
|
+
transition: all .5s;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
|
|
34
|
+
&.active {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.layout1 {
|
|
39
|
+
width: 1em;
|
|
40
|
+
height: 1em;
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.layout2 {
|
|
45
|
+
width: 1em;
|
|
46
|
+
height: 0.25em;
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.layout3 {
|
|
51
|
+
width: 1.5em;
|
|
52
|
+
height: 0.25em;
|
|
53
|
+
border-radius: 10px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|