@fonixtree/magic-design 0.0.110 → 0.0.111
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/magic-box-iconfont.css +28 -12
- package/es/assets/fonts/magic-box-iconfont.css.bak +28 -12
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/images/layout-icon/layout-video-h5-1.png +0 -0
- package/es/assets/images/layout-icon/layout-video-h5-2.png +0 -0
- package/es/assets/images/layout-icon/layout-video-h5-3.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-1.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-2.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-3.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-4.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-5.png +0 -0
- package/es/assets/images/layout-icon/walletLayout1.png +0 -0
- package/es/assets/less/button.less +23 -0
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/datepicker.less +11 -0
- package/es/assets/less/index.less +2 -1
- package/es/assets/less/modal.less +7 -2
- package/es/common/Button/index.js +2 -1
- package/es/common/Button/index.less +5 -0
- package/es/common/ButtonIconLayout/index.less +4 -2
- package/es/common/Carousel/index.js +71 -0
- package/es/common/Carousel/index.less +0 -0
- package/es/common/Collapse/index.js +14 -4
- package/es/common/Field/index.less +1 -1
- package/es/common/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +4 -3
- package/es/common/ImageModal/index.js +34 -29
- package/es/common/ImageModal/index.less +6 -1
- package/es/common/ImgArea/components/Crop.js +267 -0
- package/es/common/ImgArea/components/Icons.js +44 -0
- package/es/common/ImgArea/components/MultiCrops.js +210 -0
- package/es/common/ImgArea/index.js +11 -0
- package/es/common/LinkModal/BundleCampaign/index.js +17 -17
- package/es/common/LinkModal/CustomTable/index.js +3 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +7 -8
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/MagicLink/index.js +89 -0
- package/es/common/MagicLink/index.less +0 -0
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/common/SwiperBan/index.js +94 -0
- package/es/common/SwiperBan/index.less +25 -0
- package/es/common/SystemNotification/Confirm/index.js +263 -0
- package/es/common/SystemNotification/Confirm/index.less +33 -0
- package/es/common/SystemNotification/index.js +115 -0
- package/es/common/UrlPicker/index.js +6 -2
- package/es/common/UrlPicker/index.less +12 -1
- package/es/common/Video/background.png +0 -0
- package/es/common/Video/cover.png +0 -0
- package/es/common/Video/index.js +398 -0
- package/es/common/Video/index.less +46 -0
- package/es/common/VideoUpload/index.js +157 -0
- package/es/common/VideoUpload/index.less +113 -0
- package/es/common/VideoUpload/video-upload-icon.png +0 -0
- package/es/common/index.js +48 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/es/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/es/composite-comp/bol/components/Button/index.js +8 -14
- package/es/composite-comp/bol/components/Button/index.less +9 -9
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/es/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +25 -9
- package/es/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/es/composite-comp/bol/components/Carousel/pc/index.less +36 -16
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/es/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/es/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/es/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/es/composite-comp/bol/components/Tag/index.js +8 -14
- package/es/composite-comp/bol/components/Tag/index.less +1 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/es/composite-comp/bol/components/Text/index.js +4 -8
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/arrow-right.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/facebook-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/link-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/linked-in-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/twitter-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/video-share.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/index.js +126 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/index.less +47 -0
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +116 -0
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +76 -0
- package/es/composite-comp/bol/components/Video/defaultJSON.js +209 -0
- package/es/composite-comp/bol/components/Video/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/Video/imgs/play-circle.png +0 -0
- package/es/composite-comp/bol/components/Video/index.js +89 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +154 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +29 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +197 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +48 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +157 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +39 -0
- package/es/composite-comp/bol/components/Video/mobile/index.js +121 -0
- package/es/composite-comp/bol/components/Video/mobile/index.less +4 -0
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +161 -0
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +37 -0
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +207 -0
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +64 -0
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +157 -0
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +38 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +159 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +45 -0
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +159 -0
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +42 -0
- package/es/composite-comp/bol/components/Video/pc/index.js +130 -0
- package/es/composite-comp/bol/components/Video/pc/index.less +4 -0
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +224 -0
- package/es/composite-comp/bol/components/Wallet/index.js +88 -0
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +346 -0
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -0
- package/es/composite-comp/bol/components/Wallet/pc/index.js +342 -0
- package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -0
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +128 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +122 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.less +9 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +166 -0
- package/es/composite-comp/bol/config-panels/{ButtonCompConfig/ButtonConfigContent → WalletConfig/WalletConfigContent}/index.js +6 -14
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +150 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +68 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +315 -0
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +79 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +212 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +7 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +1 -0
- package/es/composite-comp/common/components/ProductItem/index.js +26 -6
- package/es/composite-comp/common/components/ProductItem/index.less +11 -10
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- 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/FlashDeal/pc/index.js +567 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/es/composite-comp/dito/components/Recommend/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/es/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/es/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/es/constants/component-types.js +27 -3
- package/es/constants/index.js +54 -2
- package/es/constants/layout.js +93 -13
- package/es/core/Designer/AppointmentModal/index.js +87 -0
- package/es/core/Designer/AppointmentModal/index.less +23 -0
- package/es/core/Designer/CompListPanel/CompCard/index.js +5 -1
- package/es/core/Designer/CompListPanel/index.js +11 -36
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/es/core/Designer/ConfigPanel/index.js +74 -23
- package/es/core/Designer/ConfigPanel/index.less +4 -0
- package/es/core/Designer/History/index.js +34 -28
- package/es/core/Designer/PageCompList/index.js +42 -4
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +38 -4
- package/es/core/Designer/QuickMenuBar/index.less +34 -0
- package/es/core/Designer/ViewArea/index.js +48 -8
- package/es/core/Designer/ViewArea/index.less +40 -4
- package/es/core/Designer/index.js +93 -41
- package/es/core/Renderer/index.js +23 -5
- package/es/decorator/compositeDecorator.js +149 -17
- package/es/decorator/index.js +8 -0
- package/es/decorator/metaDecorator.js +41 -8
- package/es/decorator/updateConfigDecorator.js +76 -0
- package/es/locale/en/en.json +33 -4
- package/es/locale/es/es.json +31 -2
- package/es/locale/id/id.json +33 -4
- package/es/meta-comp/components/Button/editable.js +114 -0
- package/es/meta-comp/components/Button/editable.less +6 -0
- package/es/meta-comp/components/Button/index.js +14 -33
- package/es/meta-comp/components/Button/index.less +3 -2
- package/es/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/es/meta-comp/components/Image/image/h5Img.png +0 -0
- package/es/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/es/meta-comp/components/Image/image/pcImg.png +0 -0
- package/es/meta-comp/components/Image/index.js +47 -8
- package/es/meta-comp/components/Image/index.less +7 -3
- package/es/meta-comp/components/Text/index.js +38 -11
- package/es/meta-comp/config-panels/BaseConfig.js +8 -10
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +23 -6
- package/es/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/es/mobx/Frame.js +64 -0
- package/es/mobx/Store.js +9 -10
- package/es/mobx/index.js +9 -3
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/commonUtil.js +26 -2
- package/es/utils/coreUtil.js +15 -2
- package/lib/assets/fonts/magic-box-iconfont.css +28 -12
- package/lib/assets/fonts/magic-box-iconfont.css.bak +28 -12
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-h5-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-h5-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-h5-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-4.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-5.png +0 -0
- package/lib/assets/images/layout-icon/walletLayout1.png +0 -0
- package/lib/assets/less/button.less +23 -0
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/datepicker.less +11 -0
- package/lib/assets/less/index.less +2 -1
- package/lib/assets/less/modal.less +7 -2
- package/lib/common/Button/index.js +2 -1
- package/lib/common/Button/index.less +5 -0
- package/lib/common/ButtonIconLayout/index.less +4 -2
- package/lib/common/Carousel/index.js +71 -0
- package/lib/common/Carousel/index.less +0 -0
- package/lib/common/Collapse/index.js +14 -4
- package/lib/common/Field/index.less +1 -1
- package/lib/common/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +4 -3
- package/lib/common/ImageModal/index.js +34 -29
- package/lib/common/ImageModal/index.less +6 -1
- package/lib/common/ImgArea/components/Crop.js +267 -0
- package/lib/common/ImgArea/components/Icons.js +44 -0
- package/lib/common/ImgArea/components/MultiCrops.js +210 -0
- package/lib/common/ImgArea/index.js +11 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
- package/lib/common/LinkModal/CustomTable/index.js +3 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +7 -8
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/MagicLink/index.js +89 -0
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/common/SwiperBan/index.js +94 -0
- package/lib/common/SwiperBan/index.less +25 -0
- package/lib/common/SystemNotification/Confirm/index.js +263 -0
- package/lib/common/SystemNotification/Confirm/index.less +33 -0
- package/lib/common/SystemNotification/index.js +115 -0
- package/lib/common/UrlPicker/index.js +6 -2
- package/lib/common/UrlPicker/index.less +12 -1
- package/lib/common/Video/background.png +0 -0
- package/lib/common/Video/cover.png +0 -0
- package/lib/common/Video/index.js +398 -0
- package/lib/common/Video/index.less +46 -0
- package/lib/common/VideoUpload/index.js +157 -0
- package/lib/common/VideoUpload/index.less +113 -0
- package/lib/common/VideoUpload/video-upload-icon.png +0 -0
- package/lib/common/index.js +48 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/lib/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/lib/composite-comp/bol/components/Button/index.js +8 -14
- package/lib/composite-comp/bol/components/Button/index.less +9 -9
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/lib/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +25 -9
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +36 -16
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/lib/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/lib/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/lib/composite-comp/bol/components/Tag/index.js +8 -14
- package/lib/composite-comp/bol/components/Tag/index.less +1 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/lib/composite-comp/bol/components/Text/index.js +4 -8
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/arrow-right.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/facebook-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/link-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/linked-in-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/twitter-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/video-share.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.js +126 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.less +47 -0
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +116 -0
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +76 -0
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +209 -0
- package/lib/composite-comp/bol/components/Video/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/Video/imgs/play-circle.png +0 -0
- package/lib/composite-comp/bol/components/Video/index.js +89 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +154 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +29 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +197 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +48 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +157 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +39 -0
- package/lib/composite-comp/bol/components/Video/mobile/index.js +121 -0
- package/lib/composite-comp/bol/components/Video/mobile/index.less +4 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +161 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +37 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +207 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +64 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +157 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +38 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +159 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +45 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +159 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +42 -0
- package/lib/composite-comp/bol/components/Video/pc/index.js +130 -0
- package/lib/composite-comp/bol/components/Video/pc/index.less +4 -0
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +224 -0
- package/lib/composite-comp/bol/components/Wallet/index.js +88 -0
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +346 -0
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -0
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +342 -0
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -0
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +128 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +122 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +166 -0
- package/lib/composite-comp/bol/config-panels/{ButtonCompConfig/ButtonConfigContent → WalletConfig/WalletConfigContent}/index.js +6 -14
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +150 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +68 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +315 -0
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +79 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +212 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +7 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +1 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +26 -6
- package/lib/composite-comp/common/components/ProductItem/index.less +11 -10
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- 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/FlashDeal/pc/index.js +567 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/lib/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/lib/constants/component-types.js +27 -3
- package/lib/constants/index.js +54 -2
- package/lib/constants/layout.js +93 -13
- package/lib/core/Designer/AppointmentModal/index.js +87 -0
- package/lib/core/Designer/AppointmentModal/index.less +23 -0
- package/lib/core/Designer/CompListPanel/CompCard/index.js +5 -1
- package/lib/core/Designer/CompListPanel/index.js +11 -36
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/lib/core/Designer/ConfigPanel/index.js +74 -23
- package/lib/core/Designer/ConfigPanel/index.less +4 -0
- package/lib/core/Designer/History/index.js +34 -28
- package/lib/core/Designer/PageCompList/index.js +42 -4
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +38 -4
- package/lib/core/Designer/QuickMenuBar/index.less +34 -0
- package/lib/core/Designer/ViewArea/index.js +48 -8
- package/lib/core/Designer/ViewArea/index.less +40 -4
- package/lib/core/Designer/index.js +93 -41
- package/lib/core/Renderer/index.js +23 -5
- package/lib/decorator/compositeDecorator.js +149 -17
- package/lib/decorator/index.js +8 -0
- package/lib/decorator/metaDecorator.js +41 -8
- package/lib/decorator/updateConfigDecorator.js +76 -0
- package/lib/locale/en/en.json +33 -4
- package/lib/locale/es/es.json +31 -2
- package/lib/locale/id/id.json +33 -4
- package/lib/meta-comp/components/Button/editable.js +114 -0
- package/lib/meta-comp/components/Button/editable.less +6 -0
- package/lib/meta-comp/components/Button/index.js +14 -33
- package/lib/meta-comp/components/Button/index.less +3 -2
- package/lib/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/h5Img.png +0 -0
- package/lib/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/pcImg.png +0 -0
- package/lib/meta-comp/components/Image/index.js +47 -8
- package/lib/meta-comp/components/Image/index.less +7 -3
- package/lib/meta-comp/components/Text/index.js +38 -11
- package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +23 -6
- package/lib/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/lib/mobx/Frame.js +64 -0
- package/lib/mobx/Store.js +9 -10
- package/lib/mobx/index.js +9 -3
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/commonUtil.js +26 -2
- package/lib/utils/coreUtil.js +15 -2
- package/package.json +5 -3
|
@@ -7,13 +7,16 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
-
var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
10
|
+
var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
|
|
11
11
|
var groupId = (0, _uuid.v4)();
|
|
12
|
+
var imageId = (0, _uuid.v4)();
|
|
13
|
+
var groupNameId = (0, _uuid.v4)();
|
|
12
14
|
return {
|
|
13
15
|
id: groupId,
|
|
16
|
+
parentId: parentId,
|
|
14
17
|
image: {
|
|
15
18
|
parentId: groupId,
|
|
16
|
-
id:
|
|
19
|
+
id: imageId,
|
|
17
20
|
open: true,
|
|
18
21
|
type: 'IMAGE',
|
|
19
22
|
content: {
|
|
@@ -33,12 +36,13 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
|
33
36
|
},
|
|
34
37
|
groupName: {
|
|
35
38
|
parentId: groupId,
|
|
36
|
-
id:
|
|
39
|
+
id: groupNameId,
|
|
37
40
|
open: true,
|
|
38
41
|
type: 'TEXT',
|
|
39
42
|
specialContent: [],
|
|
40
43
|
text: text,
|
|
41
44
|
content: {
|
|
45
|
+
sizeType: 'Customize font styles',
|
|
42
46
|
fontFamily: 'Open Sans',
|
|
43
47
|
fontWeight: 400,
|
|
44
48
|
fontSize: 14,
|
|
@@ -52,6 +56,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
|
52
56
|
vertical: {}
|
|
53
57
|
},
|
|
54
58
|
seeAll: {
|
|
59
|
+
parentId: groupId,
|
|
55
60
|
id: (0, _uuid.v4)(),
|
|
56
61
|
open: true,
|
|
57
62
|
type: 'BUTTON',
|
|
@@ -61,6 +66,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
|
61
66
|
backgroundColor: '#fff'
|
|
62
67
|
},
|
|
63
68
|
buttonText: {
|
|
69
|
+
sizeType: 'Customize font styles',
|
|
64
70
|
fontFamily: 'Open Sans',
|
|
65
71
|
fontWeight: 400,
|
|
66
72
|
fontSize: 12,
|
|
@@ -98,10 +104,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
|
98
104
|
intelligentValue: [],
|
|
99
105
|
maxProdNum: 10,
|
|
100
106
|
hover: {
|
|
101
|
-
open:
|
|
107
|
+
open: false,
|
|
102
108
|
image: {
|
|
103
109
|
parentId: groupId,
|
|
104
|
-
id:
|
|
110
|
+
id: imageId,
|
|
105
111
|
open: false,
|
|
106
112
|
type: 'IMAGE',
|
|
107
113
|
content: {
|
|
@@ -121,12 +127,13 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
|
121
127
|
},
|
|
122
128
|
groupName: {
|
|
123
129
|
parentId: groupId,
|
|
124
|
-
id:
|
|
130
|
+
id: groupNameId,
|
|
125
131
|
open: false,
|
|
126
132
|
type: 'TEXT',
|
|
127
133
|
specialContent: [],
|
|
128
134
|
text: text,
|
|
129
135
|
content: {
|
|
136
|
+
sizeType: 'Customize font styles',
|
|
130
137
|
fontFamily: 'Open Sans',
|
|
131
138
|
fontWeight: 600,
|
|
132
139
|
fontSize: 14,
|
|
@@ -146,10 +153,11 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
|
146
153
|
exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
|
|
147
154
|
|
|
148
155
|
var getDefaultJSON = function getDefaultJSON() {
|
|
156
|
+
var groupId = (0, _uuid.v4)();
|
|
149
157
|
return {
|
|
150
|
-
id:
|
|
158
|
+
id: groupId,
|
|
151
159
|
type: 'RECOMMEND',
|
|
152
|
-
groupSource: [recommendGroupSourceJSON('', 'Tab1'), recommendGroupSourceJSON('', 'Tab2')],
|
|
160
|
+
groupSource: [recommendGroupSourceJSON(groupId, '', 'Tab1'), recommendGroupSourceJSON(groupId, '', 'Tab2')],
|
|
153
161
|
content: {
|
|
154
162
|
label: {
|
|
155
163
|
id: (0, _uuid.v4)(),
|
|
@@ -161,6 +169,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
161
169
|
backgroundColor: '#CE1126'
|
|
162
170
|
},
|
|
163
171
|
buttonText: {
|
|
172
|
+
sizeType: 'Customize font styles',
|
|
164
173
|
fontFamily: 'Open Sans',
|
|
165
174
|
fontWeight: 600,
|
|
166
175
|
fontSize: 8,
|
|
@@ -195,10 +204,11 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
195
204
|
productName: {
|
|
196
205
|
id: (0, _uuid.v4)(),
|
|
197
206
|
open: true,
|
|
198
|
-
type: '
|
|
207
|
+
type: 'TEXT',
|
|
199
208
|
specialContent: [],
|
|
200
209
|
text: 'Flash Deal',
|
|
201
210
|
content: {
|
|
211
|
+
sizeType: 'Customize font styles',
|
|
202
212
|
fontFamily: 'Open Sans',
|
|
203
213
|
fontWeight: 700,
|
|
204
214
|
fontSize: 14,
|
|
@@ -217,10 +227,11 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
217
227
|
activityPrice: {
|
|
218
228
|
id: (0, _uuid.v4)(),
|
|
219
229
|
open: true,
|
|
220
|
-
type: '
|
|
230
|
+
type: 'TEXT',
|
|
221
231
|
specialContent: [],
|
|
222
232
|
text: 'Flash Deal',
|
|
223
233
|
content: {
|
|
234
|
+
sizeType: 'Customize font styles',
|
|
224
235
|
fontFamily: 'Open Sans',
|
|
225
236
|
fontWeight: 700,
|
|
226
237
|
fontSize: 14,
|
|
@@ -239,10 +250,11 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
239
250
|
salesPrice: {
|
|
240
251
|
id: (0, _uuid.v4)(),
|
|
241
252
|
open: true,
|
|
242
|
-
type: '
|
|
253
|
+
type: 'TEXT',
|
|
243
254
|
specialContent: [],
|
|
244
255
|
text: 'Flash Deal',
|
|
245
256
|
content: {
|
|
257
|
+
sizeType: 'Customize font styles',
|
|
246
258
|
fontFamily: 'Open Sans',
|
|
247
259
|
fontWeight: 500,
|
|
248
260
|
fontSize: 10,
|
|
@@ -268,19 +280,25 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
268
280
|
paddingBottom: 0,
|
|
269
281
|
paddingLeft: 0,
|
|
270
282
|
paddingRight: 0,
|
|
271
|
-
marginBottom:
|
|
283
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
272
284
|
},
|
|
273
285
|
mobile: {
|
|
274
286
|
paddingTop: 0,
|
|
275
287
|
paddingBottom: 0,
|
|
276
288
|
paddingLeft: 0,
|
|
277
289
|
paddingRight: 0,
|
|
278
|
-
marginBottom:
|
|
290
|
+
marginBottom: window.magicDesign.compSpacing
|
|
279
291
|
}
|
|
280
292
|
},
|
|
281
293
|
customize: {
|
|
282
|
-
layout:
|
|
283
|
-
|
|
294
|
+
layout: {
|
|
295
|
+
pcLayout: 'layout1',
|
|
296
|
+
h5Layout: 'layout1'
|
|
297
|
+
},
|
|
298
|
+
align: 'left',
|
|
299
|
+
pcRowNum: 6,
|
|
300
|
+
pcMaxRowNum: 6,
|
|
301
|
+
pcMinRowNum: 5
|
|
284
302
|
},
|
|
285
303
|
background: {
|
|
286
304
|
opacity: 100,
|
|
@@ -9,14 +9,14 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
11
|
|
|
12
|
+
var _pc = _interopRequireDefault(require("./pc"));
|
|
13
|
+
|
|
12
14
|
var _defaultJSON = require("./defaultJSON");
|
|
13
15
|
|
|
14
16
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
17
|
|
|
16
18
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
19
|
|
|
18
|
-
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
-
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -72,10 +72,9 @@ function (_super) {
|
|
|
72
72
|
|
|
73
73
|
Recommend.prototype.render = function () {
|
|
74
74
|
var nodeData = this.props.nodeData;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
76
|
+
panelProps: nodeData
|
|
77
|
+
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
79
78
|
panelProps: nodeData
|
|
80
79
|
}));
|
|
81
80
|
};
|
|
@@ -227,13 +227,9 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
227
227
|
};
|
|
228
228
|
|
|
229
229
|
var LAYOUT_IMAGE_SIZE = {
|
|
230
|
-
left: {
|
|
231
|
-
w: '100%',
|
|
232
|
-
h: 165
|
|
233
|
-
},
|
|
234
230
|
layout1: {
|
|
235
231
|
w: '100%',
|
|
236
|
-
h:
|
|
232
|
+
h: ''
|
|
237
233
|
},
|
|
238
234
|
layout2: {
|
|
239
235
|
w: 100,
|
|
@@ -241,7 +237,7 @@ var LAYOUT_IMAGE_SIZE = {
|
|
|
241
237
|
},
|
|
242
238
|
layout3: {
|
|
243
239
|
w: '100%',
|
|
244
|
-
h:
|
|
240
|
+
h: ''
|
|
245
241
|
},
|
|
246
242
|
layout4: {
|
|
247
243
|
w: 96,
|
|
@@ -263,10 +259,13 @@ function (_super) {
|
|
|
263
259
|
|
|
264
260
|
_this.preData = {};
|
|
265
261
|
_this.preLayout = '';
|
|
262
|
+
_this.preContent = '';
|
|
263
|
+
_this.preSpacing = '';
|
|
266
264
|
_this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
|
|
267
265
|
return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
|
|
268
266
|
}, {});
|
|
269
267
|
_this.state = __assign({
|
|
268
|
+
contentWidth: 0,
|
|
270
269
|
tabIndex: 0,
|
|
271
270
|
tabLeft: 0,
|
|
272
271
|
tabWidth: 0,
|
|
@@ -274,6 +273,15 @@ function (_super) {
|
|
|
274
273
|
hideTabs: false
|
|
275
274
|
}, _this._cache);
|
|
276
275
|
|
|
276
|
+
_this.listenWidth = function () {
|
|
277
|
+
setTimeout(function () {
|
|
278
|
+
var renderContainer = document.querySelector(".macyContainer_" + _this.props.panelProps.id);
|
|
279
|
+
if (renderContainer) _this.setState({
|
|
280
|
+
contentWidth: renderContainer.offsetWidth
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
|
|
277
285
|
_this.initTab = function (index, hideTabs) {
|
|
278
286
|
var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
|
|
279
287
|
var tabLeft = 0;
|
|
@@ -292,9 +300,10 @@ function (_super) {
|
|
|
292
300
|
|
|
293
301
|
_this.getTabBarActiveColor = function (_panelProps) {
|
|
294
302
|
var tabIndex = _this.state.tabIndex;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
303
|
+
var activeHoverGroupName = _panelProps.groupSource[tabIndex].hover;
|
|
304
|
+
return activeHoverGroupName.open ? (0, _commonUtil.ensure)(function () {
|
|
305
|
+
return activeHoverGroupName.groupName.content.color;
|
|
306
|
+
}, '#CE1126') : '#CE1126';
|
|
298
307
|
};
|
|
299
308
|
|
|
300
309
|
_this.getProductList = function (index) {
|
|
@@ -334,8 +343,11 @@ function (_super) {
|
|
|
334
343
|
_k.label = 1;
|
|
335
344
|
|
|
336
345
|
case 1:
|
|
337
|
-
_k.trys.push([1,
|
|
346
|
+
_k.trys.push([1, 9,, 10]);
|
|
338
347
|
|
|
348
|
+
if (!(groupSource.length > 0)) return [3
|
|
349
|
+
/*break*/
|
|
350
|
+
, 7];
|
|
339
351
|
if (!(sourceType === 'select')) return [3
|
|
340
352
|
/*break*/
|
|
341
353
|
, 3];
|
|
@@ -392,13 +404,22 @@ function (_super) {
|
|
|
392
404
|
, 8];
|
|
393
405
|
|
|
394
406
|
case 7:
|
|
407
|
+
newData = [];
|
|
408
|
+
_k.label = 8;
|
|
409
|
+
|
|
410
|
+
case 8:
|
|
411
|
+
return [3
|
|
412
|
+
/*break*/
|
|
413
|
+
, 10];
|
|
414
|
+
|
|
415
|
+
case 9:
|
|
395
416
|
e_1 = _k.sent();
|
|
396
417
|
newData = [];
|
|
397
418
|
return [3
|
|
398
419
|
/*break*/
|
|
399
|
-
,
|
|
420
|
+
, 10];
|
|
400
421
|
|
|
401
|
-
case
|
|
422
|
+
case 10:
|
|
402
423
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
403
424
|
_cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
|
|
404
425
|
(0, _storeUtil.setMagicStore)("recommend_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
|
|
@@ -416,18 +437,16 @@ function (_super) {
|
|
|
416
437
|
};
|
|
417
438
|
|
|
418
439
|
_this.resetLayout = function () {
|
|
419
|
-
var layout = _this.props.panelProps.customize.layout.h5Layout
|
|
420
|
-
|
|
440
|
+
var layout = _this.props.panelProps.customize.layout.h5Layout;
|
|
421
441
|
var LAYOUT_COLUMN = {
|
|
422
|
-
left: 2,
|
|
423
442
|
layout1: 2,
|
|
424
443
|
layout2: 1,
|
|
425
444
|
layout3: 3
|
|
426
445
|
};
|
|
427
446
|
if (!LAYOUT_COLUMN[layout]) return;
|
|
428
447
|
setTimeout(function () {
|
|
429
|
-
if (document.querySelector(
|
|
430
|
-
_this.getMacy(
|
|
448
|
+
if (document.querySelector(".macyContainer_" + _this.props.panelProps.id)) {
|
|
449
|
+
_this.getMacy(".macyContainer_" + _this.props.panelProps.id, LAYOUT_COLUMN[layout]);
|
|
431
450
|
}
|
|
432
451
|
});
|
|
433
452
|
};
|
|
@@ -449,28 +468,9 @@ function (_super) {
|
|
|
449
468
|
}, true);
|
|
450
469
|
};
|
|
451
470
|
|
|
452
|
-
_this.getBackgroundStyle = function () {
|
|
453
|
-
var panelProps = _this.props.panelProps;
|
|
454
|
-
var bgStyle = {};
|
|
455
|
-
|
|
456
|
-
if (panelProps.background.bgType === 'color') {
|
|
457
|
-
bgStyle = {
|
|
458
|
-
backgroundColor: (0, _commonUtil.getColorRgba)(panelProps.background.color || '#fff', panelProps.background.opacity / 100 || 1)
|
|
459
|
-
};
|
|
460
|
-
} else {
|
|
461
|
-
bgStyle = {
|
|
462
|
-
background: "url(" + panelProps.background.image + ") no-repeat center",
|
|
463
|
-
backgroundSize: '100%'
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
return bgStyle;
|
|
468
|
-
};
|
|
469
|
-
|
|
470
471
|
_this.onTabClick = function (e, index) {
|
|
471
472
|
var tabIndex = _this.state.tabIndex;
|
|
472
|
-
if (tabIndex === index) return;
|
|
473
|
-
e.currentTarget.scrollIntoView(false);
|
|
473
|
+
if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
|
|
474
474
|
|
|
475
475
|
_this.setState({
|
|
476
476
|
tabIndex: index
|
|
@@ -502,13 +502,14 @@ function (_super) {
|
|
|
502
502
|
|
|
503
503
|
_this.getProductList(0);
|
|
504
504
|
});
|
|
505
|
+
this.listenWidth();
|
|
505
506
|
};
|
|
506
507
|
|
|
507
|
-
RecommendMobile.prototype.componentWillReceiveProps = function () {
|
|
508
|
+
RecommendMobile.prototype.componentWillReceiveProps = function (nextProps) {
|
|
508
509
|
var _this = this;
|
|
509
510
|
|
|
510
511
|
var tabIndex = this.state.tabIndex;
|
|
511
|
-
var panelProps =
|
|
512
|
+
var panelProps = nextProps.panelProps;
|
|
512
513
|
var source = [];
|
|
513
514
|
var hideTabs = false;
|
|
514
515
|
panelProps.groupSource.map(function (m) {
|
|
@@ -516,8 +517,8 @@ function (_super) {
|
|
|
516
517
|
if (show) source.push(m);
|
|
517
518
|
});
|
|
518
519
|
|
|
519
|
-
if (source.length === 0
|
|
520
|
-
source.push(panelProps.groupSource[0]);
|
|
520
|
+
if (source.length === 0) {
|
|
521
|
+
if (panelProps.groupSource.length > 0) source.push(panelProps.groupSource[0]);
|
|
521
522
|
hideTabs = true;
|
|
522
523
|
}
|
|
523
524
|
|
|
@@ -543,13 +544,21 @@ function (_super) {
|
|
|
543
544
|
hideTabs: hideTabs
|
|
544
545
|
});
|
|
545
546
|
});
|
|
546
|
-
var curLayout = panelProps.customize.layout.h5Layout
|
|
547
|
+
var curLayout = panelProps.customize.layout.h5Layout;
|
|
548
|
+
var curContent = JSON.stringify(panelProps.content);
|
|
549
|
+
var curSpacing = JSON.stringify(panelProps.spacing);
|
|
550
|
+
|
|
551
|
+
if (curSpacing !== this.preSpacing) {
|
|
552
|
+
this.listenWidth();
|
|
553
|
+
}
|
|
547
554
|
|
|
548
|
-
if (curLayout !== this.preLayout) {
|
|
555
|
+
if (curLayout !== this.preLayout || curContent !== this.preContent || curSpacing !== this.preSpacing) {
|
|
549
556
|
this.resetLayout();
|
|
550
557
|
}
|
|
551
558
|
|
|
552
559
|
this.preLayout = curLayout;
|
|
560
|
+
this.preContent = curContent;
|
|
561
|
+
this.preSpacing = curSpacing;
|
|
553
562
|
};
|
|
554
563
|
|
|
555
564
|
RecommendMobile.prototype.render = function () {
|
|
@@ -561,22 +570,26 @@ function (_super) {
|
|
|
561
570
|
tabLeft = _a.tabLeft,
|
|
562
571
|
tabWidth = _a.tabWidth,
|
|
563
572
|
groupSource = _a.groupSource,
|
|
564
|
-
hideTabs = _a.hideTabs
|
|
565
|
-
|
|
573
|
+
hideTabs = _a.hideTabs,
|
|
574
|
+
contentWidth = _a.contentWidth;
|
|
566
575
|
var products = this.state["products" + tabIndex] || [];
|
|
567
576
|
var isDivide = groupSource.length <= 3;
|
|
568
|
-
var layout = panelProps.customize.layout.h5Layout
|
|
569
|
-
|
|
577
|
+
var layout = panelProps.customize.layout.h5Layout;
|
|
578
|
+
|
|
579
|
+
var _seeAll = (0, _commonUtil.ensure)(function () {
|
|
580
|
+
return groupSource[tabIndex].seeAll;
|
|
581
|
+
}, '');
|
|
570
582
|
|
|
571
|
-
var imgHeight = (0, _commonUtil.ensure)(function () {
|
|
572
|
-
return LAYOUT_IMAGE_SIZE[layout].h;
|
|
573
|
-
}, 140);
|
|
574
583
|
var imgWidth = (0, _commonUtil.ensure)(function () {
|
|
575
584
|
return LAYOUT_IMAGE_SIZE[layout].w;
|
|
576
585
|
}, 140);
|
|
586
|
+
var imgHeight = (0, _commonUtil.ensure)(function () {
|
|
587
|
+
return LAYOUT_IMAGE_SIZE[layout].h;
|
|
588
|
+
}, 140);
|
|
589
|
+
if (layout === 'layout1' && contentWidth) imgHeight = (contentWidth - 12) / 2;
|
|
590
|
+
if (layout === 'layout3' && contentWidth) imgHeight = (contentWidth - 12 * 2) / 3;
|
|
577
591
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
578
|
-
className: "m-recommend-mobile"
|
|
579
|
-
style: bgStyle
|
|
592
|
+
className: "m-recommend-mobile"
|
|
580
593
|
}, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
|
|
581
594
|
className: "tab-select-wrap"
|
|
582
595
|
}, groupSource.map(function (tab, index) {
|
|
@@ -607,18 +620,40 @@ function (_super) {
|
|
|
607
620
|
tab.groupName.text = text;
|
|
608
621
|
}
|
|
609
622
|
}));
|
|
610
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
623
|
+
}), groupSource.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
611
624
|
className: "active-line",
|
|
612
625
|
style: {
|
|
613
626
|
width: tabWidth,
|
|
614
627
|
transform: "translateX(" + tabLeft + "px)",
|
|
615
628
|
background: this.getTabBarActiveColor(panelProps)
|
|
616
629
|
}
|
|
617
|
-
})), ['
|
|
630
|
+
})), ['layout1', 'layout2', 'layout3'].includes(layout) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
631
|
+
key: "macyContainer",
|
|
632
|
+
className: "macyContainer macyContainer_" + panelProps.id
|
|
633
|
+
}, products.map(function (item) {
|
|
634
|
+
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
635
|
+
key: item.productId,
|
|
636
|
+
data: item,
|
|
637
|
+
fixHeight: layout === 'layout3',
|
|
638
|
+
imgHeight: imgHeight,
|
|
639
|
+
imgWidth: imgWidth,
|
|
640
|
+
layout: layout === 'layout2' ? 'horizontal' : 'vertical',
|
|
641
|
+
onItemClick: function onItemClick() {
|
|
642
|
+
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
643
|
+
},
|
|
644
|
+
panelProps: panelProps.content,
|
|
645
|
+
showProgress: false
|
|
646
|
+
});
|
|
647
|
+
})), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
648
|
+
className: "btnSeeAll",
|
|
649
|
+
data: _seeAll
|
|
650
|
+
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
618
651
|
key: "scrollContainer",
|
|
619
652
|
className: (0, _classnames["default"])('scrollContainer', {
|
|
620
653
|
pl_100: layout === 'layout5'
|
|
621
654
|
})
|
|
655
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
656
|
+
className: "scrollProductList"
|
|
622
657
|
}, products.map(function (item) {
|
|
623
658
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
624
659
|
className: "productCard"
|
|
@@ -634,24 +669,10 @@ function (_super) {
|
|
|
634
669
|
panelProps: panelProps.content,
|
|
635
670
|
showProgress: false
|
|
636
671
|
}));
|
|
637
|
-
}))
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
641
|
-
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
642
|
-
key: item.productId,
|
|
643
|
-
data: item,
|
|
644
|
-
fixHeight: layout === 'layout3',
|
|
645
|
-
imgHeight: imgHeight,
|
|
646
|
-
imgWidth: imgWidth,
|
|
647
|
-
layout: layout === 'layout2' ? 'horizontal' : 'vertical',
|
|
648
|
-
onItemClick: function onItemClick() {
|
|
649
|
-
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
650
|
-
},
|
|
651
|
-
panelProps: panelProps.content,
|
|
652
|
-
showProgress: false
|
|
653
|
-
});
|
|
654
|
-
}))));
|
|
672
|
+
})), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
673
|
+
className: "btnSeeAll",
|
|
674
|
+
data: _seeAll
|
|
675
|
+
})));
|
|
655
676
|
};
|
|
656
677
|
|
|
657
678
|
RecommendMobile.defaultProps = {
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
.tabTitle {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: center;
|
|
28
|
+
text-align: center;
|
|
28
29
|
padding: 0 24px;
|
|
30
|
+
width: fit-content;
|
|
29
31
|
height: 100%;
|
|
30
32
|
justify-content: center;
|
|
31
33
|
white-space: nowrap;
|
|
@@ -66,8 +68,14 @@
|
|
|
66
68
|
padding-left: 100px;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
+
.scrollProductList {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
align-items: flex-start;
|
|
75
|
+
|
|
76
|
+
.productCard {
|
|
77
|
+
margin-right: 12px;
|
|
78
|
+
}
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
|
|
@@ -76,5 +84,6 @@
|
|
|
76
84
|
width: fit-content;
|
|
77
85
|
min-width: 80px;
|
|
78
86
|
margin: 0 auto;
|
|
87
|
+
flex: none;
|
|
79
88
|
}
|
|
80
89
|
}
|