@fonixtree/magic-design 2.0.169 → 2.0.171
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 +39 -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/base64/index.js +8 -2
- package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
- package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/es/assets/images/layout-icon/bundleLayout1.png +0 -0
- package/es/assets/images/layout-icon/center.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/es/assets/images/layout-icon/interestLayout1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-5.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/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/left.png +0 -0
- package/es/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
- package/es/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
- package/es/assets/images/layout-icon/right.png +0 -0
- package/es/assets/images/layout-icon/storesLayout1.png +0 -0
- package/es/assets/images/layout-icon/storesLayout2.png +0 -0
- package/es/assets/images/layout-icon/textLayout1.png +0 -0
- package/es/assets/less/common.less +40 -3
- package/es/common/Field/index.js +5 -2
- package/es/common/Field/index.less +5 -0
- package/es/common/LayoutSelector/index.js +3 -21
- package/es/common/MyModal/index.less +12 -4
- package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/defaultJSON.js +1 -1
- package/es/composite-comp/ashita/components/WalletAshita/index.js +84 -0
- package/{lib/composite-comp/bol/config-panels/WalletConfig → es/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -13
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +3 -7
- package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +3 -7
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/index.js +3 -7
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/index.js +3 -7
- package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +1 -5
- package/es/composite-comp/monpay/components/MonpayRecommend/index.js +1 -5
- package/es/composite-comp/monpay/config-panels/BundleConfig/index.js +3 -7
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +3 -7
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +3 -7
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +3 -7
- package/es/composite-comp/public/components/Location/defaultJSON.js +104 -0
- package/es/composite-comp/public/components/Location/index.js +86 -0
- package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/es/composite-comp/public/components/Location/mobile/index.js +353 -0
- package/es/composite-comp/public/components/Location/mobile/index.less +90 -0
- package/es/composite-comp/public/components/Stores/defaultJSON.js +348 -0
- package/es/composite-comp/public/components/Stores/index.js +86 -0
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
- package/es/composite-comp/public/components/Stores/mobile/index.js +198 -0
- package/es/composite-comp/public/components/Stores/mobile/index.less +37 -0
- package/es/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
- package/es/composite-comp/public/components/Wallet/mobile/index.js +350 -0
- package/es/composite-comp/public/components/Wallet/mobile/index.less +22 -0
- package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
- package/{lib/composite-comp/bol → es/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
- package/es/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
- package/es/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
- package/es/constants/component-types.js +23 -13
- package/es/constants/index.js +9 -1
- package/es/constants/layout.js +125 -16
- package/es/locale/en/en.json +15 -1
- package/es/locale/es/es.json +15 -1
- package/es/locale/index.js +5 -1
- package/es/locale/mn/mn.json +15 -1
- package/es/meta-comp/components/Text/index.less +6 -0
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +7 -8
- package/es/utils/businessUtil.js +33 -7
- package/es/utils/commonUtil.js +21 -9
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +39 -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/base64/index.js +8 -2
- package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
- package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
- package/lib/assets/images/layout-icon/bundleLayout1.png +0 -0
- package/lib/assets/images/layout-icon/center.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/lib/assets/images/layout-icon/interestLayout1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-5.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/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/left.png +0 -0
- package/lib/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
- package/lib/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
- package/lib/assets/images/layout-icon/right.png +0 -0
- package/lib/assets/images/layout-icon/storesLayout1.png +0 -0
- package/lib/assets/images/layout-icon/storesLayout2.png +0 -0
- package/lib/assets/images/layout-icon/textLayout1.png +0 -0
- package/lib/assets/less/common.less +40 -3
- package/lib/common/Field/index.js +5 -2
- package/lib/common/Field/index.less +5 -0
- package/lib/common/LayoutSelector/index.js +3 -21
- package/lib/common/MyModal/index.less +12 -4
- package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/defaultJSON.js +1 -1
- package/lib/composite-comp/ashita/components/WalletAshita/index.js +84 -0
- package/{es/composite-comp/bol/config-panels/WalletConfig → lib/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -13
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +3 -7
- package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +3 -7
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/BargainConfig/index.js +3 -7
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/index.js +3 -7
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +1 -5
- package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +1 -5
- package/lib/composite-comp/monpay/config-panels/BundleConfig/index.js +3 -7
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +3 -7
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +3 -7
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +3 -7
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/index.js +61 -0
- package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/public/components/Location/defaultJSON.js +104 -0
- package/lib/composite-comp/public/components/Location/index.js +86 -0
- package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/lib/composite-comp/public/components/Location/mobile/index.js +353 -0
- package/lib/composite-comp/public/components/Location/mobile/index.less +90 -0
- package/lib/composite-comp/public/components/Stores/defaultJSON.js +348 -0
- package/lib/composite-comp/public/components/Stores/index.js +86 -0
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
- package/lib/composite-comp/public/components/Stores/mobile/index.js +198 -0
- package/lib/composite-comp/public/components/Stores/mobile/index.less +37 -0
- package/lib/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
- package/lib/composite-comp/public/components/Wallet/mobile/index.js +350 -0
- package/lib/composite-comp/public/components/Wallet/mobile/index.less +22 -0
- package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
- package/{es/composite-comp/bol → lib/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
- package/lib/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/index.js +61 -0
- package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +152 -0
- package/lib/constants/component-types.js +23 -13
- package/lib/constants/index.js +9 -1
- package/lib/constants/layout.js +125 -16
- package/lib/locale/en/en.json +15 -1
- package/lib/locale/es/es.json +15 -1
- package/lib/locale/index.js +5 -1
- package/lib/locale/mn/mn.json +15 -1
- package/lib/meta-comp/components/Text/index.less +6 -0
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +7 -8
- package/lib/utils/businessUtil.js +33 -7
- package/lib/utils/commonUtil.js +21 -9
- package/package.json +1 -1
- package/es/assets/images/layout-icon/banner-slide-layout1.svg +0 -6
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/imageTextLeft.svg +0 -6
- package/es/assets/images/layout-icon/imageTextRight.svg +0 -6
- package/es/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- package/es/common/LayoutSelector/imgs/center.png +0 -0
- package/es/common/LayoutSelector/imgs/left.png +0 -0
- package/es/common/LayoutSelector/imgs/right.png +0 -0
- package/es/composite-comp/bol/components/Location/defaultJSON.js +0 -60
- package/es/composite-comp/bol/components/Location/index.js +0 -102
- package/es/composite-comp/bol/components/Location/index.less +0 -15
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -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 +0 -584
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +0 -150
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +0 -809
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +0 -129
- package/es/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- package/lib/assets/images/layout-icon/banner-slide-layout1.svg +0 -6
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/imageTextLeft.svg +0 -6
- package/lib/assets/images/layout-icon/imageTextRight.svg +0 -6
- package/lib/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- package/lib/common/LayoutSelector/imgs/center.png +0 -0
- package/lib/common/LayoutSelector/imgs/left.png +0 -0
- package/lib/common/LayoutSelector/imgs/right.png +0 -0
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +0 -60
- package/lib/composite-comp/bol/components/Location/index.js +0 -102
- package/lib/composite-comp/bol/components/Location/index.less +0 -15
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -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 +0 -584
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +0 -150
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +0 -809
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +0 -129
- package/lib/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- /package/es/{composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png → assets/images/common/product.png} +0 -0
- /package/es/{composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png → assets/images/layout-icon/bargainLayout1.png} +0 -0
- /package/es/{composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png → assets/images/layout-icon/buttonLayout1.png} +0 -0
- /package/es/{composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png → assets/images/layout-icon/buttonLayout2.png} +0 -0
- /package/es/{composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png → assets/images/layout-icon/groupBuyLayout1.png} +0 -0
- /package/es/{composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png → assets/images/layout-icon/tagLayout1.png} +0 -0
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/ButtonCompConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
- /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
- /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
- /package/es/composite-comp/{monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png → dito/config-panels/GroupBuyConfig/imgs/groupBuyLayout1.png} +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/TagCompConfig/imgs → nuri/config-panels/WalletNuriConfig/GroupList}/defaultImg.png +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/TextCompConfig → nuri/config-panels/WalletNuriConfig}/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
- /package/es/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent → es/composite-comp/public/config-panels/StoresConfig/ConfigContent}/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig/imgs → public/config-panels/WalletConfig/GroupList}/defaultImg.png +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.js +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.less +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/WalletNuriConfigImageGroup/index.js +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup → es/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup}/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletNuriConfig/GroupList → public/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/index.js +0 -0
- /package/{lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig → es/composite-comp/public/second-config-panels/WalletSecondConfig}/index.js +0 -0
- /package/lib/{composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png → assets/images/common/product.png} +0 -0
- /package/lib/{composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png → assets/images/layout-icon/bargainLayout1.png} +0 -0
- /package/{es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png → lib/assets/images/layout-icon/buttonLayout1.png} +0 -0
- /package/lib/{composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png → assets/images/layout-icon/buttonLayout2.png} +0 -0
- /package/lib/{composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png → assets/images/layout-icon/groupBuyLayout1.png} +0 -0
- /package/lib/{composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png → assets/images/layout-icon/tagLayout1.png} +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup → ashita/config-panels/WalletAshitaConfig/WalletConfigContent}/index.less +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
- /package/{es/composite-comp/bol/config-panels/WalletNuriConfig → lib/composite-comp/ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
- /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
- /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
- /package/lib/composite-comp/{monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png → dito/config-panels/GroupBuyConfig/imgs/groupBuyLayout1.png} +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
- /package/lib/composite-comp/{bol/config-panels/ButtonCompConfig/imgs → nuri/config-panels/WalletNuriConfig/GroupList}/defaultImg.png +0 -0
- /package/lib/composite-comp/{bol/config-panels/TagCompConfig → nuri/config-panels/WalletNuriConfig}/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
- /package/lib/composite-comp/{bol/config-panels/TextCompConfig/imgs → public/config-panels/WalletConfig/GroupList}/defaultImg.png +0 -0
- /package/lib/composite-comp/{bol → public}/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.renderDiscount = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
13
|
+
|
|
14
|
+
var _currencyUtil = require("../../../../../../utils/currencyUtil");
|
|
15
|
+
|
|
16
|
+
var _common = require("../../../../../../common");
|
|
17
|
+
|
|
18
|
+
var _components = require("../../../../../../meta-comp/components");
|
|
19
|
+
|
|
20
|
+
var _locale = require("../../../../../../locale");
|
|
21
|
+
|
|
22
|
+
require("./index.less");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
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 __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
|
+
|
|
70
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
71
|
+
var t = {};
|
|
72
|
+
|
|
73
|
+
for (var p in s) {
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
78
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
79
|
+
}
|
|
80
|
+
return t;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var renderDiscount = function renderDiscount(data) {
|
|
84
|
+
var AMT = data.discountMethod === 'AMT'; // 金额扣减
|
|
85
|
+
|
|
86
|
+
var DISC = data.discountMethod === 'DISC'; // 百分比
|
|
87
|
+
|
|
88
|
+
var text = '';
|
|
89
|
+
|
|
90
|
+
if (AMT) {
|
|
91
|
+
text = (0, _currencyUtil.formatCurrencyWithSymbol)(data.discountAmount);
|
|
92
|
+
} else if (DISC) {
|
|
93
|
+
var temp = (0, _currencyUtil.formatCurrency)(data.discountAmount, 2); // 折扣券处理:100 => 1%
|
|
94
|
+
|
|
95
|
+
text = parseInt(temp, 10) + "%";
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
text: text,
|
|
100
|
+
isBig: text.length > 6 && text.length <= 9,
|
|
101
|
+
isHide: text.length > 9
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
exports.renderDiscount = renderDiscount;
|
|
106
|
+
|
|
107
|
+
var StoreItem =
|
|
108
|
+
/** @class */
|
|
109
|
+
function (_super) {
|
|
110
|
+
__extends(StoreItem, _super);
|
|
111
|
+
|
|
112
|
+
function StoreItem() {
|
|
113
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
114
|
+
|
|
115
|
+
_this.state = {};
|
|
116
|
+
return _this;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
StoreItem.prototype.render = function () {
|
|
120
|
+
var _a = this.props,
|
|
121
|
+
data = _a.data,
|
|
122
|
+
panelProps = _a.panelProps,
|
|
123
|
+
onItemClick = _a.onItemClick,
|
|
124
|
+
layout = _a.layout,
|
|
125
|
+
rest = __rest(_a, ["data", "panelProps", "onItemClick", "layout"]);
|
|
126
|
+
|
|
127
|
+
var soldNumber = data.salesCnt > 250 ? data.salesCnt - data.salesCnt % 250 + "+" : data.salesCnt || 0;
|
|
128
|
+
console.log(panelProps);
|
|
129
|
+
var storeName = panelProps.storeName,
|
|
130
|
+
storeDesc = panelProps.storeDesc,
|
|
131
|
+
freeDeliveryLabel = panelProps.freeDeliveryLabel,
|
|
132
|
+
minOrder = panelProps.minOrder,
|
|
133
|
+
evaluateScore = panelProps.evaluateScore,
|
|
134
|
+
sold = panelProps.sold,
|
|
135
|
+
deliveryTime = panelProps.deliveryTime,
|
|
136
|
+
distance = panelProps.distance;
|
|
137
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
138
|
+
className: (0, _classnames["default"])('m-store-item-wrap', {
|
|
139
|
+
horizontal: true
|
|
140
|
+
}),
|
|
141
|
+
onClick: function onClick() {
|
|
142
|
+
return onItemClick();
|
|
143
|
+
}
|
|
144
|
+
}, rest), /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
+
className: "img-wrap"
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
|
|
147
|
+
className: "product-img",
|
|
148
|
+
lazy: true,
|
|
149
|
+
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
|
|
150
|
+
}), freeDeliveryLabel.open && data.discountPercent && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
151
|
+
className: "flag",
|
|
152
|
+
data: freeDeliveryLabel
|
|
153
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
+
className: "content-wrap"
|
|
155
|
+
}, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
156
|
+
className: "name",
|
|
157
|
+
data: __assign(__assign({}, storeName), {
|
|
158
|
+
text: data.offerName
|
|
159
|
+
}),
|
|
160
|
+
readonly: true
|
|
161
|
+
}), minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
162
|
+
className: "minOrder",
|
|
163
|
+
data: __assign(__assign({}, minOrder), {
|
|
164
|
+
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('MIN_ORDER'), ':', (data.minOrder || 0) + " IQD"])
|
|
165
|
+
}),
|
|
166
|
+
readonly: true
|
|
167
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "row"
|
|
169
|
+
}, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
170
|
+
className: "score",
|
|
171
|
+
data: __assign(__assign({}, evaluateScore), {
|
|
172
|
+
text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
|
|
173
|
+
}),
|
|
174
|
+
readonly: true
|
|
175
|
+
}), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
|
+
className: "line1"
|
|
177
|
+
}), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
178
|
+
className: "sold",
|
|
179
|
+
data: __assign(__assign({}, sold), {
|
|
180
|
+
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('SOLD'), soldNumber, '+'])
|
|
181
|
+
}),
|
|
182
|
+
readonly: true
|
|
183
|
+
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
184
|
+
className: "time",
|
|
185
|
+
data: __assign(__assign({}, deliveryTime), {
|
|
186
|
+
text: '17 mins'
|
|
187
|
+
}),
|
|
188
|
+
readonly: true
|
|
189
|
+
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
190
|
+
className: "distance",
|
|
191
|
+
data: __assign(__assign({}, distance), {
|
|
192
|
+
text: '1 km'
|
|
193
|
+
}),
|
|
194
|
+
readonly: true
|
|
195
|
+
})))) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
196
|
+
className: (0, _classnames["default"])('m-store-item-wrap'),
|
|
197
|
+
onClick: function onClick() {
|
|
198
|
+
return onItemClick();
|
|
199
|
+
}
|
|
200
|
+
}, rest), /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
|
+
className: "img-wrap"
|
|
202
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
|
|
203
|
+
className: "product-img",
|
|
204
|
+
lazy: true,
|
|
205
|
+
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
|
|
206
|
+
}), freeDeliveryLabel.open && data.discountPercent && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
207
|
+
className: "flag",
|
|
208
|
+
data: freeDeliveryLabel
|
|
209
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
|
+
className: "content-wrap"
|
|
211
|
+
}, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
212
|
+
className: "name",
|
|
213
|
+
data: __assign(__assign({}, storeName), {
|
|
214
|
+
text: data.offerName
|
|
215
|
+
}),
|
|
216
|
+
readonly: true
|
|
217
|
+
}), storeDesc.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
218
|
+
className: "desc",
|
|
219
|
+
data: __assign(__assign({}, storeDesc), {
|
|
220
|
+
text: data.offerName
|
|
221
|
+
}),
|
|
222
|
+
readonly: true
|
|
223
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
224
|
+
className: "row"
|
|
225
|
+
}, minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
226
|
+
className: "minOrder",
|
|
227
|
+
data: __assign(__assign({}, minOrder), {
|
|
228
|
+
text: (0, _locale.i18n)('MIN_ORDER') + ": " + data.minOrder
|
|
229
|
+
}),
|
|
230
|
+
readonly: true
|
|
231
|
+
}), minOrder.open && sold.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
|
+
className: "line1"
|
|
233
|
+
}), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
234
|
+
className: "sold",
|
|
235
|
+
data: __assign(__assign({}, sold), {
|
|
236
|
+
text: (0, _locale.i18n)('SOLD') + " " + soldNumber
|
|
237
|
+
}),
|
|
238
|
+
readonly: true
|
|
239
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
240
|
+
className: "row"
|
|
241
|
+
}, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
242
|
+
className: "score",
|
|
243
|
+
data: __assign(__assign({}, evaluateScore), {
|
|
244
|
+
text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
|
|
245
|
+
}),
|
|
246
|
+
readonly: true
|
|
247
|
+
}), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
248
|
+
className: "line2"
|
|
249
|
+
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
250
|
+
className: "time",
|
|
251
|
+
data: __assign(__assign({}, deliveryTime), {
|
|
252
|
+
text: '17 mins'
|
|
253
|
+
}),
|
|
254
|
+
readonly: true
|
|
255
|
+
}), deliveryTime.open && distance.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
256
|
+
className: "line2"
|
|
257
|
+
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
258
|
+
className: "distance",
|
|
259
|
+
data: __assign(__assign({}, distance), {
|
|
260
|
+
text: '1km'
|
|
261
|
+
}),
|
|
262
|
+
readonly: true
|
|
263
|
+
})))));
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
StoreItem.defaultProps = {
|
|
267
|
+
data: {},
|
|
268
|
+
panelProps: {},
|
|
269
|
+
layout: 'vertical'
|
|
270
|
+
};
|
|
271
|
+
return StoreItem;
|
|
272
|
+
}(_react["default"].Component);
|
|
273
|
+
|
|
274
|
+
var _default = StoreItem;
|
|
275
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.m-store-item-wrap {
|
|
2
|
+
background: #FFFFFF;
|
|
3
|
+
border: 0.02rem solid #E4E4E4;
|
|
4
|
+
border-radius: 0.16rem;
|
|
5
|
+
position: relative;
|
|
6
|
+
margin-right: 0.32rem;
|
|
7
|
+
margin-top: 0.32rem;
|
|
8
|
+
width: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
.m-store-item-wrap .img-wrap .product-img {
|
|
13
|
+
width: 2.1rem;
|
|
14
|
+
height: 2.1rem;
|
|
15
|
+
border-radius: 0.16rem 0 0 0.16rem;
|
|
16
|
+
object-fit: cover;
|
|
17
|
+
}
|
|
18
|
+
.m-store-item-wrap .img-wrap .flag {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0.2rem;
|
|
21
|
+
left: -0.04rem;
|
|
22
|
+
}
|
|
23
|
+
.m-store-item-wrap .content-wrap {
|
|
24
|
+
padding: 0.12rem 0.2rem;
|
|
25
|
+
width: 4.4rem;
|
|
26
|
+
}
|
|
27
|
+
.m-store-item-wrap .content-wrap .name {
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
text-overflow: ellipsis;
|
|
31
|
+
}
|
|
32
|
+
.m-store-item-wrap .content-wrap .desc {
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
margin-top: -0.02rem;
|
|
37
|
+
margin-bottom: 0.1rem;
|
|
38
|
+
}
|
|
39
|
+
.m-store-item-wrap .content-wrap .minOrder {
|
|
40
|
+
width: fit-content !important;
|
|
41
|
+
}
|
|
42
|
+
.m-store-item-wrap .content-wrap .sold {
|
|
43
|
+
width: fit-content !important;
|
|
44
|
+
}
|
|
45
|
+
.m-store-item-wrap .content-wrap .row {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
}
|
|
49
|
+
.m-store-item-wrap .content-wrap .line1 {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
width: 0.02rem;
|
|
52
|
+
height: 0.32rem;
|
|
53
|
+
background-color: #545454;
|
|
54
|
+
margin: 0 0.1rem;
|
|
55
|
+
}
|
|
56
|
+
.m-store-item-wrap .content-wrap .line2 {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: 0.02rem;
|
|
59
|
+
height: 0.24rem;
|
|
60
|
+
background-color: #D9D9D9;
|
|
61
|
+
margin: 0 0.16rem;
|
|
62
|
+
}
|
|
63
|
+
.m-store-item-wrap.horizontal {
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
width: 5.84rem;
|
|
66
|
+
}
|
|
67
|
+
.m-store-item-wrap.horizontal .img-wrap .product-img {
|
|
68
|
+
width: 5.8rem;
|
|
69
|
+
height: 2.4rem;
|
|
70
|
+
border-radius: 0.16rem 0.16rem 0 0;
|
|
71
|
+
object-fit: cover;
|
|
72
|
+
}
|
|
73
|
+
.m-store-item-wrap.horizontal .content-wrap {
|
|
74
|
+
flex: auto;
|
|
75
|
+
padding: 0.16rem;
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
.m-store-item-wrap.horizontal .content-wrap .sold,
|
|
79
|
+
.m-store-item-wrap.horizontal .content-wrap .time {
|
|
80
|
+
margin-right: 0.1rem;
|
|
81
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./index.less");
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _StoreItem = _interopRequireDefault(require("./StoreItem"));
|
|
15
|
+
|
|
16
|
+
var _components = require("../../../../../meta-comp/components");
|
|
17
|
+
|
|
18
|
+
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
19
|
+
|
|
20
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
21
|
+
|
|
22
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
23
|
+
|
|
24
|
+
var _product = _interopRequireDefault(require("../../../../../assets/images/common/product.png"));
|
|
25
|
+
|
|
26
|
+
var _constants = require("../../../../../constants");
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
31
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
32
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
33
|
+
__proto__: []
|
|
34
|
+
} instanceof Array && function (d, b) {
|
|
35
|
+
d.__proto__ = b;
|
|
36
|
+
} || function (d, b) {
|
|
37
|
+
for (var p in b) {
|
|
38
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return _extendStatics(d, b);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return function (d, b) {
|
|
46
|
+
_extendStatics(d, b);
|
|
47
|
+
|
|
48
|
+
function __() {
|
|
49
|
+
this.constructor = d;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53
|
+
};
|
|
54
|
+
}();
|
|
55
|
+
|
|
56
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
57
|
+
__assign = Object.assign || function (t) {
|
|
58
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
59
|
+
s = arguments[i];
|
|
60
|
+
|
|
61
|
+
for (var p in s) {
|
|
62
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return t;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
return __assign.apply(this, arguments);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var defaultData = [{
|
|
73
|
+
imgUrlContent: {
|
|
74
|
+
url: _product["default"]
|
|
75
|
+
},
|
|
76
|
+
offerName: 'Product Name Long Long Long Long Long',
|
|
77
|
+
salesPrice: 10000,
|
|
78
|
+
specialPrice: null,
|
|
79
|
+
marketPrice: 20000,
|
|
80
|
+
salePercent: 500,
|
|
81
|
+
discountPercent: 90,
|
|
82
|
+
coupons: [{
|
|
83
|
+
couponId: '1',
|
|
84
|
+
discountMethod: 'DISC',
|
|
85
|
+
discountAmount: 3000
|
|
86
|
+
}, {
|
|
87
|
+
couponId: '2',
|
|
88
|
+
discountMethod: 'AMT',
|
|
89
|
+
discountAmount: 100
|
|
90
|
+
}, {
|
|
91
|
+
couponId: '3',
|
|
92
|
+
discountMethod: 'AMT',
|
|
93
|
+
discountAmount: 1000
|
|
94
|
+
}, {
|
|
95
|
+
couponId: '4',
|
|
96
|
+
discountMethod: 'AMT',
|
|
97
|
+
discountAmount: 10000
|
|
98
|
+
}, {
|
|
99
|
+
couponId: '5',
|
|
100
|
+
discountMethod: 'AMT',
|
|
101
|
+
discountAmount: 100000
|
|
102
|
+
}]
|
|
103
|
+
}, {
|
|
104
|
+
imgUrlContent: {
|
|
105
|
+
url: _product["default"]
|
|
106
|
+
},
|
|
107
|
+
offerName: 'Product Name',
|
|
108
|
+
salesPrice: 10000,
|
|
109
|
+
specialPrice: null,
|
|
110
|
+
marketPrice: 20000,
|
|
111
|
+
salePercent: 500
|
|
112
|
+
}, {
|
|
113
|
+
imgUrlContent: {
|
|
114
|
+
url: _product["default"]
|
|
115
|
+
},
|
|
116
|
+
offerName: 'Product Name Long Long Long Long Long',
|
|
117
|
+
salesPrice: 18000000,
|
|
118
|
+
specialPrice: 18000000,
|
|
119
|
+
marketPrice: 19000000,
|
|
120
|
+
discountPercent: 10,
|
|
121
|
+
salePercent: 500
|
|
122
|
+
}, {
|
|
123
|
+
imgUrlContent: {
|
|
124
|
+
url: _product["default"]
|
|
125
|
+
},
|
|
126
|
+
offerName: 'Product Name',
|
|
127
|
+
salesPrice: 18000000,
|
|
128
|
+
specialPrice: 18000000,
|
|
129
|
+
marketPrice: 19000000,
|
|
130
|
+
salePercent: 500
|
|
131
|
+
}];
|
|
132
|
+
|
|
133
|
+
var Mobile =
|
|
134
|
+
/** @class */
|
|
135
|
+
function (_super) {
|
|
136
|
+
__extends(Mobile, _super);
|
|
137
|
+
|
|
138
|
+
function Mobile() {
|
|
139
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
140
|
+
|
|
141
|
+
_this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
|
|
142
|
+
return (0, _storeUtil.getMagicStore)("stores_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
143
|
+
}, {});
|
|
144
|
+
_this.state = {
|
|
145
|
+
list: []
|
|
146
|
+
};
|
|
147
|
+
return _this;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
Mobile.prototype.render = function () {
|
|
151
|
+
var _a;
|
|
152
|
+
|
|
153
|
+
var panelProps = this.props.panelProps;
|
|
154
|
+
var list = this.state.list;
|
|
155
|
+
|
|
156
|
+
var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
|
|
157
|
+
|
|
158
|
+
var needReverse = ((0, _storeUtil.getStore)(_constants.STORAGE_KEY.FISHX_LOCALE) || (0, _storeUtil.getStore)(_constants.STORAGE_KEY.LOCALE)) === 'ba';
|
|
159
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
|
+
className: (0, _classnames["default"])('m-stores-mobile', (_a = {}, _a['reversed-layout'] = needReverse, _a))
|
|
161
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
|
+
className: "stores-title"
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
+
className: "left"
|
|
165
|
+
}, panelProps.title.name.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
166
|
+
data: panelProps.title.name
|
|
167
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "right",
|
|
169
|
+
onClick: function onClick() {
|
|
170
|
+
return (0, _coreUtil.clickUrl)('/spike');
|
|
171
|
+
}
|
|
172
|
+
}, panelProps.title.seeAll.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
173
|
+
data: panelProps.title.seeAll
|
|
174
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
+
className: (0, _classnames["default"])('stores-list', {
|
|
176
|
+
horizontal: panelProps.customize.layout === 'layout1'
|
|
177
|
+
})
|
|
178
|
+
}, _list.map(function (item) {
|
|
179
|
+
return /*#__PURE__*/_react["default"].createElement(_StoreItem["default"], {
|
|
180
|
+
key: item.id,
|
|
181
|
+
data: __assign({}, item),
|
|
182
|
+
layout: panelProps.customize.layout,
|
|
183
|
+
onItemClick: function onItemClick() {
|
|
184
|
+
return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
185
|
+
},
|
|
186
|
+
panelProps: panelProps.content
|
|
187
|
+
});
|
|
188
|
+
}))));
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
Mobile.defaultProps = {
|
|
192
|
+
panelProps: {}
|
|
193
|
+
};
|
|
194
|
+
return Mobile;
|
|
195
|
+
}(_react["default"].Component);
|
|
196
|
+
|
|
197
|
+
var _default = Mobile;
|
|
198
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.m-stores-mobile {
|
|
2
|
+
margin-left: 0.4rem;
|
|
3
|
+
}
|
|
4
|
+
.m-stores-mobile .stores-title {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding-right: 0.4rem;
|
|
9
|
+
}
|
|
10
|
+
.m-stores-mobile .stores-list {
|
|
11
|
+
margin-right: 0.4rem;
|
|
12
|
+
}
|
|
13
|
+
.m-stores-mobile .stores-list.horizontal {
|
|
14
|
+
overflow-x: auto;
|
|
15
|
+
display: flex;
|
|
16
|
+
margin-right: 0;
|
|
17
|
+
}
|
|
18
|
+
.m-stores-mobile.reversed-layout {
|
|
19
|
+
margin-left: 0;
|
|
20
|
+
margin-right: 0.4rem;
|
|
21
|
+
}
|
|
22
|
+
.m-stores-mobile.reversed-layout .stores-title {
|
|
23
|
+
padding-right: 0;
|
|
24
|
+
padding-left: 0.4rem;
|
|
25
|
+
}
|
|
26
|
+
.m-stores-mobile.reversed-layout .sold,
|
|
27
|
+
.m-stores-mobile.reversed-layout .minOrder {
|
|
28
|
+
direction: ltr;
|
|
29
|
+
}
|
|
30
|
+
.m-stores-mobile.reversed-layout .flag {
|
|
31
|
+
right: -0.04rem !important;
|
|
32
|
+
left: unset !important;
|
|
33
|
+
}
|
|
34
|
+
.m-stores-mobile.reversed-layout .m-store-item-wrap {
|
|
35
|
+
margin-right: 0;
|
|
36
|
+
margin-left: 0.32rem;
|
|
37
|
+
}
|