@fonixtree/magic-design 2.0.202 → 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/magic-box-iconfont.css +27 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/banner-slide-layout3.png +0 -0
- package/es/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/es/assets/images/layout-icon/news-layout1.png +0 -0
- package/es/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/es/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/es/assets/less/font.less +30 -0
- package/es/assets/less/global.less +5 -0
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/LinkModal/ProductList/index.js +484 -0
- package/es/common/LinkModal/ProductList/index.less +130 -0
- package/es/common/LinkModal/index.js +8 -1
- package/es/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/es/common/ProductCardModal/index.js +255 -0
- package/es/common/ProductCardModal/index.less +131 -0
- package/es/common/Toast/index.js +30 -0
- package/es/common/Toast/index.less +29 -0
- package/es/common/UrlPicker/index.js +1 -1
- package/es/common/Video/index.js +5 -3
- package/es/common/VideoPC/background.png +0 -0
- package/es/common/VideoPC/closeImg.png +0 -0
- package/es/common/VideoPC/components/index.js +100 -0
- package/es/common/VideoPC/components/index.less +62 -0
- package/es/common/VideoPC/cover.png +0 -0
- package/es/common/VideoPC/index.js +750 -0
- package/es/common/VideoPC/index.less +79 -0
- package/es/common/index.js +24 -0
- package/es/composite-comp/common/components/ProductItem/index.js +15 -8
- package/es/composite-comp/common/components/ProductItem/index.less +7 -0
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/es/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/es/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{lib/composite-comp/dito/components/Orders → es/composite-comp/dito/components/News}/index.js +13 -13
- package/es/composite-comp/dito/components/News/pc/index.js +113 -0
- package/es/composite-comp/dito/components/News/pc/index.less +46 -0
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/es/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/es/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{lib/composite-comp/dito/config-panels/OrdersConfig → es/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/es/constants/component-types.js +27 -9
- package/es/constants/index.js +40 -20
- package/es/constants/layout.js +46 -2
- package/es/core/Designer/ConfigPanel/index.js +17 -1
- package/es/core/Renderer/index.js +37 -2
- package/es/decorator/compositeDecorator.js +5 -1
- package/es/decorator/metaDecorator.js +1 -2
- package/es/locale/ar/ar.json +11 -1
- package/es/locale/en/en.json +11 -1
- package/es/locale/es/es.json +11 -1
- package/es/meta-comp/components/Button/editable.js +3 -1
- package/es/meta-comp/components/Button/index.js +13 -4
- package/es/meta-comp/components/Button/index.less +8 -1
- package/es/meta-comp/components/Image/index.js +7 -2
- package/es/meta-comp/components/Image/index.less +7 -0
- package/es/meta-comp/components/Text/index.js +6 -2
- package/es/meta-comp/components/Text/index.less +3 -0
- package/es/mobx/Frame.js +12 -1
- package/es/mobx/Store.js +12 -0
- package/es/utils/androidUtil.js +10 -2
- package/es/utils/businessUtil.js +218 -3
- package/es/utils/commonUtil.js +155 -4
- package/es/utils/coreUtil.js +59 -4
- package/es/utils/messageUtil.js +40 -0
- package/es/utils/pluginsUtil.js +1 -0
- package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +27 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/banner-slide-layout3.png +0 -0
- package/lib/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/lib/assets/images/layout-icon/news-layout1.png +0 -0
- package/lib/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/lib/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/lib/assets/less/font.less +30 -0
- package/lib/assets/less/global.less +5 -0
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/LinkModal/ProductList/index.js +484 -0
- package/lib/common/LinkModal/ProductList/index.less +130 -0
- package/lib/common/LinkModal/index.js +8 -1
- package/lib/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/lib/common/ProductCardModal/index.js +255 -0
- package/lib/common/ProductCardModal/index.less +131 -0
- package/lib/common/Toast/index.js +30 -0
- package/lib/common/Toast/index.less +29 -0
- package/lib/common/UrlPicker/index.js +1 -1
- package/lib/common/Video/index.js +5 -3
- package/lib/common/VideoPC/background.png +0 -0
- package/lib/common/VideoPC/closeImg.png +0 -0
- package/lib/common/VideoPC/components/index.js +100 -0
- package/lib/common/VideoPC/components/index.less +62 -0
- package/lib/common/VideoPC/cover.png +0 -0
- package/lib/common/VideoPC/index.js +750 -0
- package/lib/common/VideoPC/index.less +79 -0
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +15 -8
- package/lib/composite-comp/common/components/ProductItem/index.less +7 -0
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/lib/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{es/composite-comp/dito/components/Orders → lib/composite-comp/dito/components/News}/index.js +13 -13
- package/lib/composite-comp/dito/components/News/pc/index.js +113 -0
- package/lib/composite-comp/dito/components/News/pc/index.less +46 -0
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/lib/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/lib/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{es/composite-comp/dito/config-panels/OrdersConfig → lib/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/lib/constants/component-types.js +27 -9
- package/lib/constants/index.js +40 -20
- package/lib/constants/layout.js +46 -2
- package/lib/core/Designer/ConfigPanel/index.js +17 -1
- package/lib/core/Renderer/index.js +37 -2
- package/lib/decorator/compositeDecorator.js +5 -1
- package/lib/decorator/metaDecorator.js +1 -2
- package/lib/locale/ar/ar.json +11 -1
- package/lib/locale/en/en.json +11 -1
- package/lib/locale/es/es.json +11 -1
- package/lib/meta-comp/components/Button/editable.js +3 -1
- package/lib/meta-comp/components/Button/index.js +13 -4
- package/lib/meta-comp/components/Button/index.less +8 -1
- package/lib/meta-comp/components/Image/index.js +7 -2
- package/lib/meta-comp/components/Image/index.less +7 -0
- package/lib/meta-comp/components/Text/index.js +6 -2
- package/lib/meta-comp/components/Text/index.less +3 -0
- package/lib/mobx/Frame.js +12 -1
- package/lib/mobx/Store.js +12 -0
- package/lib/utils/androidUtil.js +10 -2
- package/lib/utils/businessUtil.js +218 -3
- package/lib/utils/commonUtil.js +155 -4
- package/lib/utils/coreUtil.js +59 -4
- package/lib/utils/messageUtil.js +40 -0
- package/lib/utils/pluginsUtil.js +1 -0
- package/package.json +5 -2
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
- /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -118,4 +118,34 @@
|
|
|
118
118
|
src: url(../fonts/Roboto-Bold.ttf);
|
|
119
119
|
font-weight: 700;
|
|
120
120
|
font-style: normal;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@font-face {
|
|
126
|
+
font-family: 'AvenirNext';
|
|
127
|
+
src: url('../fonts/AvenirNext-Regular.ttf');
|
|
128
|
+
font-weight: 400;
|
|
129
|
+
font-style: normal;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@font-face {
|
|
133
|
+
font-family: 'AvenirNext';
|
|
134
|
+
src: url('../fonts/AvenirNext-Medium.ttf');
|
|
135
|
+
font-weight: 500;
|
|
136
|
+
font-style: normal;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@font-face {
|
|
140
|
+
font-family: 'AvenirNext';
|
|
141
|
+
src: url(../fonts/AvenirNext-DemiBold.ttf);
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
font-style: normal;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@font-face {
|
|
147
|
+
font-family: 'AvenirNext';
|
|
148
|
+
src: url(../fonts/AvenirNext-Bold.ttf);
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
font-style: normal;
|
|
121
151
|
}
|
|
@@ -9,10 +9,18 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _commonUtil = require("../../utils/commonUtil");
|
|
13
15
|
|
|
14
16
|
require("./index.less");
|
|
15
17
|
|
|
18
|
+
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
16
24
|
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); }
|
|
17
25
|
|
|
18
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -138,13 +146,32 @@ function (_super) {
|
|
|
138
146
|
};
|
|
139
147
|
|
|
140
148
|
CountDown.prototype.render = function () {
|
|
149
|
+
var type = this.props.type;
|
|
141
150
|
var _a = this.state,
|
|
142
151
|
hour = _a.hour,
|
|
143
152
|
min = _a.min,
|
|
144
153
|
second = _a.second;
|
|
145
154
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
-
className: "count-down-wrap
|
|
147
|
-
|
|
155
|
+
className: (0, _classnames["default"])('count-down-wrap', {
|
|
156
|
+
pc: type === 'pc'
|
|
157
|
+
})
|
|
158
|
+
}, (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
159
|
+
className: "icon_time",
|
|
160
|
+
color: "#000",
|
|
161
|
+
fontWeight: 700,
|
|
162
|
+
size: 24,
|
|
163
|
+
type: "icon-time1"
|
|
164
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
165
|
+
className: "num"
|
|
166
|
+
}, hour), (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement("span", {
|
|
167
|
+
className: "pots"
|
|
168
|
+
}, ":"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
169
|
+
className: "num"
|
|
170
|
+
}, min), (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement("span", {
|
|
171
|
+
className: "pots"
|
|
172
|
+
}, ":"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
173
|
+
className: "num"
|
|
174
|
+
}, second));
|
|
148
175
|
};
|
|
149
176
|
|
|
150
177
|
CountDown.defaultProps = {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
.count-down-wrap {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
font-family: 'Montserrat';
|
|
6
|
+
gap: 4px;
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
.num {
|
|
6
9
|
background: #CC1D20;
|
|
7
10
|
border-radius: 4px;
|
|
8
|
-
font-family: 'Montserrat';
|
|
9
11
|
font-style: normal;
|
|
10
12
|
font-weight: 500;
|
|
11
13
|
font-size: 12px;
|
|
@@ -14,10 +16,41 @@
|
|
|
14
16
|
line-height: 17px;
|
|
15
17
|
width: 24px;
|
|
16
18
|
text-align: center;
|
|
17
|
-
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pots {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.pc {
|
|
26
|
+
background-color: #F9CA1C;
|
|
27
|
+
border-radius: 20px;
|
|
28
|
+
padding: 0 12px;
|
|
29
|
+
gap: 2px;
|
|
30
|
+
|
|
31
|
+
.icon_time {
|
|
32
|
+
margin-right: 2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.num {
|
|
36
|
+
background: none;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
color: #000;
|
|
41
|
+
height: 36px;
|
|
42
|
+
line-height: 38px;
|
|
43
|
+
}
|
|
18
44
|
|
|
19
|
-
|
|
20
|
-
|
|
45
|
+
.pots {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
font-style: normal;
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
font-size: 20px;
|
|
50
|
+
color: #000;
|
|
51
|
+
height: 36px;
|
|
52
|
+
line-height: 35px;
|
|
53
|
+
margin-left: 3px;
|
|
21
54
|
}
|
|
22
55
|
}
|
|
23
56
|
}
|
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd4");
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
14
|
+
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
+
|
|
16
|
+
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
17
|
+
|
|
18
|
+
var _Iconfont = _interopRequireDefault(require("../../Iconfont"));
|
|
19
|
+
|
|
20
|
+
var _businessUtil = require("../../../utils/businessUtil");
|
|
21
|
+
|
|
22
|
+
require("./index.less");
|
|
23
|
+
|
|
24
|
+
var _locale = require("../../../locale");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
32
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
33
|
+
__assign = Object.assign || function (t) {
|
|
34
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
35
|
+
s = arguments[i];
|
|
36
|
+
|
|
37
|
+
for (var p in s) {
|
|
38
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return t;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return __assign.apply(this, arguments);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
49
|
+
function adopt(value) {
|
|
50
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
51
|
+
resolve(value);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
56
|
+
function fulfilled(value) {
|
|
57
|
+
try {
|
|
58
|
+
step(generator.next(value));
|
|
59
|
+
} catch (e) {
|
|
60
|
+
reject(e);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function rejected(value) {
|
|
65
|
+
try {
|
|
66
|
+
step(generator["throw"](value));
|
|
67
|
+
} catch (e) {
|
|
68
|
+
reject(e);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function step(result) {
|
|
73
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
81
|
+
var _ = {
|
|
82
|
+
label: 0,
|
|
83
|
+
sent: function sent() {
|
|
84
|
+
if (t[0] & 1) throw t[1];
|
|
85
|
+
return t[1];
|
|
86
|
+
},
|
|
87
|
+
trys: [],
|
|
88
|
+
ops: []
|
|
89
|
+
},
|
|
90
|
+
f,
|
|
91
|
+
y,
|
|
92
|
+
t,
|
|
93
|
+
g;
|
|
94
|
+
return g = {
|
|
95
|
+
next: verb(0),
|
|
96
|
+
"throw": verb(1),
|
|
97
|
+
"return": verb(2)
|
|
98
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
99
|
+
return this;
|
|
100
|
+
}), g;
|
|
101
|
+
|
|
102
|
+
function verb(n) {
|
|
103
|
+
return function (v) {
|
|
104
|
+
return step([n, v]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function step(op) {
|
|
109
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
110
|
+
|
|
111
|
+
while (_) {
|
|
112
|
+
try {
|
|
113
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
114
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
115
|
+
|
|
116
|
+
switch (op[0]) {
|
|
117
|
+
case 0:
|
|
118
|
+
case 1:
|
|
119
|
+
t = op;
|
|
120
|
+
break;
|
|
121
|
+
|
|
122
|
+
case 4:
|
|
123
|
+
_.label++;
|
|
124
|
+
return {
|
|
125
|
+
value: op[1],
|
|
126
|
+
done: false
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
case 5:
|
|
130
|
+
_.label++;
|
|
131
|
+
y = op[1];
|
|
132
|
+
op = [0];
|
|
133
|
+
continue;
|
|
134
|
+
|
|
135
|
+
case 7:
|
|
136
|
+
op = _.ops.pop();
|
|
137
|
+
|
|
138
|
+
_.trys.pop();
|
|
139
|
+
|
|
140
|
+
continue;
|
|
141
|
+
|
|
142
|
+
default:
|
|
143
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
144
|
+
_ = 0;
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
149
|
+
_.label = op[1];
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
154
|
+
_.label = t[1];
|
|
155
|
+
t = op;
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (t && _.label < t[2]) {
|
|
160
|
+
_.label = t[2];
|
|
161
|
+
|
|
162
|
+
_.ops.push(op);
|
|
163
|
+
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (t[2]) _.ops.pop();
|
|
168
|
+
|
|
169
|
+
_.trys.pop();
|
|
170
|
+
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
op = body.call(thisArg, _);
|
|
175
|
+
} catch (e) {
|
|
176
|
+
op = [6, e];
|
|
177
|
+
y = 0;
|
|
178
|
+
} finally {
|
|
179
|
+
f = t = 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (op[0] & 5) throw op[1];
|
|
184
|
+
return {
|
|
185
|
+
value: op[0] ? op[1] : void 0,
|
|
186
|
+
done: true
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
192
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
|
|
193
|
+
s += arguments[i].length;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
197
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
198
|
+
r[k] = a[j];
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return r;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
var ProductList = function ProductList(props) {
|
|
206
|
+
var onChange = props.onChange,
|
|
207
|
+
_a = props.defaultList,
|
|
208
|
+
defaultList = _a === void 0 ? [] : _a;
|
|
209
|
+
|
|
210
|
+
var _b = (0, _react.useState)([]),
|
|
211
|
+
catgIds = _b[0],
|
|
212
|
+
setCatgIds = _b[1];
|
|
213
|
+
|
|
214
|
+
var _c = (0, _react.useState)(''),
|
|
215
|
+
productName = _c[0],
|
|
216
|
+
setProductName = _c[1];
|
|
217
|
+
|
|
218
|
+
var _d = (0, _react.useState)([]),
|
|
219
|
+
treeData = _d[0],
|
|
220
|
+
setTreeData = _d[1];
|
|
221
|
+
|
|
222
|
+
var _e = (0, _react.useState)([]),
|
|
223
|
+
dataSource = _e[0],
|
|
224
|
+
setDataSource = _e[1];
|
|
225
|
+
|
|
226
|
+
var _f = (0, _react.useState)(false),
|
|
227
|
+
loading = _f[0],
|
|
228
|
+
setLoading = _f[1];
|
|
229
|
+
|
|
230
|
+
var _g = (0, _react.useState)(defaultList),
|
|
231
|
+
selectedList = _g[0],
|
|
232
|
+
setSelectedList = _g[1];
|
|
233
|
+
|
|
234
|
+
var _h = (0, _react.useState)(defaultList.map(function (v) {
|
|
235
|
+
return v.offerId;
|
|
236
|
+
})),
|
|
237
|
+
selectedRowKeys = _h[0],
|
|
238
|
+
setSelectedRowKeys = _h[1];
|
|
239
|
+
|
|
240
|
+
var _j = (0, _react.useState)({
|
|
241
|
+
pageSize: 20,
|
|
242
|
+
current: 1,
|
|
243
|
+
total: 0
|
|
244
|
+
}),
|
|
245
|
+
paginationParams = _j[0],
|
|
246
|
+
setPaginationParams = _j[1];
|
|
247
|
+
|
|
248
|
+
var reset = function reset() {
|
|
249
|
+
setCatgIds([]);
|
|
250
|
+
setProductName('');
|
|
251
|
+
setDataSource([]);
|
|
252
|
+
onChange('', 0);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
var rowSelection = {
|
|
256
|
+
selectedRowKeys: selectedRowKeys,
|
|
257
|
+
onSelect: function onSelect(record, selected, selectedRows) {
|
|
258
|
+
if (selected) {
|
|
259
|
+
setSelectedList(__spreadArrays(selectedList, [record]));
|
|
260
|
+
} else {
|
|
261
|
+
setSelectedList(selectedList.filter(function (v) {
|
|
262
|
+
return v.offerId !== record.offerId;
|
|
263
|
+
}));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
setSelectedRowKeys(selectedRows.map(function (v) {
|
|
267
|
+
return v === null || v === void 0 ? void 0 : v.offerId;
|
|
268
|
+
}));
|
|
269
|
+
},
|
|
270
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
271
|
+
return {
|
|
272
|
+
productName: record.productName
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
var columns = [{
|
|
277
|
+
title: 'Image',
|
|
278
|
+
dataIndex: 'cardImgUrl',
|
|
279
|
+
key: 'cardImgUrl',
|
|
280
|
+
width: 100,
|
|
281
|
+
render: function render(cardImgUrl) {
|
|
282
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
283
|
+
className: "prodImage",
|
|
284
|
+
style: {
|
|
285
|
+
backgroundImage: "url(\"" + cardImgUrl + "\")"
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
title: 'Offer Name',
|
|
291
|
+
dataIndex: 'offerName',
|
|
292
|
+
key: 'offerName',
|
|
293
|
+
ellipsis: true
|
|
294
|
+
}, {
|
|
295
|
+
title: 'Price',
|
|
296
|
+
dataIndex: 'salesPrice',
|
|
297
|
+
key: 'salesPrice',
|
|
298
|
+
render: function render(salesPrice) {
|
|
299
|
+
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(salesPrice);
|
|
300
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
301
|
+
className: "one_row",
|
|
302
|
+
title: price
|
|
303
|
+
}, price);
|
|
304
|
+
}
|
|
305
|
+
}, {
|
|
306
|
+
title: 'Brand',
|
|
307
|
+
dataIndex: 'brandName',
|
|
308
|
+
key: 'brandName',
|
|
309
|
+
ellipsis: true
|
|
310
|
+
}, {
|
|
311
|
+
title: 'Store',
|
|
312
|
+
dataIndex: 'storeName',
|
|
313
|
+
key: 'storeName',
|
|
314
|
+
ellipsis: true
|
|
315
|
+
}]; // 请求类目
|
|
316
|
+
|
|
317
|
+
var queryCategory = function queryCategory() {
|
|
318
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
319
|
+
var res;
|
|
320
|
+
return __generator(this, function (_a) {
|
|
321
|
+
switch (_a.label) {
|
|
322
|
+
case 0:
|
|
323
|
+
return [4
|
|
324
|
+
/*yield*/
|
|
325
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/offercatgs/list", {}, 'GET')];
|
|
326
|
+
|
|
327
|
+
case 1:
|
|
328
|
+
res = _a.sent();
|
|
329
|
+
setTreeData((0, _businessUtil.listToTree)(res));
|
|
330
|
+
return [2
|
|
331
|
+
/*return*/
|
|
332
|
+
];
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
var loadGoods = function loadGoods() {
|
|
339
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
340
|
+
var params, res;
|
|
341
|
+
return __generator(this, function (_a) {
|
|
342
|
+
switch (_a.label) {
|
|
343
|
+
case 0:
|
|
344
|
+
setLoading(true);
|
|
345
|
+
params = {
|
|
346
|
+
catgIds: catgIds.join(','),
|
|
347
|
+
q: productName,
|
|
348
|
+
state: 'A',
|
|
349
|
+
pageSize: paginationParams.pageSize,
|
|
350
|
+
pageIndex: paginationParams.current
|
|
351
|
+
};
|
|
352
|
+
return [4
|
|
353
|
+
/*yield*/
|
|
354
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offers/es", params, 'POST')];
|
|
355
|
+
|
|
356
|
+
case 1:
|
|
357
|
+
res = _a.sent();
|
|
358
|
+
setDataSource(res.list || []);
|
|
359
|
+
paginationParams.total = res.total;
|
|
360
|
+
setPaginationParams(__assign({}, paginationParams));
|
|
361
|
+
setLoading(false);
|
|
362
|
+
return [2
|
|
363
|
+
/*return*/
|
|
364
|
+
];
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
var delSelectedItem = function delSelectedItem(index) {
|
|
371
|
+
var rowKeys = JSON.parse(JSON.stringify(selectedRowKeys));
|
|
372
|
+
rowKeys.splice(index, 1);
|
|
373
|
+
setSelectedRowKeys(rowKeys);
|
|
374
|
+
var rows = JSON.parse(JSON.stringify(selectedList));
|
|
375
|
+
rows.splice(index, 1);
|
|
376
|
+
setSelectedList(rows);
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
(0, _react.useEffect)(function () {
|
|
380
|
+
queryCategory();
|
|
381
|
+
}, []);
|
|
382
|
+
(0, _react.useEffect)(function () {
|
|
383
|
+
onChange({
|
|
384
|
+
value: selectedList.map(function (m) {
|
|
385
|
+
return m.offerId;
|
|
386
|
+
})
|
|
387
|
+
}, selectedList.length);
|
|
388
|
+
}, [selectedList]);
|
|
389
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
390
|
+
className: "mProductList"
|
|
391
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
392
|
+
className: "proModalWrap"
|
|
393
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
394
|
+
className: "mProductListContent"
|
|
395
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
396
|
+
className: "leftCot"
|
|
397
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
398
|
+
layout: "vertical"
|
|
399
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
400
|
+
label: "Category"
|
|
401
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect, {
|
|
402
|
+
dropdownStyle: {
|
|
403
|
+
maxHeight: 400,
|
|
404
|
+
overflow: 'auto'
|
|
405
|
+
},
|
|
406
|
+
maxTagCount: 2,
|
|
407
|
+
maxTagTextLength: 5,
|
|
408
|
+
multiple: true,
|
|
409
|
+
onChange: function onChange(v) {
|
|
410
|
+
return setCatgIds(v);
|
|
411
|
+
},
|
|
412
|
+
placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
|
|
413
|
+
size: "small",
|
|
414
|
+
treeData: treeData,
|
|
415
|
+
treeDefaultExpandAll: true,
|
|
416
|
+
value: catgIds
|
|
417
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
418
|
+
label: "Offer Name"
|
|
419
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
420
|
+
onChange: function onChange(e) {
|
|
421
|
+
setProductName(e.currentTarget.value);
|
|
422
|
+
},
|
|
423
|
+
placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
|
|
424
|
+
size: "small",
|
|
425
|
+
value: productName
|
|
426
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
427
|
+
className: "buttonStyle"
|
|
428
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
429
|
+
onClick: function onClick() {
|
|
430
|
+
paginationParams.current = 1;
|
|
431
|
+
loadGoods();
|
|
432
|
+
},
|
|
433
|
+
size: "small",
|
|
434
|
+
style: {
|
|
435
|
+
marginRight: 8
|
|
436
|
+
},
|
|
437
|
+
type: "primary"
|
|
438
|
+
}, (0, _locale.i18n)('SEARCH')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
439
|
+
onClick: function onClick() {
|
|
440
|
+
reset();
|
|
441
|
+
},
|
|
442
|
+
size: "small"
|
|
443
|
+
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
444
|
+
className: "rightCot"
|
|
445
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
446
|
+
columns: columns,
|
|
447
|
+
dataSource: dataSource,
|
|
448
|
+
loading: loading,
|
|
449
|
+
pagination: __assign(__assign({}, paginationParams), {
|
|
450
|
+
onChange: function onChange(page) {
|
|
451
|
+
paginationParams.current = page;
|
|
452
|
+
loadGoods();
|
|
453
|
+
}
|
|
454
|
+
}),
|
|
455
|
+
rowKey: "offerId",
|
|
456
|
+
rowSelection: rowSelection,
|
|
457
|
+
scroll: {
|
|
458
|
+
y: 300
|
|
459
|
+
}
|
|
460
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
461
|
+
className: "selectedCot"
|
|
462
|
+
}, selectedList.map(function (item, index) {
|
|
463
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
464
|
+
key: index,
|
|
465
|
+
className: "selectedItem"
|
|
466
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
467
|
+
alt: "",
|
|
468
|
+
className: "selectedItemImg",
|
|
469
|
+
src: item.cardImgUrl,
|
|
470
|
+
title: item.offerName
|
|
471
|
+
}), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
472
|
+
className: "selectedItemClose",
|
|
473
|
+
color: "#000",
|
|
474
|
+
onClick: function onClick() {
|
|
475
|
+
return delSelectedItem(index);
|
|
476
|
+
},
|
|
477
|
+
size: 12,
|
|
478
|
+
type: "icon-close"
|
|
479
|
+
}));
|
|
480
|
+
}))))));
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
var _default = ProductList;
|
|
484
|
+
exports["default"] = _default;
|