@fonixtree/magic-design 2.0.97 → 2.0.99
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/.DS_Store +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +19 -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-layout1.png +0 -0
- package/es/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
- package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
- package/es/common/Collapse/index.js +10 -8
- package/es/common/FontStyles/index.less +3 -1
- package/es/common/MonpayCountDown/index.js +160 -0
- package/es/common/PopUpModal/index.less +79 -0
- package/es/common/PopUpModal1/style.less +56 -0
- package/es/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
- package/es/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
- package/es/common/ProductFilterModal/index.less +72 -0
- package/es/common/RatingText/index.js +105 -0
- package/es/common/RatingText/index.less +12 -0
- package/es/common/Tag/index.less +16 -0
- package/es/common/index.js +24 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.less +8 -4
- package/es/composite-comp/bol/components/Banner/pc/index.js +2 -1
- package/es/composite-comp/bol/components/Banner/pc/index.less +9 -3
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
- package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
- package/es/composite-comp/common/components/MonpayProductItem/index.js +283 -0
- package/es/composite-comp/common/components/MonpayProductItem/index.less +211 -0
- package/es/composite-comp/common/components/ProductItem/index.js +5 -11
- package/es/composite-comp/common/components/ProductItem/index.less +10 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
- package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
- package/es/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
- package/es/composite-comp/monpay/components/Bundle/index.js +86 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
- package/es/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
- package/es/composite-comp/monpay/components/InterestProducts/index.js +86 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
- package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
- package/es/composite-comp/monpay/components/MerchantSales/index.js +86 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +389 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +822 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +817 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +435 -0
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
- package/es/constants/component-types.js +25 -3
- package/es/constants/index.js +42 -3
- package/es/constants/layout.js +43 -4
- package/es/core/Designer/ConfigPanel/index.js +1 -1
- package/es/core/Designer/index.js +5 -2
- package/es/locale/en/en.json +21 -0
- package/es/locale/es/es.json +21 -0
- package/es/locale/id/id.json +21 -0
- package/es/utils/dateUtil.js +13 -0
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +19 -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-layout1.png +0 -0
- package/lib/assets/images/layout-icon/banner-slide-layout1.svg +6 -0
- package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
- package/lib/common/Collapse/index.js +10 -8
- package/lib/common/FontStyles/index.less +3 -1
- package/lib/common/MonpayCountDown/index.js +160 -0
- package/lib/common/PopUpModal/index.less +79 -0
- package/lib/common/PopUpModal1/style.less +56 -0
- package/lib/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
- package/lib/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
- package/lib/common/ProductFilterModal/index.less +72 -0
- package/lib/common/RatingText/index.js +105 -0
- package/lib/common/RatingText/index.less +12 -0
- package/lib/common/Tag/index.less +16 -0
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +8 -4
- package/lib/composite-comp/bol/components/Banner/pc/index.js +2 -1
- package/lib/composite-comp/bol/components/Banner/pc/index.less +9 -3
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -11
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +1 -1
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +283 -0
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +211 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +5 -11
- package/lib/composite-comp/common/components/ProductItem/index.less +10 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/{bol/config-panels/NewsletterConfig → common/config-panels}/InputField/index.js +18 -10
- package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +0 -4
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +3 -3
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +14 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +98 -33
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +11 -1
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +78 -6
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +1 -0
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +5 -9
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +2 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +36 -6
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.less +7 -0
- package/lib/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
- package/lib/composite-comp/monpay/components/Bundle/index.js +86 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
- package/lib/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
- package/lib/composite-comp/monpay/components/InterestProducts/index.js +86 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
- package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
- package/lib/composite-comp/monpay/components/MerchantSales/index.js +86 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.js +212 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/MonpayCountDown/index.less +21 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +322 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +90 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +462 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +104 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +582 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +389 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +90 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +822 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +81 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +817 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +177 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +171 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +141 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.js +149 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.js +93 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigTitle/index.less +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/index.js +150 -0
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +435 -0
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +258 -0
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.less +15 -0
- package/lib/constants/component-types.js +25 -3
- package/lib/constants/index.js +42 -3
- package/lib/constants/layout.js +43 -4
- package/lib/core/Designer/ConfigPanel/index.js +1 -1
- package/lib/core/Designer/index.js +5 -2
- package/lib/locale/en/en.json +21 -0
- package/lib/locale/es/es.json +21 -0
- package/lib/locale/id/id.json +21 -0
- package/lib/utils/dateUtil.js +13 -0
- package/package.json +1 -1
|
@@ -19,6 +19,10 @@ var _common = require("../../../../../common");
|
|
|
19
19
|
|
|
20
20
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
21
21
|
|
|
22
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
23
|
+
|
|
24
|
+
var _Text = require("../../../../../meta-comp/components/Text");
|
|
25
|
+
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
27
|
|
|
24
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -47,6 +51,22 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
47
51
|
};
|
|
48
52
|
}();
|
|
49
53
|
|
|
54
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
|
|
50
70
|
var SearchPc =
|
|
51
71
|
/** @class */
|
|
52
72
|
function (_super) {
|
|
@@ -56,17 +76,43 @@ function (_super) {
|
|
|
56
76
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
77
|
|
|
58
78
|
_this.state = {
|
|
59
|
-
|
|
60
|
-
|
|
79
|
+
inputVal: '',
|
|
80
|
+
editing: false
|
|
61
81
|
};
|
|
62
82
|
|
|
63
83
|
_this.onChangeVal = function (val) {
|
|
64
|
-
// console.log('--onChangeVal', val);
|
|
65
84
|
_this.setState({
|
|
66
|
-
inputVal: val
|
|
85
|
+
inputVal: val,
|
|
86
|
+
editing: true
|
|
67
87
|
});
|
|
68
88
|
};
|
|
69
89
|
|
|
90
|
+
_this.onFocus = function () {
|
|
91
|
+
var _a;
|
|
92
|
+
|
|
93
|
+
var inputVal = _this.state.inputVal;
|
|
94
|
+
|
|
95
|
+
if (inputVal === ((_a = _this.props.data.content.keyword) === null || _a === void 0 ? void 0 : _a.placeholder)) {
|
|
96
|
+
_this.setState({
|
|
97
|
+
inputVal: '',
|
|
98
|
+
editing: true
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
_this.onBlur = function () {
|
|
104
|
+
var _a, _b, _c;
|
|
105
|
+
|
|
106
|
+
var inputVal = _this.state.inputVal;
|
|
107
|
+
|
|
108
|
+
if (!inputVal) {
|
|
109
|
+
_this.setState({
|
|
110
|
+
inputVal: (_c = (_b = (_a = _this.props.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.keyword) === null || _c === void 0 ? void 0 : _c.placeholder,
|
|
111
|
+
editing: false
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
70
116
|
_this.searchProduct = function () {
|
|
71
117
|
(0, _coreUtil.clickUrl)("/product/list?q=" + _this.state.inputVal);
|
|
72
118
|
};
|
|
@@ -80,13 +126,35 @@ function (_super) {
|
|
|
80
126
|
return _this;
|
|
81
127
|
}
|
|
82
128
|
|
|
83
|
-
SearchPc.prototype.componentDidMount = function () {
|
|
129
|
+
SearchPc.prototype.componentDidMount = function () {
|
|
130
|
+
var _a, _b, _c;
|
|
131
|
+
|
|
132
|
+
this.setState({
|
|
133
|
+
inputVal: (_c = (_b = (_a = this.props.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.keyword) === null || _c === void 0 ? void 0 : _c.placeholder
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
SearchPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
138
|
+
var _a, _b, _c;
|
|
139
|
+
|
|
140
|
+
if (!this.state.editing) {
|
|
141
|
+
this.setState({
|
|
142
|
+
inputVal: (_c = (_b = (_a = nextProps.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.keyword) === null || _c === void 0 ? void 0 : _c.placeholder
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
};
|
|
84
146
|
|
|
85
147
|
SearchPc.prototype.render = function () {
|
|
86
148
|
var _this = this;
|
|
87
149
|
|
|
150
|
+
var _a, _b, _c;
|
|
151
|
+
|
|
88
152
|
var data = this.props.data;
|
|
89
153
|
var inputVal = this.state.inputVal;
|
|
154
|
+
|
|
155
|
+
var style = __assign({}, (0, _Text.contentStyle)((_a = data.content.keyword) === null || _a === void 0 ? void 0 : _a.content));
|
|
156
|
+
|
|
157
|
+
Reflect.deleteProperty(style, 'width');
|
|
90
158
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
159
|
className: "pc-search-bar"
|
|
92
160
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -94,15 +162,19 @@ function (_super) {
|
|
|
94
162
|
}, data.content && data.content.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
163
|
className: "search-input-wrap",
|
|
96
164
|
style: {
|
|
97
|
-
borderColor: data.content.box.color.pc
|
|
165
|
+
borderColor: data.content.box.color.pc,
|
|
166
|
+
backgroundColor: (_c = (_b = data.content.box) === null || _b === void 0 ? void 0 : _b.backgroundColor) === null || _c === void 0 ? void 0 : _c.pc
|
|
98
167
|
}
|
|
99
168
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
100
169
|
className: "search-input",
|
|
170
|
+
onBlur: this.onBlur,
|
|
101
171
|
onChange: function onChange(e) {
|
|
102
172
|
return _this.onChangeVal(e.target.value);
|
|
103
173
|
},
|
|
174
|
+
onFocus: this.onFocus,
|
|
104
175
|
onKeyUp: this.keyUp,
|
|
105
176
|
placeholder: (0, _locale.i18n)('PLEASE_INPUT_KEYWORDS'),
|
|
177
|
+
style: (0, _commonUtil.pxToRem)(style),
|
|
106
178
|
value: inputVal
|
|
107
179
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
180
|
className: "search-icon",
|
|
@@ -13,8 +13,6 @@ var _antd = require("antd");
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../../../common");
|
|
15
15
|
|
|
16
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
-
|
|
18
16
|
var _star = _interopRequireDefault(require("../imgs/star.svg"));
|
|
19
17
|
|
|
20
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
@@ -241,7 +239,10 @@ function (_super) {
|
|
|
241
239
|
|
|
242
240
|
_this.searchProduct = function () {
|
|
243
241
|
var storeId = window.magicDesign.storeId;
|
|
244
|
-
(0,
|
|
242
|
+
(0, _commonUtil.navigateTo)('/product/list', {
|
|
243
|
+
q: _this.state.inputVal,
|
|
244
|
+
storeId: storeId
|
|
245
|
+
}); // clickUrl(`/product/list?q=${this.state.inputVal}&storeId=${storeId}`);
|
|
245
246
|
};
|
|
246
247
|
|
|
247
248
|
_this.clickCollect = function () {
|
|
@@ -71,7 +71,7 @@ function (_super) {
|
|
|
71
71
|
AComponent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
-
var _a, _b;
|
|
74
|
+
var _a, _b, _c;
|
|
75
75
|
|
|
76
76
|
var panelProps = this.props.panelProps;
|
|
77
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -131,26 +131,22 @@ function (_super) {
|
|
|
131
131
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
132
132
|
checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
|
|
133
133
|
onChange: function onChange(v) {
|
|
134
|
-
panelProps.salesProgress =
|
|
135
|
-
open: v
|
|
136
|
-
};
|
|
134
|
+
panelProps.salesProgress.open = v;
|
|
137
135
|
|
|
138
136
|
_this.reRender();
|
|
139
137
|
}
|
|
140
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
})), ((_b = panelProps.salesProgress) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
139
|
className: "content"
|
|
142
140
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
143
141
|
className: "name"
|
|
144
142
|
}, (0, _locale.i18n)('PROGRESS_BAR_COLOR')), /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
145
143
|
colorType: "rgba",
|
|
146
144
|
onChange: function onChange(v) {
|
|
147
|
-
panelProps.salesProgress =
|
|
148
|
-
color: v
|
|
149
|
-
};
|
|
145
|
+
panelProps.salesProgress.color = v;
|
|
150
146
|
|
|
151
147
|
_this.reRender();
|
|
152
148
|
},
|
|
153
|
-
value: (
|
|
149
|
+
value: (_c = panelProps.salesProgress) === null || _c === void 0 ? void 0 : _c.color
|
|
154
150
|
}))));
|
|
155
151
|
};
|
|
156
152
|
|
package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js
CHANGED
|
@@ -19,6 +19,10 @@ var _coreUtil = require("../../../../../utils/coreUtil");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _InputField = _interopRequireDefault(require("../../../../common/config-panels/InputField"));
|
|
23
|
+
|
|
24
|
+
require("./index.less");
|
|
25
|
+
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
27
|
|
|
24
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); }
|
|
@@ -71,6 +75,8 @@ function (_super) {
|
|
|
71
75
|
SearchBarConfigContent.prototype.render = function () {
|
|
72
76
|
var _this = this;
|
|
73
77
|
|
|
78
|
+
var _a, _b, _c, _d;
|
|
79
|
+
|
|
74
80
|
var panelProps = this.props.panelProps;
|
|
75
81
|
var source = [{
|
|
76
82
|
key: 'search1',
|
|
@@ -83,10 +89,9 @@ function (_super) {
|
|
|
83
89
|
}, {
|
|
84
90
|
key: 'search2',
|
|
85
91
|
name: (0, _locale.i18n)('SEARCH_BOX'),
|
|
86
|
-
value: /*#__PURE__*/_react["default"].createElement(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
},
|
|
92
|
+
value: /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
className: "search_bar_config_box"
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
90
95
|
title: (0, _locale.i18n)('BOX_COLOR')
|
|
91
96
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
92
97
|
colorType: "rgba",
|
|
@@ -102,12 +107,37 @@ function (_super) {
|
|
|
102
107
|
value: (0, _coreUtil.isPc)() ? panelProps.box.color.pc : panelProps.box.color.mobile
|
|
103
108
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
104
109
|
style: {
|
|
105
|
-
marginTop:
|
|
110
|
+
marginTop: 16
|
|
106
111
|
},
|
|
107
112
|
title: (0, _locale.i18n)('BOX_BACKGROUND')
|
|
108
|
-
}
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
114
|
+
colorType: "rgba",
|
|
115
|
+
onChange: function onChange(v) {
|
|
116
|
+
if ((0, _coreUtil.isPc)()) {
|
|
117
|
+
panelProps.box.backgroundColor.pc = v;
|
|
118
|
+
} else {
|
|
119
|
+
panelProps.box.backgroundColor.mobile = v;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
_this.selfRender();
|
|
123
|
+
},
|
|
124
|
+
value: (0, _coreUtil.isPc)() ? (_b = (_a = panelProps.box) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.pc : (_d = (_c = panelProps.box) === null || _c === void 0 ? void 0 : _c.backgroundColor) === null || _d === void 0 ? void 0 : _d.mobile
|
|
125
|
+
}))),
|
|
109
126
|
metaOption: panelProps.box,
|
|
110
127
|
toggleType: 'switch'
|
|
128
|
+
}, {
|
|
129
|
+
key: panelProps.keyword.id,
|
|
130
|
+
name: (0, _locale.i18n)('SEARCH_BAR_KEYWORD'),
|
|
131
|
+
toggleType: 'switch',
|
|
132
|
+
value: /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
style: {
|
|
134
|
+
marginTop: 10
|
|
135
|
+
}
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement(_InputField["default"], {
|
|
137
|
+
data: panelProps.keyword,
|
|
138
|
+
inputLabel: "Input Keyword"
|
|
139
|
+
})),
|
|
140
|
+
metaOption: panelProps.keyword
|
|
111
141
|
}, {
|
|
112
142
|
key: panelProps.icon.id,
|
|
113
143
|
name: (0, _locale.i18n)('ICON'),
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var _headerImage = _interopRequireDefault(require("./mobile/img/headerImage.jpg"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
15
|
+
var contentId = (0, _uuid.v4)();
|
|
16
|
+
return {
|
|
17
|
+
id: (0, _uuid.v4)(),
|
|
18
|
+
type: 'BUNDLE',
|
|
19
|
+
title: {
|
|
20
|
+
headerImage: {
|
|
21
|
+
id: contentId,
|
|
22
|
+
open: true,
|
|
23
|
+
type: 'IMAGE',
|
|
24
|
+
content: {
|
|
25
|
+
h5Name: '',
|
|
26
|
+
pcName: '',
|
|
27
|
+
h5ImgSrc: _headerImage["default"],
|
|
28
|
+
pcImgSrc: '',
|
|
29
|
+
clickUrl: ''
|
|
30
|
+
},
|
|
31
|
+
hover: {
|
|
32
|
+
open: false,
|
|
33
|
+
backgroundType: 'enlarge',
|
|
34
|
+
magnification: 1.5,
|
|
35
|
+
pcImgHoverUrl: '',
|
|
36
|
+
h5ImgHoverUrl: ''
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
content: {
|
|
41
|
+
id: contentId,
|
|
42
|
+
sourceType: '1',
|
|
43
|
+
maxProdNum: 1
|
|
44
|
+
},
|
|
45
|
+
spacing: {
|
|
46
|
+
pc: {
|
|
47
|
+
paddingTop: 0,
|
|
48
|
+
paddingBottom: 0,
|
|
49
|
+
paddingLeft: 0,
|
|
50
|
+
paddingRight: 0,
|
|
51
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
52
|
+
},
|
|
53
|
+
mobile: {
|
|
54
|
+
paddingTop: 0,
|
|
55
|
+
paddingBottom: 0,
|
|
56
|
+
paddingLeft: 0,
|
|
57
|
+
paddingRight: 0,
|
|
58
|
+
marginBottom: window.magicDesign.compSpacing
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
customize: {
|
|
62
|
+
layout: 'layout1',
|
|
63
|
+
align: 'left',
|
|
64
|
+
pcRowNum: 6,
|
|
65
|
+
pcMaxRowNum: 6,
|
|
66
|
+
pcMinRowNum: 5
|
|
67
|
+
},
|
|
68
|
+
background: {
|
|
69
|
+
opacity: 100,
|
|
70
|
+
color: '#fff',
|
|
71
|
+
image: '',
|
|
72
|
+
bgType: 'color'
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
|
+
|
|
12
|
+
var _defaultJSON = require("./defaultJSON");
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
+
__proto__: []
|
|
30
|
+
} instanceof Array && function (d, b) {
|
|
31
|
+
d.__proto__ = b;
|
|
32
|
+
} || function (d, b) {
|
|
33
|
+
for (var p in b) {
|
|
34
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return _extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
_extendStatics(d, b);
|
|
43
|
+
|
|
44
|
+
function __() {
|
|
45
|
+
this.constructor = d;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
53
|
+
var c = arguments.length,
|
|
54
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
55
|
+
d;
|
|
56
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
57
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
58
|
+
}
|
|
59
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var FlashDeal =
|
|
63
|
+
/** @class */
|
|
64
|
+
function (_super) {
|
|
65
|
+
__extends(FlashDeal, _super);
|
|
66
|
+
|
|
67
|
+
function FlashDeal() {
|
|
68
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
FlashDeal.prototype.render = function () {
|
|
72
|
+
var nodeData = this.props.nodeData;
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
74
|
+
panelProps: nodeData
|
|
75
|
+
}));
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
FlashDeal.defaultProps = {};
|
|
79
|
+
FlashDeal.type = 'BUNDLE';
|
|
80
|
+
FlashDeal.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
81
|
+
FlashDeal = __decorate([_compositeDecorator["default"]], FlashDeal);
|
|
82
|
+
return FlashDeal;
|
|
83
|
+
}(_react.Component);
|
|
84
|
+
|
|
85
|
+
var _default = FlashDeal;
|
|
86
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.BundleItemWrap {
|
|
2
|
+
background-color: #FFF;
|
|
3
|
+
border-radius: 0.16rem;
|
|
4
|
+
border: 0.02rem solid #E4E4E4;
|
|
5
|
+
margin-bottom: 0.48rem;
|
|
6
|
+
transition: 0.2s all linear;
|
|
7
|
+
}
|
|
8
|
+
.BundleItemWrap .header {
|
|
9
|
+
height: 0.92rem;
|
|
10
|
+
padding: 0.16rem 0.24rem;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
font-size: 0.3rem;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
line-height: 0.6rem;
|
|
17
|
+
border-bottom: 0.02rem solid #E4E4E4;
|
|
18
|
+
}
|
|
19
|
+
.BundleItemWrap .header .openIcon {
|
|
20
|
+
transition: 0.2s all linear;
|
|
21
|
+
}
|
|
22
|
+
.BundleItemWrap .prodList {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
overflow: scroll;
|
|
26
|
+
}
|
|
27
|
+
.BundleItemWrap .prodList img {
|
|
28
|
+
height: 2.08rem;
|
|
29
|
+
width: 1.9rem;
|
|
30
|
+
}
|
|
31
|
+
.BundleItemWrap .bottomWrap {
|
|
32
|
+
border-top: 0.02rem solid #E4E4E4;
|
|
33
|
+
background-color: #F6F6F6;
|
|
34
|
+
height: 1.16rem;
|
|
35
|
+
padding: 0.16rem 0.3rem;
|
|
36
|
+
border-radius: 0 0 0.16rem 0.16rem;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
}
|
|
41
|
+
.BundleItemWrap .bottomWrap .totalWrap {
|
|
42
|
+
display: flex;
|
|
43
|
+
}
|
|
44
|
+
.BundleItemWrap .bottomWrap .totalWrap .total {
|
|
45
|
+
line-height: 0.48rem;
|
|
46
|
+
}
|
|
47
|
+
.BundleItemWrap .bottomWrap .totalWrap .priceWrap {
|
|
48
|
+
margin-left: 0.08rem;
|
|
49
|
+
}
|
|
50
|
+
.BundleItemWrap .bottomWrap .totalWrap .priceWrap .salesPrice {
|
|
51
|
+
font-size: 0.32rem;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
line-height: 0.48rem;
|
|
54
|
+
color: #000;
|
|
55
|
+
}
|
|
56
|
+
.BundleItemWrap .bottomWrap .totalWrap .priceWrap .marketPrice {
|
|
57
|
+
font-size: 0.28rem;
|
|
58
|
+
font-weight: 400;
|
|
59
|
+
line-height: 0.34rem;
|
|
60
|
+
color: #545454;
|
|
61
|
+
text-decoration: line-through;
|
|
62
|
+
}
|
|
63
|
+
.BundleItemWrap .bottomWrap .btnWrap .btnBuy {
|
|
64
|
+
height: 0.78rem;
|
|
65
|
+
background-color: #FF8650;
|
|
66
|
+
padding: 0.16rem 0.4rem;
|
|
67
|
+
border-radius: 0.16rem;
|
|
68
|
+
color: #fff;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
font-size: 0.28rem;
|
|
71
|
+
}
|
|
72
|
+
.BundleItemWrap.itemOpen .header .openIcon {
|
|
73
|
+
transform: rotate(180deg);
|
|
74
|
+
}
|
|
75
|
+
.BundleItemWrap.itemOpen .prodList {
|
|
76
|
+
height: auto;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
}
|
|
79
|
+
.BundleItemWrap.itemOpen .bottomWrap {
|
|
80
|
+
height: 2.22rem;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: unset;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
}
|
|
86
|
+
.BundleItemWrap.itemOpen .bottomWrap .totalWrap {
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
}
|
|
89
|
+
.BundleItemWrap.itemOpen .bottomWrap .totalWrap .priceWrap {
|
|
90
|
+
margin-left: 0;
|
|
91
|
+
text-align: right;
|
|
92
|
+
}
|
|
93
|
+
.BundleItemWrap.itemOpen .bottomWrap .btnWrap {
|
|
94
|
+
margin-top: 0.24rem;
|
|
95
|
+
}
|
|
96
|
+
.BundleItemWrap.itemOpen .bottomWrap .btnWrap .btnBuy {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
height: 0.78rem;
|
|
101
|
+
width: 100%;
|
|
102
|
+
background-color: #FF8650;
|
|
103
|
+
border-radius: 0.16rem;
|
|
104
|
+
color: #fff;
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
font-size: 0.28rem;
|
|
107
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.bundleItemDetailWrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 2.08rem;
|
|
4
|
+
align-items: center;
|
|
5
|
+
border-bottom: 0.02rem solid #E4E4E4;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
.bundleItemDetailWrap:last-child {
|
|
9
|
+
border-bottom: none;
|
|
10
|
+
}
|
|
11
|
+
.bundleItemDetailWrap .checkWrap {
|
|
12
|
+
width: 0.7rem;
|
|
13
|
+
height: 1.76rem;
|
|
14
|
+
border-right: 0.02rem solid #E4E4E4;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
flex: 0 0 auto;
|
|
19
|
+
}
|
|
20
|
+
.bundleItemDetailWrap .imgWrap {
|
|
21
|
+
margin-left: 0.24rem;
|
|
22
|
+
width: 1.92rem;
|
|
23
|
+
height: 1.92rem;
|
|
24
|
+
flex: 0 0 auto;
|
|
25
|
+
}
|
|
26
|
+
.bundleItemDetailWrap .prodInfoWrap {
|
|
27
|
+
width: 3.4rem;
|
|
28
|
+
padding: 0.16rem;
|
|
29
|
+
flex: 1 0 auto;
|
|
30
|
+
}
|
|
31
|
+
.bundleItemDetailWrap .prodInfoWrap .offerName {
|
|
32
|
+
font-size: 0.28rem;
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
line-height: 0.44rem;
|
|
35
|
+
color: #000;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
display: -webkit-box;
|
|
39
|
+
-webkit-box-orient: vertical;
|
|
40
|
+
-webkit-line-clamp: 2;
|
|
41
|
+
max-height: 0.92rem;
|
|
42
|
+
white-space: wrap;
|
|
43
|
+
}
|
|
44
|
+
.bundleItemDetailWrap .prodInfoWrap .price {
|
|
45
|
+
margin-top: 0.12rem;
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
font-size: 0.32rem;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
line-height: 0.48rem;
|
|
51
|
+
color: #000;
|
|
52
|
+
}
|
|
53
|
+
.itemWrap {
|
|
54
|
+
display: flex;
|
|
55
|
+
}
|
|
56
|
+
.itemWrap .iconPlus {
|
|
57
|
+
padding: 0.02rem;
|
|
58
|
+
}
|
|
59
|
+
.itemWrap:last-child .iconPlus {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
Binary file
|