@fonixtree/magic-design 2.0.200 → 2.0.203
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/Montserrat-Bold.ttf +0 -0
- package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +38 -6
- 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/base64/index.js +8 -2
- 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/ColorPickerInput/index.less +2 -0
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/ErrorBoundary/index.js +90 -0
- package/es/common/FontStyles/index.less +1 -1
- 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 +32 -0
- package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/es/composite-comp/common/components/ImageLabel/index.less +23 -7
- package/es/composite-comp/common/components/ProductItem/index.js +41 -24
- package/es/composite-comp/common/components/ProductItem/index.less +17 -15
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +16 -12
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/es/composite-comp/dito/components/Bargain/defaultJSON.js +24 -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 +49 -11
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +9 -1
- 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/defaultJSON.js +24 -0
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +8 -5
- 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 +75 -2
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +159 -21
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +108 -9
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +55 -1
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/card.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +177 -20
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +24 -1
- package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +234 -0
- package/es/composite-comp/dito/components/SearchBanner/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/components/SearchBanner/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/dito/components/SearchBanner/index.js +108 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +293 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +108 -0
- 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.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/SignBoard/mobile/index.js +1 -1
- 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/BargainConfig/FlashDealConfigContent/index.js +7 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +7 -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/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -0
- 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/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
- 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 +23 -5
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +17 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -3
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +197 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.js +226 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/index.js +65 -0
- 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/SearchBannerSecondConfig/index.js +98 -0
- 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/composite-comp/nuri/components/AffiliateRecommend/mobile/index.js +1 -1
- package/es/composite-comp/nuri/components/AffiliateRecommend/mobile/index.less +15 -15
- package/es/composite-comp/public/components/Stores/mobile/index.less +3 -0
- package/es/constants/component-types.js +33 -9
- package/es/constants/index.js +44 -20
- package/es/constants/layout.js +46 -2
- package/es/core/Designer/ConfigPanel/index.js +18 -1
- package/es/core/Designer/index.js +2 -2
- package/es/core/Renderer/index.js +37 -2
- package/es/decorator/compositeDecorator.js +14 -4
- package/es/decorator/metaDecorator.js +1 -2
- package/es/locale/ar/ar.json +18 -1
- package/es/locale/en/en.json +18 -1
- package/es/locale/es/es.json +18 -1
- package/es/locale/mn/mn.json +4 -0
- 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/Montserrat-Bold.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +38 -6
- 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/base64/index.js +8 -2
- 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/ColorPickerInput/index.less +2 -0
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/ErrorBoundary/index.js +90 -0
- package/lib/common/FontStyles/index.less +1 -1
- 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 +32 -0
- package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/lib/composite-comp/common/components/ImageLabel/index.less +23 -7
- package/lib/composite-comp/common/components/ProductItem/index.js +41 -24
- package/lib/composite-comp/common/components/ProductItem/index.less +17 -15
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +16 -12
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +24 -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 +49 -11
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +9 -1
- 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/defaultJSON.js +24 -0
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +8 -5
- 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 +75 -2
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +159 -21
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +108 -9
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +55 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/card.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +177 -20
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +24 -1
- package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +234 -0
- package/lib/composite-comp/dito/components/SearchBanner/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/components/SearchBanner/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/dito/components/SearchBanner/index.js +108 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +293 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +108 -0
- 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.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/SignBoard/mobile/index.js +1 -1
- 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/BargainConfig/FlashDealConfigContent/index.js +7 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +7 -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/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -0
- 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/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
- 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 +23 -5
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +17 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -3
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +197 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.js +226 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/index.js +65 -0
- 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/SearchBannerSecondConfig/index.js +98 -0
- 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/composite-comp/nuri/components/AffiliateRecommend/mobile/index.js +1 -1
- package/lib/composite-comp/nuri/components/AffiliateRecommend/mobile/index.less +15 -15
- package/lib/composite-comp/public/components/Stores/mobile/index.less +3 -0
- package/lib/constants/component-types.js +33 -9
- package/lib/constants/index.js +44 -20
- package/lib/constants/layout.js +46 -2
- package/lib/core/Designer/ConfigPanel/index.js +18 -1
- package/lib/core/Designer/index.js +2 -2
- package/lib/core/Renderer/index.js +37 -2
- package/lib/decorator/compositeDecorator.js +14 -4
- package/lib/decorator/metaDecorator.js +1 -2
- package/lib/locale/ar/ar.json +18 -1
- package/lib/locale/en/en.json +18 -1
- package/lib/locale/es/es.json +18 -1
- package/lib/locale/mn/mn.json +4 -0
- 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
|
@@ -13,6 +13,8 @@ require("./index.less");
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
+
var _card = _interopRequireDefault(require("./imgs/card.png"));
|
|
17
|
+
|
|
16
18
|
var _mobx = require("../../../../../mobx");
|
|
17
19
|
|
|
18
20
|
var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
|
|
@@ -226,6 +228,26 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
226
228
|
return r;
|
|
227
229
|
};
|
|
228
230
|
|
|
231
|
+
var defaultData = [{
|
|
232
|
+
imgUrlContent: {
|
|
233
|
+
url: _card["default"]
|
|
234
|
+
},
|
|
235
|
+
offerName: 'Product Name Long Long Long Long Long',
|
|
236
|
+
salesPrice: 10000,
|
|
237
|
+
specialPrice: null,
|
|
238
|
+
marketPrice: 20000,
|
|
239
|
+
salePercent: 500,
|
|
240
|
+
discountPercent: 90
|
|
241
|
+
}, {
|
|
242
|
+
imgUrlContent: {
|
|
243
|
+
url: _card["default"]
|
|
244
|
+
},
|
|
245
|
+
offerName: 'Product Name',
|
|
246
|
+
salesPrice: 10000,
|
|
247
|
+
specialPrice: null,
|
|
248
|
+
marketPrice: 20000,
|
|
249
|
+
salePercent: 500
|
|
250
|
+
}];
|
|
229
251
|
var LAYOUT_IMAGE_SIZE = {
|
|
230
252
|
layout1: {
|
|
231
253
|
w: '100%',
|
|
@@ -248,6 +270,73 @@ var LAYOUT_IMAGE_SIZE = {
|
|
|
248
270
|
h: 110
|
|
249
271
|
}
|
|
250
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* 将第二个数组随机插入到第一个数组中
|
|
275
|
+
* @param {Array} array1 - 第一个数组
|
|
276
|
+
* @param {Array} array2 - 第二个数组
|
|
277
|
+
* @returns {Array} - 返回合并后的新数组
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
var insertArrayRandomly = function insertArrayRandomly(arr1, arr2) {
|
|
281
|
+
if (arr1.length < 1) {
|
|
282
|
+
return [];
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (arr1.length < 2) {
|
|
286
|
+
return __spreadArrays(arr1, arr2);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (arr1.length === 2) {
|
|
290
|
+
return __spreadArrays([arr1[0]], arr2, [arr1[1]]);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (arr1.length === 3) {
|
|
294
|
+
return __spreadArrays([arr1[0]], arr2, arr1.splice(1));
|
|
295
|
+
} // 创建一个复制的第一个数组,以免修改原数组
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
var result = __spreadArrays(arr1); // 记录已插入元素的位置
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
var insertedIndices = [];
|
|
302
|
+
|
|
303
|
+
var _loop_1 = function _loop_1(i) {
|
|
304
|
+
var randomIndex; // 确保生成的随机索引不在首尾,并且与已插入的索引相隔至少两个位置
|
|
305
|
+
|
|
306
|
+
do {
|
|
307
|
+
randomIndex = Math.floor(Math.random() * (result.length - 2)) + 1; // 1 到 result.length - 2
|
|
308
|
+
// eslint-disable-next-line no-loop-func
|
|
309
|
+
} while (insertedIndices.some(function (index) {
|
|
310
|
+
return Math.abs(index - randomIndex) < 2;
|
|
311
|
+
})); // 在随机位置插入第二个数组的元素
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
result.splice(randomIndex, 0, arr2[i]); // 记录已插入的位置
|
|
315
|
+
|
|
316
|
+
insertedIndices.push(randomIndex);
|
|
317
|
+
}; // 随机插入第二个数组的元素
|
|
318
|
+
// eslint-disable-next-line no-plusplus
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
for (var i = 0; i < arr2.length; i++) {
|
|
322
|
+
_loop_1(i);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
return result;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
var getRandomItemsAndRemove = function getRandomItemsAndRemove(arr, list) {
|
|
329
|
+
var _count = Math.ceil(list.length / 5);
|
|
330
|
+
|
|
331
|
+
var result = []; // eslint-disable-next-line no-plusplus
|
|
332
|
+
|
|
333
|
+
for (var i = 0; i < _count && arr.length > 0; i++) {
|
|
334
|
+
var randomIndex = Math.floor(Math.random() * arr.length);
|
|
335
|
+
result.push(arr.splice(randomIndex, 1)[0]);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
return result;
|
|
339
|
+
};
|
|
251
340
|
|
|
252
341
|
var RecommendMobile =
|
|
253
342
|
/** @class */
|
|
@@ -257,6 +346,7 @@ function (_super) {
|
|
|
257
346
|
function RecommendMobile() {
|
|
258
347
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
259
348
|
|
|
349
|
+
_this.ads = [];
|
|
260
350
|
_this.preData = {};
|
|
261
351
|
_this.preLayout = '';
|
|
262
352
|
_this.preContent = '';
|
|
@@ -306,16 +396,49 @@ function (_super) {
|
|
|
306
396
|
}, '#CE1126') : '#CE1126';
|
|
307
397
|
};
|
|
308
398
|
|
|
399
|
+
_this.getAdvertise = function () {
|
|
400
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
401
|
+
var ad;
|
|
402
|
+
return __generator(this, function (_a) {
|
|
403
|
+
switch (_a.label) {
|
|
404
|
+
case 0:
|
|
405
|
+
return [4
|
|
406
|
+
/*yield*/
|
|
407
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/ad/today/valid/MagicDesignRecommendation/list', {}, 'GET')];
|
|
408
|
+
|
|
409
|
+
case 1:
|
|
410
|
+
ad = _a.sent();
|
|
411
|
+
|
|
412
|
+
if (ad === null || ad === void 0 ? void 0 : ad.length) {
|
|
413
|
+
return [2
|
|
414
|
+
/*return*/
|
|
415
|
+
, ad[0].advertiseContents.map(function (it) {
|
|
416
|
+
return {
|
|
417
|
+
type: 'ad',
|
|
418
|
+
url: it === null || it === void 0 ? void 0 : it.url,
|
|
419
|
+
adObj: it
|
|
420
|
+
};
|
|
421
|
+
})];
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return [2
|
|
425
|
+
/*return*/
|
|
426
|
+
, []];
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
};
|
|
431
|
+
|
|
309
432
|
_this.getProductList = function (index) {
|
|
310
433
|
return __awaiter(_this, void 0, void 0, function () {
|
|
311
|
-
var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, res, e_1, _cache;
|
|
434
|
+
var panelProps, groupSource, recommendId, pageId, cache, _a, _b, sourceType, _c, prodIds, _d, prodType, _e, intelligentType, _f, intelligentValue, _g, maxProdNum, newData, params, res, res, e_1, _h, insertAds, _cache;
|
|
312
435
|
|
|
313
|
-
var
|
|
436
|
+
var _j, _k, _l;
|
|
314
437
|
|
|
315
438
|
var _this = this;
|
|
316
439
|
|
|
317
|
-
return __generator(this, function (
|
|
318
|
-
switch (
|
|
440
|
+
return __generator(this, function (_m) {
|
|
441
|
+
switch (_m.label) {
|
|
319
442
|
case 0:
|
|
320
443
|
panelProps = this.props.panelProps;
|
|
321
444
|
groupSource = this.state.groupSource;
|
|
@@ -327,7 +450,7 @@ function (_super) {
|
|
|
327
450
|
|
|
328
451
|
if (cache) {
|
|
329
452
|
if ("products" + index in cache) {
|
|
330
|
-
this.setState((
|
|
453
|
+
this.setState((_j = {}, _j["products" + index] = cache["products" + index], _j), function () {
|
|
331
454
|
_this.resetLayout();
|
|
332
455
|
});
|
|
333
456
|
/** 如果数据未过期 */
|
|
@@ -341,10 +464,10 @@ function (_super) {
|
|
|
341
464
|
|
|
342
465
|
_a = groupSource[index] || {}, _b = _a.sourceType, sourceType = _b === void 0 ? '' : _b, _c = _a.prodIds, prodIds = _c === void 0 ? '' : _c, _d = _a.prodType, prodType = _d === void 0 ? '' : _d, _e = _a.intelligentType, intelligentType = _e === void 0 ? '' : _e, _f = _a.intelligentValue, intelligentValue = _f === void 0 ? [] : _f, _g = _a.maxProdNum, maxProdNum = _g === void 0 ? 10 : _g;
|
|
343
466
|
newData = [];
|
|
344
|
-
|
|
467
|
+
_m.label = 1;
|
|
345
468
|
|
|
346
469
|
case 1:
|
|
347
|
-
|
|
470
|
+
_m.trys.push([1, 9,, 10]);
|
|
348
471
|
|
|
349
472
|
if (!(groupSource.length > 0)) return [3
|
|
350
473
|
/*break*/
|
|
@@ -370,7 +493,7 @@ function (_super) {
|
|
|
370
493
|
, (0, _commonUtil.commonFetch)('/designer/v1/h5/products', params, 'GET')];
|
|
371
494
|
|
|
372
495
|
case 2:
|
|
373
|
-
res =
|
|
496
|
+
res = _m.sent();
|
|
374
497
|
newData = __spreadArrays(res.list);
|
|
375
498
|
return [3
|
|
376
499
|
/*break*/
|
|
@@ -393,7 +516,7 @@ function (_super) {
|
|
|
393
516
|
}, 'POST')];
|
|
394
517
|
|
|
395
518
|
case 4:
|
|
396
|
-
res =
|
|
519
|
+
res = _m.sent();
|
|
397
520
|
newData = __spreadArrays(res.pageInfo.list);
|
|
398
521
|
return [3
|
|
399
522
|
/*break*/
|
|
@@ -401,7 +524,7 @@ function (_super) {
|
|
|
401
524
|
|
|
402
525
|
case 5:
|
|
403
526
|
newData = [];
|
|
404
|
-
|
|
527
|
+
_m.label = 6;
|
|
405
528
|
|
|
406
529
|
case 6:
|
|
407
530
|
return [3
|
|
@@ -410,7 +533,7 @@ function (_super) {
|
|
|
410
533
|
|
|
411
534
|
case 7:
|
|
412
535
|
newData = [];
|
|
413
|
-
|
|
536
|
+
_m.label = 8;
|
|
414
537
|
|
|
415
538
|
case 8:
|
|
416
539
|
return [3
|
|
@@ -418,19 +541,34 @@ function (_super) {
|
|
|
418
541
|
, 10];
|
|
419
542
|
|
|
420
543
|
case 9:
|
|
421
|
-
e_1 =
|
|
544
|
+
e_1 = _m.sent();
|
|
422
545
|
newData = [];
|
|
423
546
|
return [3
|
|
424
547
|
/*break*/
|
|
425
548
|
, 10];
|
|
426
549
|
|
|
427
550
|
case 10:
|
|
551
|
+
if (!window.magicDesign.showRecommendAds) return [3
|
|
552
|
+
/*break*/
|
|
553
|
+
, 12];
|
|
554
|
+
_h = this;
|
|
555
|
+
return [4
|
|
556
|
+
/*yield*/
|
|
557
|
+
, this.getAdvertise()];
|
|
558
|
+
|
|
559
|
+
case 11:
|
|
560
|
+
_h.ads = _m.sent();
|
|
561
|
+
insertAds = getRandomItemsAndRemove(this.ads, newData);
|
|
562
|
+
newData = insertArrayRandomly(newData, insertAds);
|
|
563
|
+
_m.label = 12;
|
|
564
|
+
|
|
565
|
+
case 12:
|
|
428
566
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
429
567
|
_cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
|
|
430
|
-
(0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (
|
|
568
|
+
(0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_k = {}, _k["products" + index] = newData, _k.endTime = Date.now() + 3 * 60 * 1000, _k)));
|
|
431
569
|
}
|
|
432
570
|
|
|
433
|
-
this.setState((
|
|
571
|
+
this.setState((_l = {}, _l["products" + index] = newData, _l), function () {
|
|
434
572
|
_this.resetLayout();
|
|
435
573
|
});
|
|
436
574
|
return [2
|
|
@@ -572,6 +710,9 @@ function (_super) {
|
|
|
572
710
|
hideTabs = _a.hideTabs,
|
|
573
711
|
contentWidth = _a.contentWidth;
|
|
574
712
|
var products = this.state["products" + tabIndex] || [];
|
|
713
|
+
|
|
714
|
+
var _products = products.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : products;
|
|
715
|
+
|
|
575
716
|
var isDivide = groupSource.length <= 3;
|
|
576
717
|
var layout = panelProps.customize.layout.h5Layout;
|
|
577
718
|
|
|
@@ -587,10 +728,26 @@ function (_super) {
|
|
|
587
728
|
}, 140);
|
|
588
729
|
if (layout === 'layout1' && contentWidth) imgHeight = (contentWidth - 12) / 2;
|
|
589
730
|
if (layout === 'layout3' && contentWidth) imgHeight = (contentWidth - 12 * 2) / 3;
|
|
731
|
+
var background = panelProps.background.tabBackground;
|
|
732
|
+
var tabStyle = {};
|
|
733
|
+
|
|
734
|
+
if (background) {
|
|
735
|
+
if (background.tabBgType === 'color') {
|
|
736
|
+
tabStyle.backgroundColor = background.color;
|
|
737
|
+
tabStyle.opacity = background.opacity ? background.opacity : 1;
|
|
738
|
+
} else {
|
|
739
|
+
tabStyle.backgroundImage = "url(" + background.image + ")";
|
|
740
|
+
tabStyle.backgroundPosition = 'center center';
|
|
741
|
+
tabStyle.backgroundSize = 'cover';
|
|
742
|
+
tabStyle.backgroundRepeat = 'no-repeat';
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
590
746
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
591
747
|
className: "m-recommend-mobile recommend_" + panelProps.id
|
|
592
748
|
}, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
|
|
593
|
-
className: "tab-select-wrap"
|
|
749
|
+
className: "tab-select-wrap",
|
|
750
|
+
style: tabStyle
|
|
594
751
|
}, groupSource.map(function (tab, index) {
|
|
595
752
|
var _image = index == tabIndex && tab.hover.open && tab.hover.image.open ? tab.hover.image : tab.image;
|
|
596
753
|
|
|
@@ -619,7 +776,7 @@ function (_super) {
|
|
|
619
776
|
tab.groupName.text = text;
|
|
620
777
|
}
|
|
621
778
|
}));
|
|
622
|
-
}), groupSource.length >
|
|
779
|
+
}), groupSource.length > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
623
780
|
className: "active-line",
|
|
624
781
|
style: {
|
|
625
782
|
width: tabWidth,
|
|
@@ -629,7 +786,7 @@ function (_super) {
|
|
|
629
786
|
})), ['layout1', 'layout2', 'layout3'].includes(layout) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
630
787
|
key: "macyContainer",
|
|
631
788
|
className: "macyContainer macyContainer_" + panelProps.id
|
|
632
|
-
},
|
|
789
|
+
}, _products.map(function (item) {
|
|
633
790
|
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
634
791
|
key: item.productId,
|
|
635
792
|
data: item // fixHeight={layout === 'layout3'}
|
|
@@ -653,7 +810,7 @@ function (_super) {
|
|
|
653
810
|
panelProps: panelProps.content,
|
|
654
811
|
showProgress: false
|
|
655
812
|
});
|
|
656
|
-
})), _seeAll.open &&
|
|
813
|
+
})), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
657
814
|
className: "btnSeeAll",
|
|
658
815
|
data: _seeAll
|
|
659
816
|
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -663,7 +820,7 @@ function (_super) {
|
|
|
663
820
|
})
|
|
664
821
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
665
822
|
className: "scrollProductList"
|
|
666
|
-
},
|
|
823
|
+
}, _products.map(function (item) {
|
|
667
824
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
668
825
|
className: "productCard"
|
|
669
826
|
}, /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
@@ -684,7 +841,7 @@ function (_super) {
|
|
|
684
841
|
panelProps: panelProps.content,
|
|
685
842
|
showProgress: false
|
|
686
843
|
}));
|
|
687
|
-
})), _seeAll.open &&
|
|
844
|
+
})), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
688
845
|
className: "btnSeeAll",
|
|
689
846
|
data: _seeAll
|
|
690
847
|
})));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.m-recommend-mobile {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
+
min-height: 4rem;
|
|
4
5
|
}
|
|
5
6
|
.m-recommend-mobile .cylon-tabs-nav-operations {
|
|
6
7
|
display: none !important;
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
align-items: flex-start;
|
|
66
67
|
}
|
|
67
68
|
.m-recommend-mobile .scrollContainer .scrollProductList .productCard {
|
|
68
|
-
margin-right: 0.
|
|
69
|
+
margin-right: 0.16rem;
|
|
69
70
|
}
|
|
70
71
|
.m-recommend-mobile .btnSeeAll {
|
|
71
72
|
display: block;
|
|
@@ -74,3 +75,25 @@
|
|
|
74
75
|
margin: 0 auto;
|
|
75
76
|
flex: none;
|
|
76
77
|
}
|
|
78
|
+
.m-recommend-mobile .m-product-item-wrap {
|
|
79
|
+
border-radius: 0.16rem;
|
|
80
|
+
}
|
|
81
|
+
.m-recommend-mobile .m-product-item-wrap .img-wrap {
|
|
82
|
+
border-radius: 0.16rem 0.16rem 0 0;
|
|
83
|
+
}
|
|
84
|
+
.m-recommend-mobile .m-product-item-wrap.horizontal .img-wrap {
|
|
85
|
+
border-radius: 0.16rem 0 0 0.16rem;
|
|
86
|
+
}
|
|
87
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap {
|
|
88
|
+
border: none;
|
|
89
|
+
background-color: transparent;
|
|
90
|
+
}
|
|
91
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap .img-wrap {
|
|
92
|
+
border-radius: 0.16rem;
|
|
93
|
+
}
|
|
94
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap .img-wrap .product-img {
|
|
95
|
+
border-radius: 0.16rem;
|
|
96
|
+
}
|
|
97
|
+
.m-recommend-mobile .scrollContainer .m-product-item-wrap .content-wrap {
|
|
98
|
+
padding: 0.16rem 0;
|
|
99
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.groupSourceJSON = exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
12
|
+
var _index = require("../../../../assets/images/base64/index");
|
|
13
|
+
|
|
14
|
+
var groupSourceJSON = function groupSourceJSON() {
|
|
15
|
+
var groupId = (0, _uuid.v4)();
|
|
16
|
+
return {
|
|
17
|
+
id: groupId,
|
|
18
|
+
image: {
|
|
19
|
+
parentId: groupId,
|
|
20
|
+
id: (0, _uuid.v4)(),
|
|
21
|
+
open: true,
|
|
22
|
+
type: 'IMAGE',
|
|
23
|
+
content: {
|
|
24
|
+
h5Name: 'Image Name',
|
|
25
|
+
pcName: 'Image Name',
|
|
26
|
+
h5ImgSrc: '',
|
|
27
|
+
pcImgSrc: '',
|
|
28
|
+
clickUrl: ''
|
|
29
|
+
},
|
|
30
|
+
hover: {
|
|
31
|
+
open: false,
|
|
32
|
+
backgroundType: 'enlarge',
|
|
33
|
+
magnification: 1.5,
|
|
34
|
+
pcImgHoverUrl: '',
|
|
35
|
+
h5ImgHoverUrl: ''
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.groupSourceJSON = groupSourceJSON;
|
|
42
|
+
|
|
43
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
44
|
+
var _a;
|
|
45
|
+
|
|
46
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
47
|
+
var compId = (0, _uuid.v4)();
|
|
48
|
+
return {
|
|
49
|
+
id: compId,
|
|
50
|
+
type: 'SEARCH_BANNER',
|
|
51
|
+
content: {
|
|
52
|
+
logo: {
|
|
53
|
+
id: (0, _uuid.v4)(),
|
|
54
|
+
open: true,
|
|
55
|
+
type: 'IMAGE',
|
|
56
|
+
content: {
|
|
57
|
+
h5Name: 'name2',
|
|
58
|
+
pcName: 'name2',
|
|
59
|
+
h5ImgSrc: '',
|
|
60
|
+
pcImgSrc: '',
|
|
61
|
+
clickUrl: ''
|
|
62
|
+
},
|
|
63
|
+
hover: {
|
|
64
|
+
open: false,
|
|
65
|
+
backgroundType: 'enlarge',
|
|
66
|
+
magnification: 1.5,
|
|
67
|
+
pcImgHoverUrl: '',
|
|
68
|
+
h5ImgHoverUrl: ''
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
box: {
|
|
72
|
+
id: (0, _uuid.v4)(),
|
|
73
|
+
open: true,
|
|
74
|
+
color: {
|
|
75
|
+
pc: '#fff',
|
|
76
|
+
mobile: '#fff'
|
|
77
|
+
},
|
|
78
|
+
backgroundColor: {
|
|
79
|
+
pc: 'transparent',
|
|
80
|
+
mobile: 'transparent'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
keyword: {
|
|
84
|
+
id: (0, _uuid.v4)(),
|
|
85
|
+
open: true,
|
|
86
|
+
type: 'InputField',
|
|
87
|
+
placeholder: 'Tshirt Woman',
|
|
88
|
+
content: {
|
|
89
|
+
sizeType: 'Customize font styles',
|
|
90
|
+
fontFamily: defaultFontFamily,
|
|
91
|
+
fontWeight: 600,
|
|
92
|
+
fontSize: 12,
|
|
93
|
+
pcFontSize: 14,
|
|
94
|
+
color: '#CE1126'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
placeholder: {
|
|
98
|
+
id: (0, _uuid.v4)(),
|
|
99
|
+
open: true,
|
|
100
|
+
text: ''
|
|
101
|
+
},
|
|
102
|
+
cartIcon: {
|
|
103
|
+
id: (0, _uuid.v4)(),
|
|
104
|
+
open: true,
|
|
105
|
+
type: 'IMAGE',
|
|
106
|
+
content: {
|
|
107
|
+
h5Name: 'name2',
|
|
108
|
+
pcName: 'name2',
|
|
109
|
+
h5ImgSrc: _index.searchCartIcon,
|
|
110
|
+
pcImgSrc: '',
|
|
111
|
+
clickUrl: {
|
|
112
|
+
name: '/main/cart',
|
|
113
|
+
value: '/main/cart'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
hover: {
|
|
117
|
+
open: false,
|
|
118
|
+
backgroundType: 'enlarge',
|
|
119
|
+
magnification: 1.5,
|
|
120
|
+
pcImgHoverUrl: '',
|
|
121
|
+
h5ImgHoverUrl: ''
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
chatbotIcon: {
|
|
125
|
+
id: (0, _uuid.v4)(),
|
|
126
|
+
open: true,
|
|
127
|
+
type: 'IMAGE',
|
|
128
|
+
content: {
|
|
129
|
+
h5Name: 'name2',
|
|
130
|
+
pcName: 'name2',
|
|
131
|
+
h5ImgSrc: _index.searchChatbotIcon,
|
|
132
|
+
pcImgSrc: '',
|
|
133
|
+
clickUrl: {
|
|
134
|
+
name: '/new-chat',
|
|
135
|
+
value: '/new-chat'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
hover: {
|
|
139
|
+
open: false,
|
|
140
|
+
backgroundType: 'enlarge',
|
|
141
|
+
magnification: 1.5,
|
|
142
|
+
pcImgHoverUrl: '',
|
|
143
|
+
h5ImgHoverUrl: ''
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
messageIcon: {
|
|
147
|
+
id: (0, _uuid.v4)(),
|
|
148
|
+
open: true,
|
|
149
|
+
type: 'IMAGE',
|
|
150
|
+
content: {
|
|
151
|
+
h5Name: 'name2',
|
|
152
|
+
pcName: 'name2',
|
|
153
|
+
h5ImgSrc: _index.searchMessageIcon,
|
|
154
|
+
pcImgSrc: '',
|
|
155
|
+
clickUrl: {
|
|
156
|
+
name: '/message-center',
|
|
157
|
+
value: '/message-center'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
hover: {
|
|
161
|
+
open: false,
|
|
162
|
+
backgroundType: 'enlarge',
|
|
163
|
+
magnification: 1.5,
|
|
164
|
+
pcImgHoverUrl: '',
|
|
165
|
+
h5ImgHoverUrl: ''
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
groupSource: [groupSourceJSON()],
|
|
170
|
+
setting: {
|
|
171
|
+
// 自动轮播
|
|
172
|
+
autoplay: {
|
|
173
|
+
open: true,
|
|
174
|
+
interval: 4
|
|
175
|
+
},
|
|
176
|
+
// 切换按钮
|
|
177
|
+
navigation: {
|
|
178
|
+
open: true,
|
|
179
|
+
size: 16,
|
|
180
|
+
hoverSize: 16,
|
|
181
|
+
color: '#aaa',
|
|
182
|
+
hoverColor: '#fff'
|
|
183
|
+
},
|
|
184
|
+
// 面板指示点
|
|
185
|
+
dots: {
|
|
186
|
+
open: true,
|
|
187
|
+
layout: 'layout1',
|
|
188
|
+
color: {
|
|
189
|
+
pc: '#fff',
|
|
190
|
+
mobile: '#fff'
|
|
191
|
+
},
|
|
192
|
+
hoverColor: {
|
|
193
|
+
pc: '#fff',
|
|
194
|
+
mobile: '#fff'
|
|
195
|
+
},
|
|
196
|
+
size: {
|
|
197
|
+
pc: 16,
|
|
198
|
+
mobile: 8
|
|
199
|
+
},
|
|
200
|
+
hoverSize: {
|
|
201
|
+
pc: 16,
|
|
202
|
+
mobile: 8
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
spacing: {
|
|
207
|
+
pc: {
|
|
208
|
+
paddingTop: 0,
|
|
209
|
+
paddingBottom: 0,
|
|
210
|
+
marginBottom: window.magicDesign.compSpacing * 1.5,
|
|
211
|
+
fillUp: false
|
|
212
|
+
},
|
|
213
|
+
mobile: {
|
|
214
|
+
paddingTop: 0,
|
|
215
|
+
paddingBottom: 0,
|
|
216
|
+
paddingLeft: 0,
|
|
217
|
+
paddingRight: 0,
|
|
218
|
+
marginBottom: window.magicDesign.compSpacing
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
customize: {
|
|
222
|
+
layout: 'left',
|
|
223
|
+
align: 'left'
|
|
224
|
+
},
|
|
225
|
+
background: {
|
|
226
|
+
opacity: 100,
|
|
227
|
+
color: '#fff',
|
|
228
|
+
image: '',
|
|
229
|
+
bgType: 'color'
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
exports.getDefaultJSON = getDefaultJSON;
|