@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
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
.monpay-flash-deal-pc {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
padding: 16px;
|
|
5
|
+
|
|
6
|
+
.flash-deal-title {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
|
|
11
|
+
.left {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
.icon {
|
|
16
|
+
height: 18px;
|
|
17
|
+
margin-right: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.title {
|
|
21
|
+
font-family: 'Montserrat';
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
line-height: 18px;
|
|
26
|
+
color: #2C2C2C;
|
|
27
|
+
margin-right: 10px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sub-title {
|
|
31
|
+
font-family: 'Montserrat';
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
font-size: 10px;
|
|
35
|
+
line-height: 18px;
|
|
36
|
+
color: #2C2C2C;
|
|
37
|
+
margin-right: 6px;
|
|
38
|
+
align-self: end;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.right {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
|
|
46
|
+
.text {
|
|
47
|
+
font-family: 'Montserrat';
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
line-height: 15px;
|
|
52
|
+
color: #0038A8;
|
|
53
|
+
margin-right: 5px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.btn {
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.flash-deal-time {
|
|
63
|
+
margin-top: 16px;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
overflow-x: auto;
|
|
66
|
+
|
|
67
|
+
.item {
|
|
68
|
+
margin-right: 10px;
|
|
69
|
+
border: 1px solid #E4E4E4;
|
|
70
|
+
padding: 6px 12px;
|
|
71
|
+
border-radius: 8px;
|
|
72
|
+
display: inline-block;
|
|
73
|
+
width: auto;
|
|
74
|
+
|
|
75
|
+
.time {
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
color: #000;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.status {
|
|
82
|
+
font-size: 10px;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
color: #545454;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.flash-deal-content {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
flex-direction: row;
|
|
94
|
+
|
|
95
|
+
.arrow-icon {
|
|
96
|
+
display: block;
|
|
97
|
+
width: 36px;
|
|
98
|
+
height: 36px;
|
|
99
|
+
line-height: 42px;
|
|
100
|
+
text-align: center;
|
|
101
|
+
background: #FFFFFF;
|
|
102
|
+
box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
|
|
103
|
+
border-radius: 100px;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
|
|
106
|
+
&.left {
|
|
107
|
+
margin-right: 30px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.right {
|
|
111
|
+
margin-left: 30px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.flash-deal-list {
|
|
117
|
+
margin-top: 16px;
|
|
118
|
+
overflow-x: auto;
|
|
119
|
+
overflow-y: hidden;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: flex-start;
|
|
123
|
+
justify-content: flex-start;
|
|
124
|
+
position: relative;
|
|
125
|
+
flex: 1;
|
|
126
|
+
|
|
127
|
+
.loading-wrap {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
padding: 30px;
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 0;
|
|
134
|
+
bottom: 0;
|
|
135
|
+
left: 0;
|
|
136
|
+
right: 0;
|
|
137
|
+
margin: auto;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// 秒杀特有样式
|
|
141
|
+
.m-product-item-wrap {
|
|
142
|
+
width: 142px;
|
|
143
|
+
margin-right: 24px;
|
|
144
|
+
|
|
145
|
+
.product-name {
|
|
146
|
+
height: 36px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var _headerImage = _interopRequireDefault(require("./mobile/imgs/headerImage.jpg"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
|
|
15
|
+
var groupId = (0, _uuid.v4)();
|
|
16
|
+
var imageId = (0, _uuid.v4)();
|
|
17
|
+
var groupNameId = (0, _uuid.v4)();
|
|
18
|
+
return {
|
|
19
|
+
id: groupId,
|
|
20
|
+
parentId: parentId,
|
|
21
|
+
image: {
|
|
22
|
+
parentId: groupId,
|
|
23
|
+
id: imageId,
|
|
24
|
+
open: true,
|
|
25
|
+
type: 'IMAGE',
|
|
26
|
+
content: {
|
|
27
|
+
h5Name: '',
|
|
28
|
+
pcName: '',
|
|
29
|
+
h5ImgSrc: logo,
|
|
30
|
+
pcImgSrc: logo,
|
|
31
|
+
clickUrl: ''
|
|
32
|
+
},
|
|
33
|
+
hover: {
|
|
34
|
+
open: false,
|
|
35
|
+
backgroundType: 'enlarge',
|
|
36
|
+
magnification: 1.5,
|
|
37
|
+
pcImgHoverUrl: '',
|
|
38
|
+
h5ImgHoverUrl: ''
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
groupName: {
|
|
42
|
+
parentId: groupId,
|
|
43
|
+
id: groupNameId,
|
|
44
|
+
open: true,
|
|
45
|
+
type: 'TEXT',
|
|
46
|
+
specialContent: [],
|
|
47
|
+
text: text,
|
|
48
|
+
content: {
|
|
49
|
+
sizeType: 'Customize font styles',
|
|
50
|
+
fontFamily: 'Open Sans',
|
|
51
|
+
fontWeight: 400,
|
|
52
|
+
fontSize: 14,
|
|
53
|
+
color: '#8493AF'
|
|
54
|
+
},
|
|
55
|
+
underline: {
|
|
56
|
+
open: false,
|
|
57
|
+
textDecorationColor: '',
|
|
58
|
+
textDecorationStyle: 'solid'
|
|
59
|
+
},
|
|
60
|
+
vertical: {}
|
|
61
|
+
},
|
|
62
|
+
seeAll: {
|
|
63
|
+
parentId: groupId,
|
|
64
|
+
id: (0, _uuid.v4)(),
|
|
65
|
+
open: true,
|
|
66
|
+
type: 'BUTTON',
|
|
67
|
+
text: 'See All',
|
|
68
|
+
content: {
|
|
69
|
+
url: '',
|
|
70
|
+
backgroundColor: '#fff'
|
|
71
|
+
},
|
|
72
|
+
buttonText: {
|
|
73
|
+
sizeType: 'Customize font styles',
|
|
74
|
+
fontFamily: 'Open Sans',
|
|
75
|
+
fontWeight: 400,
|
|
76
|
+
fontSize: 12,
|
|
77
|
+
fontStyle: 'normal',
|
|
78
|
+
color: '#232F46'
|
|
79
|
+
},
|
|
80
|
+
buttonBorder: {
|
|
81
|
+
open: true,
|
|
82
|
+
borderColor: '',
|
|
83
|
+
borderRadius: 0
|
|
84
|
+
},
|
|
85
|
+
spacing: {
|
|
86
|
+
pc: {
|
|
87
|
+
paddingTop: 0,
|
|
88
|
+
paddingBottom: 0,
|
|
89
|
+
paddingLeft: 0,
|
|
90
|
+
paddingRight: 0
|
|
91
|
+
},
|
|
92
|
+
mobile: {
|
|
93
|
+
paddingTop: 0,
|
|
94
|
+
paddingBottom: 0,
|
|
95
|
+
paddingLeft: 0,
|
|
96
|
+
paddingRight: 0
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
buttonIcon: {
|
|
100
|
+
iconUrl: '/get/resource/platform/conf/20220923/picture/Frame24271573200432656932864.png',
|
|
101
|
+
layout: 'left'
|
|
102
|
+
},
|
|
103
|
+
hover: null
|
|
104
|
+
},
|
|
105
|
+
sourceType: 'select',
|
|
106
|
+
prodIds: '',
|
|
107
|
+
intelligentType: 'Hot',
|
|
108
|
+
intelligentValue: [],
|
|
109
|
+
maxProdNum: 10,
|
|
110
|
+
hover: {
|
|
111
|
+
open: false,
|
|
112
|
+
image: {
|
|
113
|
+
parentId: groupId,
|
|
114
|
+
id: imageId,
|
|
115
|
+
open: false,
|
|
116
|
+
type: 'IMAGE',
|
|
117
|
+
content: {
|
|
118
|
+
h5Name: '',
|
|
119
|
+
pcName: '',
|
|
120
|
+
h5ImgSrc: logo,
|
|
121
|
+
pcImgSrc: logo,
|
|
122
|
+
clickUrl: ''
|
|
123
|
+
},
|
|
124
|
+
hover: {
|
|
125
|
+
open: false,
|
|
126
|
+
backgroundType: 'enlarge',
|
|
127
|
+
magnification: 1.5,
|
|
128
|
+
pcImgHoverUrl: '',
|
|
129
|
+
h5ImgHoverUrl: ''
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
groupName: {
|
|
133
|
+
parentId: groupId,
|
|
134
|
+
id: groupNameId,
|
|
135
|
+
open: false,
|
|
136
|
+
type: 'TEXT',
|
|
137
|
+
specialContent: [],
|
|
138
|
+
text: text,
|
|
139
|
+
content: {
|
|
140
|
+
sizeType: 'Customize font styles',
|
|
141
|
+
fontFamily: 'Open Sans',
|
|
142
|
+
fontWeight: 600,
|
|
143
|
+
fontSize: 14,
|
|
144
|
+
color: '#CE1126'
|
|
145
|
+
},
|
|
146
|
+
underline: {
|
|
147
|
+
open: false,
|
|
148
|
+
textDecorationColor: '',
|
|
149
|
+
textDecorationStyle: 'solid'
|
|
150
|
+
},
|
|
151
|
+
vertical: {}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
|
|
158
|
+
|
|
159
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
160
|
+
var groupId = (0, _uuid.v4)();
|
|
161
|
+
return {
|
|
162
|
+
id: groupId,
|
|
163
|
+
type: 'MONPAY_RECOMMEND',
|
|
164
|
+
title: {
|
|
165
|
+
headerImage: {
|
|
166
|
+
id: (0, _uuid.v4)(),
|
|
167
|
+
open: true,
|
|
168
|
+
type: 'IMAGE',
|
|
169
|
+
content: {
|
|
170
|
+
h5Name: '',
|
|
171
|
+
pcName: '',
|
|
172
|
+
h5ImgSrc: _headerImage["default"],
|
|
173
|
+
pcImgSrc: _headerImage["default"],
|
|
174
|
+
clickUrl: ''
|
|
175
|
+
},
|
|
176
|
+
hover: {
|
|
177
|
+
open: false,
|
|
178
|
+
backgroundType: 'enlarge',
|
|
179
|
+
magnification: 1.5,
|
|
180
|
+
pcImgHoverUrl: '',
|
|
181
|
+
h5ImgHoverUrl: ''
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
groupSource: [recommendGroupSourceJSON(groupId, '', 'Tab1')],
|
|
186
|
+
content: {
|
|
187
|
+
label: {
|
|
188
|
+
id: (0, _uuid.v4)(),
|
|
189
|
+
open: true,
|
|
190
|
+
type: 'BUTTON',
|
|
191
|
+
text: 'Button',
|
|
192
|
+
content: {
|
|
193
|
+
url: '',
|
|
194
|
+
backgroundColor: '#CE1126'
|
|
195
|
+
},
|
|
196
|
+
buttonText: {
|
|
197
|
+
sizeType: 'Customize font styles',
|
|
198
|
+
fontFamily: 'Open Sans',
|
|
199
|
+
fontWeight: 600,
|
|
200
|
+
fontSize: 8,
|
|
201
|
+
fontStyle: 'normal',
|
|
202
|
+
color: '#fff'
|
|
203
|
+
},
|
|
204
|
+
buttonBorder: {
|
|
205
|
+
open: true,
|
|
206
|
+
borderColor: '',
|
|
207
|
+
borderRadius: 0
|
|
208
|
+
},
|
|
209
|
+
spacing: {
|
|
210
|
+
pc: {
|
|
211
|
+
paddingTop: 0,
|
|
212
|
+
paddingBottom: 0,
|
|
213
|
+
paddingLeft: 5,
|
|
214
|
+
paddingRight: 5
|
|
215
|
+
},
|
|
216
|
+
mobile: {
|
|
217
|
+
paddingTop: 0,
|
|
218
|
+
paddingBottom: 0,
|
|
219
|
+
paddingLeft: 5,
|
|
220
|
+
paddingRight: 5
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
buttonIcon: {
|
|
224
|
+
iconUrl: '',
|
|
225
|
+
layout: 'right'
|
|
226
|
+
},
|
|
227
|
+
hover: null
|
|
228
|
+
},
|
|
229
|
+
productName: {
|
|
230
|
+
id: (0, _uuid.v4)(),
|
|
231
|
+
open: true,
|
|
232
|
+
type: 'TEXT',
|
|
233
|
+
specialContent: [],
|
|
234
|
+
text: '',
|
|
235
|
+
content: {
|
|
236
|
+
sizeType: 'Customize font styles',
|
|
237
|
+
fontFamily: 'Open Sans',
|
|
238
|
+
fontWeight: 700,
|
|
239
|
+
fontSize: 14,
|
|
240
|
+
color: '#232F46'
|
|
241
|
+
},
|
|
242
|
+
underline: {
|
|
243
|
+
open: false,
|
|
244
|
+
textDecorationColor: '',
|
|
245
|
+
textDecorationStyle: 'solid'
|
|
246
|
+
},
|
|
247
|
+
vertical: {
|
|
248
|
+
open: false,
|
|
249
|
+
lineHeight: 18
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
activityPrice: {
|
|
253
|
+
id: (0, _uuid.v4)(),
|
|
254
|
+
open: true,
|
|
255
|
+
type: 'TEXT',
|
|
256
|
+
specialContent: [],
|
|
257
|
+
text: '',
|
|
258
|
+
content: {
|
|
259
|
+
sizeType: 'Customize font styles',
|
|
260
|
+
fontFamily: 'Open Sans',
|
|
261
|
+
fontWeight: 700,
|
|
262
|
+
fontSize: 14,
|
|
263
|
+
color: '#CE1126'
|
|
264
|
+
},
|
|
265
|
+
underline: {
|
|
266
|
+
open: false,
|
|
267
|
+
textDecorationColor: '',
|
|
268
|
+
textDecorationStyle: 'solid'
|
|
269
|
+
},
|
|
270
|
+
vertical: {
|
|
271
|
+
open: false,
|
|
272
|
+
lineHeight: 18
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
salesPrice: {
|
|
276
|
+
id: (0, _uuid.v4)(),
|
|
277
|
+
open: true,
|
|
278
|
+
type: 'TEXT',
|
|
279
|
+
specialContent: [],
|
|
280
|
+
text: '',
|
|
281
|
+
content: {
|
|
282
|
+
sizeType: 'Customize font styles',
|
|
283
|
+
fontFamily: 'Open Sans',
|
|
284
|
+
fontWeight: 500,
|
|
285
|
+
fontSize: 10,
|
|
286
|
+
color: '#8493AF'
|
|
287
|
+
},
|
|
288
|
+
underline: {
|
|
289
|
+
open: false,
|
|
290
|
+
textDecorationColor: '',
|
|
291
|
+
textDecorationStyle: 'solid'
|
|
292
|
+
},
|
|
293
|
+
vertical: {
|
|
294
|
+
open: false,
|
|
295
|
+
lineHeight: 18
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
salesProgress: {
|
|
299
|
+
open: true
|
|
300
|
+
},
|
|
301
|
+
evaluationScore: {
|
|
302
|
+
id: (0, _uuid.v4)(),
|
|
303
|
+
open: true,
|
|
304
|
+
type: 'TEXT',
|
|
305
|
+
specialContent: [],
|
|
306
|
+
text: '',
|
|
307
|
+
content: {
|
|
308
|
+
sizeType: 'Customize font styles',
|
|
309
|
+
fontFamily: 'Open Sans',
|
|
310
|
+
fontWeight: 400,
|
|
311
|
+
fontSize: 10,
|
|
312
|
+
color: '#545454'
|
|
313
|
+
},
|
|
314
|
+
underline: {
|
|
315
|
+
open: false,
|
|
316
|
+
textDecorationColor: '',
|
|
317
|
+
textDecorationStyle: 'solid'
|
|
318
|
+
},
|
|
319
|
+
vertical: {
|
|
320
|
+
open: false,
|
|
321
|
+
lineHeight: 18
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
sold: {
|
|
325
|
+
id: (0, _uuid.v4)(),
|
|
326
|
+
open: true,
|
|
327
|
+
type: 'TEXT',
|
|
328
|
+
specialContent: [],
|
|
329
|
+
text: '',
|
|
330
|
+
content: {
|
|
331
|
+
sizeType: 'Customize font styles',
|
|
332
|
+
fontFamily: 'Open Sans',
|
|
333
|
+
fontWeight: 400,
|
|
334
|
+
fontSize: 10,
|
|
335
|
+
color: '#545454'
|
|
336
|
+
},
|
|
337
|
+
underline: {
|
|
338
|
+
open: false,
|
|
339
|
+
textDecorationColor: '',
|
|
340
|
+
textDecorationStyle: 'solid'
|
|
341
|
+
},
|
|
342
|
+
vertical: {
|
|
343
|
+
open: false,
|
|
344
|
+
lineHeight: 18
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
filter: {
|
|
348
|
+
open: false
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
spacing: {
|
|
352
|
+
pc: {
|
|
353
|
+
paddingTop: 0,
|
|
354
|
+
paddingBottom: 0,
|
|
355
|
+
paddingLeft: 0,
|
|
356
|
+
paddingRight: 0,
|
|
357
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
358
|
+
},
|
|
359
|
+
mobile: {
|
|
360
|
+
paddingTop: 0,
|
|
361
|
+
paddingBottom: 0,
|
|
362
|
+
paddingLeft: 0,
|
|
363
|
+
paddingRight: 0,
|
|
364
|
+
marginBottom: window.magicDesign.compSpacing
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
customize: {
|
|
368
|
+
layout: {
|
|
369
|
+
pcLayout: 'layout1',
|
|
370
|
+
h5Layout: 'layout1'
|
|
371
|
+
},
|
|
372
|
+
align: 'left',
|
|
373
|
+
pcRowNum: 6,
|
|
374
|
+
pcMaxRowNum: 6,
|
|
375
|
+
pcMinRowNum: 5,
|
|
376
|
+
rowNum: 2,
|
|
377
|
+
mobileMaxRowNum: 3,
|
|
378
|
+
mobileMinRowNum: 2
|
|
379
|
+
},
|
|
380
|
+
background: {
|
|
381
|
+
opacity: 100,
|
|
382
|
+
color: '#fff',
|
|
383
|
+
image: '',
|
|
384
|
+
bgType: 'color'
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -0,0 +1,90 @@
|
|
|
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 _pc = _interopRequireDefault(require("./pc"));
|
|
13
|
+
|
|
14
|
+
var _defaultJSON = require("./defaultJSON");
|
|
15
|
+
|
|
16
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
17
|
+
|
|
18
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
55
|
+
var c = arguments.length,
|
|
56
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
57
|
+
d;
|
|
58
|
+
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--) {
|
|
59
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60
|
+
}
|
|
61
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var Recommend =
|
|
65
|
+
/** @class */
|
|
66
|
+
function (_super) {
|
|
67
|
+
__extends(Recommend, _super);
|
|
68
|
+
|
|
69
|
+
function Recommend() {
|
|
70
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
Recommend.prototype.render = function () {
|
|
74
|
+
var nodeData = this.props.nodeData;
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
76
|
+
panelProps: nodeData
|
|
77
|
+
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
78
|
+
panelProps: nodeData
|
|
79
|
+
}));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
Recommend.defaultProps = {};
|
|
83
|
+
Recommend.type = 'MONPAY_RECOMMEND';
|
|
84
|
+
Recommend.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
85
|
+
Recommend = __decorate([_compositeDecorator["default"]], Recommend);
|
|
86
|
+
return Recommend;
|
|
87
|
+
}(_react.Component);
|
|
88
|
+
|
|
89
|
+
var _default = Recommend;
|
|
90
|
+
exports["default"] = _default;
|
package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.searchCondWrap {
|
|
2
|
+
height: 1.12rem;
|
|
3
|
+
padding-left: 0.4rem;
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
background-color: #FFF;
|
|
8
|
+
}
|
|
9
|
+
.searchCondWrap .leftWrap {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
width: 2.8rem;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
padding-right: 0.16rem;
|
|
16
|
+
}
|
|
17
|
+
.searchCondWrap .rightWrap {
|
|
18
|
+
display: flex;
|
|
19
|
+
overflow: scroll;
|
|
20
|
+
}
|
|
21
|
+
.searchCondWrap .sortItem {
|
|
22
|
+
height: 0.64rem;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: 0 0.24rem;
|
|
27
|
+
border: 0.02rem solid #E4E4E4;
|
|
28
|
+
color: #848484;
|
|
29
|
+
border-radius: 0.52rem;
|
|
30
|
+
font-size: 0.24rem;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
width: fit-content;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
}
|
|
35
|
+
.searchCondWrap .sortItem .filterText {
|
|
36
|
+
margin-right: 0.08rem;
|
|
37
|
+
height: 0.24rem;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
line-height: 0.24rem;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
.searchCondWrap .sortItem + .sortItem {
|
|
44
|
+
margin-left: 0.2rem;
|
|
45
|
+
}
|
|
46
|
+
.searchCondWrap .activeItem {
|
|
47
|
+
color: #FF8650;
|
|
48
|
+
border-color: #FF8650;
|
|
49
|
+
}
|