@fonixtree/magic-design 2.0.190 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/magic-box-iconfont.css +3 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -3
- 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 +2 -8
- 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/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/imageTextLeft.svg +6 -0
- package/es/assets/images/layout-icon/imageTextRight.svg +6 -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-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/textLayout1.png +0 -0
- package/es/assets/less/common.less +3 -40
- package/es/common/Field/index.js +2 -5
- package/es/common/Field/index.less +0 -5
- package/es/common/LinkModal/index.js +0 -7
- package/es/common/MyModal/index.less +4 -12
- package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/{lib/composite-comp/public → es/composite-comp/bol}/components/Location/index.js +20 -4
- package/es/composite-comp/bol/components/Location/index.less +15 -0
- package/{lib/composite-comp/ashita/components/WalletAshita → es/composite-comp/bol/components/Wallet}/defaultJSON.js +1 -1
- package/{lib/composite-comp/public → es/composite-comp/bol}/config-panels/LocationConfig/index.js +52 -10
- package/{lib/composite-comp/ashita/config-panels/WalletAshitaConfig → es/composite-comp/bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.js +1 -1
- package/es/composite-comp/common/components/MonpayProductItem/index.js +3 -3
- package/es/composite-comp/common/components/MonpayProductItem/index.less +6 -6
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +0 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +5 -1
- 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 +584 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +8 -8
- package/es/composite-comp/monpay/components/MonpayRecommend/index.js +5 -1
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +14 -15
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +0 -11
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +809 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/es/constants/component-types.js +13 -23
- package/es/constants/index.js +2 -12
- package/es/constants/layout.js +16 -29
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +1 -1
- package/es/decorator/compositeDecorator.js +1 -27
- package/es/locale/en/en.json +1 -16
- package/es/locale/es/es.json +1 -16
- package/es/locale/index.js +1 -5
- package/es/locale/mn/mn.json +1 -16
- package/es/meta-comp/components/Text/index.less +0 -6
- package/es/meta-comp/config-panels/ButtonConfig/index.js +8 -7
- package/es/utils/androidUtil.js +1 -2
- package/es/utils/businessUtil.js +2 -27
- package/es/utils/commonUtil.js +10 -26
- package/es/utils/coreUtil.js +1 -3
- package/lib/assets/fonts/magic-box-iconfont.css +3 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
- 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 +2 -8
- 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/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
- package/lib/assets/images/layout-icon/imageTextRight.svg +6 -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-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/textLayout1.png +0 -0
- package/lib/assets/less/common.less +3 -40
- package/lib/common/Field/index.js +2 -5
- package/lib/common/Field/index.less +0 -5
- package/lib/common/LinkModal/index.js +0 -7
- package/lib/common/MyModal/index.less +4 -12
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/{es/composite-comp/public → lib/composite-comp/bol}/components/Location/index.js +20 -4
- package/lib/composite-comp/bol/components/Location/index.less +15 -0
- package/{es/composite-comp/ashita/components/WalletAshita → lib/composite-comp/bol/components/Wallet}/defaultJSON.js +1 -1
- package/{es/composite-comp/public → lib/composite-comp/bol}/config-panels/LocationConfig/index.js +52 -10
- package/{es/composite-comp/ashita/config-panels/WalletAshitaConfig → lib/composite-comp/bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +3 -3
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +6 -6
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +0 -1
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +5 -1
- 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 +584 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +8 -8
- package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +5 -1
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +14 -15
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +0 -11
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +809 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
- package/lib/constants/component-types.js +13 -23
- package/lib/constants/index.js +2 -12
- package/lib/constants/layout.js +16 -29
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +1 -1
- package/lib/decorator/compositeDecorator.js +1 -27
- package/lib/locale/en/en.json +1 -16
- package/lib/locale/es/es.json +1 -16
- package/lib/locale/index.js +1 -5
- package/lib/locale/mn/mn.json +1 -16
- package/lib/meta-comp/components/Text/index.less +0 -6
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +8 -7
- package/lib/utils/androidUtil.js +1 -2
- package/lib/utils/businessUtil.js +2 -27
- package/lib/utils/commonUtil.js +10 -26
- package/lib/utils/coreUtil.js +1 -3
- package/package.json +1 -1
- package/es/assets/images/layout-icon/layout-imagetext-p5.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/common/LinkModal/BizType/index.js +0 -274
- package/es/composite-comp/ashita/components/WalletAshita/index.js +0 -84
- package/es/composite-comp/public/components/Location/defaultJSON.js +0 -104
- package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/es/composite-comp/public/components/Location/mobile/index.js +0 -133
- package/es/composite-comp/public/components/Location/mobile/index.less +0 -21
- package/es/composite-comp/public/components/Stores/defaultJSON.js +0 -348
- package/es/composite-comp/public/components/Stores/index.js +0 -86
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +0 -250
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +0 -81
- package/es/composite-comp/public/components/Stores/mobile/index.js +0 -335
- package/es/composite-comp/public/components/Stores/mobile/index.less +0 -33
- package/es/composite-comp/public/components/Wallet/defaultJSON.js +0 -149
- package/es/composite-comp/public/components/Wallet/mobile/index.js +0 -353
- package/es/composite-comp/public/components/Wallet/mobile/index.less +0 -22
- package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +0 -153
- package/es/composite-comp/public/config-panels/LocationConfig/index.less +0 -17
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +0 -176
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +0 -103
- package/es/composite-comp/public/config-panels/StoresConfig/index.js +0 -134
- package/es/composite-comp/public/config-panels/WalletConfig/index.js +0 -61
- package/es/locale/ar/ar.json +0 -362
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +0 -207
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +0 -81
- package/lib/assets/images/layout-icon/layout-imagetext-p5.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/common/LinkModal/BizType/index.js +0 -274
- package/lib/composite-comp/ashita/components/WalletAshita/index.js +0 -84
- package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
- package/lib/composite-comp/public/components/Location/defaultJSON.js +0 -104
- package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/lib/composite-comp/public/components/Location/mobile/index.js +0 -133
- package/lib/composite-comp/public/components/Location/mobile/index.less +0 -21
- package/lib/composite-comp/public/components/Stores/defaultJSON.js +0 -348
- package/lib/composite-comp/public/components/Stores/index.js +0 -86
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +0 -250
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +0 -81
- package/lib/composite-comp/public/components/Stores/mobile/index.js +0 -335
- package/lib/composite-comp/public/components/Stores/mobile/index.less +0 -33
- package/lib/composite-comp/public/components/Wallet/defaultJSON.js +0 -149
- package/lib/composite-comp/public/components/Wallet/mobile/index.js +0 -353
- package/lib/composite-comp/public/components/Wallet/mobile/index.less +0 -22
- package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +0 -153
- package/lib/composite-comp/public/config-panels/LocationConfig/index.less +0 -17
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +0 -176
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +0 -103
- package/lib/composite-comp/public/config-panels/StoresConfig/index.js +0 -134
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +0 -100
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +0 -72
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.js +0 -123
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/index.js +0 -61
- package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +0 -152
- package/lib/locale/ar/ar.json +0 -362
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +0 -207
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +0 -81
- /package/es/composite-comp/{public → bol}/components/Wallet/index.js +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.js +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.less +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.js +0 -0
- /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.less +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/defaultJSON.js +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.js +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.js +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.less +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/index.js +0 -0
- /package/es/composite-comp/{nuri → bol}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
- /package/es/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.js +0 -0
- /package/es/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.less +0 -0
- /package/es/{assets/images/common/product.png → composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png} +0 -0
- /package/lib/composite-comp/{public → bol}/components/Wallet/index.js +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.js +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.less +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.js +0 -0
- /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.less +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/defaultJSON.js +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/index.js +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.js +0 -0
- /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.less +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.js +0 -0
- /package/{es/composite-comp/public/config-panels/StoresConfig/ConfigContent → lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent}/index.less +0 -0
- /package/{es/composite-comp/public → lib/composite-comp/bol}/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.js +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.less +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig/GroupList → lib/composite-comp/bol/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/index.js +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig/imgs → lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList}/defaultImg.png +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig → lib/composite-comp/bol/config-panels/WalletNuriConfig}/GroupList/index.js +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig → lib/composite-comp/bol/config-panels/WalletNuriConfig}/GroupList/index.less +0 -0
- /package/{es/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup → lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup}/index.js +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig/WalletConfigContent → bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup}/index.less +0 -0
- /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletNuriConfig}/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/index.js +0 -0
- /package/{es/composite-comp/public/second-config-panels/WalletSecondConfig → lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig}/index.js +0 -0
- /package/lib/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.js +0 -0
- /package/lib/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.less +0 -0
- /package/lib/{assets/images/common/product.png → composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png} +0 -0
|
@@ -0,0 +1,584 @@
|
|
|
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 _lodash = _interopRequireDefault(require("lodash.throttle"));
|
|
13
|
+
|
|
14
|
+
var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
|
|
15
|
+
|
|
16
|
+
var _locale = require("../../../../../locale");
|
|
17
|
+
|
|
18
|
+
var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
var _components = require("../../../../../meta-comp/components");
|
|
23
|
+
|
|
24
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
25
|
+
|
|
26
|
+
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
27
|
+
|
|
28
|
+
var _dateUtil = require("../../../../../utils/dateUtil");
|
|
29
|
+
|
|
30
|
+
var _MonpayCountDown = _interopRequireDefault(require("../MonpayCountDown"));
|
|
31
|
+
|
|
32
|
+
var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
37
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
38
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
39
|
+
__proto__: []
|
|
40
|
+
} instanceof Array && function (d, b) {
|
|
41
|
+
d.__proto__ = b;
|
|
42
|
+
} || function (d, b) {
|
|
43
|
+
for (var p in b) {
|
|
44
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
return _extendStatics(d, b);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return function (d, b) {
|
|
52
|
+
_extendStatics(d, b);
|
|
53
|
+
|
|
54
|
+
function __() {
|
|
55
|
+
this.constructor = d;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
+
};
|
|
60
|
+
}();
|
|
61
|
+
|
|
62
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
63
|
+
__assign = Object.assign || function (t) {
|
|
64
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
65
|
+
s = arguments[i];
|
|
66
|
+
|
|
67
|
+
for (var p in s) {
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return t;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
return __assign.apply(this, arguments);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
79
|
+
function adopt(value) {
|
|
80
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
81
|
+
resolve(value);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
86
|
+
function fulfilled(value) {
|
|
87
|
+
try {
|
|
88
|
+
step(generator.next(value));
|
|
89
|
+
} catch (e) {
|
|
90
|
+
reject(e);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function rejected(value) {
|
|
95
|
+
try {
|
|
96
|
+
step(generator["throw"](value));
|
|
97
|
+
} catch (e) {
|
|
98
|
+
reject(e);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function step(result) {
|
|
103
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
111
|
+
var _ = {
|
|
112
|
+
label: 0,
|
|
113
|
+
sent: function sent() {
|
|
114
|
+
if (t[0] & 1) throw t[1];
|
|
115
|
+
return t[1];
|
|
116
|
+
},
|
|
117
|
+
trys: [],
|
|
118
|
+
ops: []
|
|
119
|
+
},
|
|
120
|
+
f,
|
|
121
|
+
y,
|
|
122
|
+
t,
|
|
123
|
+
g;
|
|
124
|
+
return g = {
|
|
125
|
+
next: verb(0),
|
|
126
|
+
"throw": verb(1),
|
|
127
|
+
"return": verb(2)
|
|
128
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
129
|
+
return this;
|
|
130
|
+
}), g;
|
|
131
|
+
|
|
132
|
+
function verb(n) {
|
|
133
|
+
return function (v) {
|
|
134
|
+
return step([n, v]);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function step(op) {
|
|
139
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
140
|
+
|
|
141
|
+
while (_) {
|
|
142
|
+
try {
|
|
143
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
144
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
145
|
+
|
|
146
|
+
switch (op[0]) {
|
|
147
|
+
case 0:
|
|
148
|
+
case 1:
|
|
149
|
+
t = op;
|
|
150
|
+
break;
|
|
151
|
+
|
|
152
|
+
case 4:
|
|
153
|
+
_.label++;
|
|
154
|
+
return {
|
|
155
|
+
value: op[1],
|
|
156
|
+
done: false
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
case 5:
|
|
160
|
+
_.label++;
|
|
161
|
+
y = op[1];
|
|
162
|
+
op = [0];
|
|
163
|
+
continue;
|
|
164
|
+
|
|
165
|
+
case 7:
|
|
166
|
+
op = _.ops.pop();
|
|
167
|
+
|
|
168
|
+
_.trys.pop();
|
|
169
|
+
|
|
170
|
+
continue;
|
|
171
|
+
|
|
172
|
+
default:
|
|
173
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
174
|
+
_ = 0;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
179
|
+
_.label = op[1];
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
184
|
+
_.label = t[1];
|
|
185
|
+
t = op;
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (t && _.label < t[2]) {
|
|
190
|
+
_.label = t[2];
|
|
191
|
+
|
|
192
|
+
_.ops.push(op);
|
|
193
|
+
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (t[2]) _.ops.pop();
|
|
198
|
+
|
|
199
|
+
_.trys.pop();
|
|
200
|
+
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
op = body.call(thisArg, _);
|
|
205
|
+
} catch (e) {
|
|
206
|
+
op = [6, e];
|
|
207
|
+
y = 0;
|
|
208
|
+
} finally {
|
|
209
|
+
f = t = 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (op[0] & 5) throw op[1];
|
|
214
|
+
return {
|
|
215
|
+
value: op[0] ? op[1] : void 0,
|
|
216
|
+
done: true
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
var defaultData = [{
|
|
222
|
+
imgUrlContent: {
|
|
223
|
+
url: _defImg["default"]
|
|
224
|
+
},
|
|
225
|
+
offerName: 'Product Name Long text',
|
|
226
|
+
salesPrice: 18000000,
|
|
227
|
+
specialPrice: 18000000,
|
|
228
|
+
marketPrice: 19000000,
|
|
229
|
+
discountPercent: 10,
|
|
230
|
+
salePercent: 500,
|
|
231
|
+
sppType: '2'
|
|
232
|
+
}, {
|
|
233
|
+
imgUrlContent: {
|
|
234
|
+
url: _defImg["default"]
|
|
235
|
+
},
|
|
236
|
+
offerName: 'Product Name Long text',
|
|
237
|
+
salesPrice: 18000000,
|
|
238
|
+
specialPrice: 18000000,
|
|
239
|
+
marketPrice: 19000000,
|
|
240
|
+
discountPercent: 10,
|
|
241
|
+
salePercent: 500,
|
|
242
|
+
sppType: '2'
|
|
243
|
+
}, {
|
|
244
|
+
imgUrlContent: {
|
|
245
|
+
url: _defImg["default"]
|
|
246
|
+
},
|
|
247
|
+
offerName: 'Product Name Long text',
|
|
248
|
+
salesPrice: 18000000,
|
|
249
|
+
specialPrice: 18000000,
|
|
250
|
+
marketPrice: 19000000,
|
|
251
|
+
discountPercent: 10,
|
|
252
|
+
salePercent: 500,
|
|
253
|
+
sppType: '2'
|
|
254
|
+
}, {
|
|
255
|
+
imgUrlContent: {
|
|
256
|
+
url: _defImg["default"]
|
|
257
|
+
},
|
|
258
|
+
offerName: 'Product Name Long text',
|
|
259
|
+
salesPrice: 18000000,
|
|
260
|
+
specialPrice: 18000000,
|
|
261
|
+
marketPrice: 19000000,
|
|
262
|
+
discountPercent: 10,
|
|
263
|
+
salePercent: 500,
|
|
264
|
+
sppType: '2'
|
|
265
|
+
}, {
|
|
266
|
+
imgUrlContent: {
|
|
267
|
+
url: _defImg["default"]
|
|
268
|
+
},
|
|
269
|
+
offerName: 'Product Name Long text',
|
|
270
|
+
salesPrice: 18000000,
|
|
271
|
+
specialPrice: 18000000,
|
|
272
|
+
marketPrice: 19000000,
|
|
273
|
+
discountPercent: 10,
|
|
274
|
+
salePercent: 500,
|
|
275
|
+
sppType: '2'
|
|
276
|
+
}, {
|
|
277
|
+
imgUrlContent: {
|
|
278
|
+
url: _defImg["default"]
|
|
279
|
+
},
|
|
280
|
+
offerName: 'Product Name Long text',
|
|
281
|
+
salesPrice: 18000000,
|
|
282
|
+
specialPrice: 18000000,
|
|
283
|
+
marketPrice: 19000000,
|
|
284
|
+
discountPercent: 10,
|
|
285
|
+
salePercent: 500,
|
|
286
|
+
sppType: '2'
|
|
287
|
+
}];
|
|
288
|
+
|
|
289
|
+
var FlashDealPc =
|
|
290
|
+
/** @class */
|
|
291
|
+
function (_super) {
|
|
292
|
+
__extends(FlashDealPc, _super);
|
|
293
|
+
|
|
294
|
+
function FlashDealPc() {
|
|
295
|
+
var _this = _super !== null && _super.apply(this, arguments) || this; // 商品列表排序方式
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
_this.sortType = '';
|
|
299
|
+
_this.pcRowNum = '';
|
|
300
|
+
_this.scrollRef = /*#__PURE__*/_react["default"].createRef();
|
|
301
|
+
_this.state = {
|
|
302
|
+
times: [],
|
|
303
|
+
list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
|
|
304
|
+
return (0, _storeUtil.getMagicStore)("flashSale_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
305
|
+
}, []),
|
|
306
|
+
effDate: '',
|
|
307
|
+
expDate: '',
|
|
308
|
+
now: '',
|
|
309
|
+
isWill: false,
|
|
310
|
+
scrollToLeftDisabled: true,
|
|
311
|
+
scrollToRightDisabled: true
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
_this.getFlashData = function (pageSize, campaign) {
|
|
315
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
316
|
+
var res, pageId;
|
|
317
|
+
return __generator(this, function (_a) {
|
|
318
|
+
switch (_a.label) {
|
|
319
|
+
case 0:
|
|
320
|
+
return [4
|
|
321
|
+
/*yield*/
|
|
322
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/offer/page', {
|
|
323
|
+
campaignId: campaign.campaignId,
|
|
324
|
+
sortType: this.sortType,
|
|
325
|
+
pageIndex: 1,
|
|
326
|
+
pageSize: pageSize
|
|
327
|
+
})];
|
|
328
|
+
|
|
329
|
+
case 1:
|
|
330
|
+
res = _a.sent();
|
|
331
|
+
pageId = window.magicDesign.pageId || '';
|
|
332
|
+
|
|
333
|
+
if (!res.list || res.list.length === 0) {
|
|
334
|
+
// 秒杀场次结束之后,清空列表数据,隐藏秒杀组件
|
|
335
|
+
this.setState({
|
|
336
|
+
list: []
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
if (!(0, _coreUtil.isDesignMode)()) {
|
|
340
|
+
(0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, []);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return [2
|
|
344
|
+
/*return*/
|
|
345
|
+
];
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if (!(0, _coreUtil.isDesignMode)()) {
|
|
349
|
+
(0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, res.list);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
this.setState({
|
|
353
|
+
now: +(0, _dateUtil.newDate)(campaign.now),
|
|
354
|
+
effDate: +(0, _dateUtil.newDate)(campaign.effDate),
|
|
355
|
+
expDate: +(0, _dateUtil.newDate)(campaign.expDate),
|
|
356
|
+
isWill: campaign.cmpState === 'A',
|
|
357
|
+
list: res.list
|
|
358
|
+
});
|
|
359
|
+
return [2
|
|
360
|
+
/*return*/
|
|
361
|
+
];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
_this.getNextFlashSale = function () {
|
|
368
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
369
|
+
var data, pageId;
|
|
370
|
+
return __generator(this, function (_a) {
|
|
371
|
+
switch (_a.label) {
|
|
372
|
+
case 0:
|
|
373
|
+
return [4
|
|
374
|
+
/*yield*/
|
|
375
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/next', {
|
|
376
|
+
excludeExpireCmp: true
|
|
377
|
+
}, 'GET')];
|
|
378
|
+
|
|
379
|
+
case 1:
|
|
380
|
+
data = _a.sent();
|
|
381
|
+
|
|
382
|
+
if (data.length > 0) {
|
|
383
|
+
this.getFlashData(30, data[0]);
|
|
384
|
+
this.setState({
|
|
385
|
+
times: data
|
|
386
|
+
});
|
|
387
|
+
} else {
|
|
388
|
+
// 秒杀场次结束之后,清空列表数据,隐藏秒杀组件
|
|
389
|
+
this.setState({
|
|
390
|
+
times: [],
|
|
391
|
+
list: []
|
|
392
|
+
});
|
|
393
|
+
pageId = window.magicDesign.pageId || '';
|
|
394
|
+
|
|
395
|
+
if (!(0, _coreUtil.isDesignMode)()) {
|
|
396
|
+
(0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, []);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
return [2
|
|
401
|
+
/*return*/
|
|
402
|
+
];
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
_this.setScrollDisabled = function (scrollDom) {
|
|
409
|
+
var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
|
|
410
|
+
var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
|
|
411
|
+
|
|
412
|
+
_this.setState({
|
|
413
|
+
scrollToLeftDisabled: scrollToLeftDisabled,
|
|
414
|
+
scrollToRightDisabled: scrollToRightDisabled
|
|
415
|
+
});
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
_this.scrollToRight = function () {
|
|
419
|
+
var scrollDom = _this.scrollRef.current;
|
|
420
|
+
|
|
421
|
+
if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
|
|
422
|
+
scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
_this.scrollToLeft = function () {
|
|
427
|
+
var scrollDom = _this.scrollRef.current;
|
|
428
|
+
|
|
429
|
+
if (scrollDom.scrollLeft > 0) {
|
|
430
|
+
scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
return _this;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
FlashDealPc.prototype.componentDidMount = function () {
|
|
438
|
+
var _this = this;
|
|
439
|
+
|
|
440
|
+
this.sortType = this.props.panelProps.content.sortType;
|
|
441
|
+
this.getNextFlashSale();
|
|
442
|
+
setTimeout(function () {
|
|
443
|
+
var scrollDom = _this.scrollRef.current;
|
|
444
|
+
|
|
445
|
+
if (scrollDom) {
|
|
446
|
+
_this.setScrollDisabled(scrollDom);
|
|
447
|
+
|
|
448
|
+
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
449
|
+
_this.setScrollDisabled(scrollDom);
|
|
450
|
+
}, 500);
|
|
451
|
+
}
|
|
452
|
+
}, 0);
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
FlashDealPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
456
|
+
var _this = this;
|
|
457
|
+
|
|
458
|
+
if (nextProps.panelProps.content.sortType !== this.sortType) {
|
|
459
|
+
this.sortType = nextProps.panelProps.content.sortType;
|
|
460
|
+
this.getNextFlashSale();
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
if (this.pcRowNum != nextProps.panelProps.customize.pcRowNum) {
|
|
464
|
+
setTimeout(function () {
|
|
465
|
+
var scrollDom = _this.scrollRef.current;
|
|
466
|
+
|
|
467
|
+
if (scrollDom) {
|
|
468
|
+
_this.setScrollDisabled(scrollDom);
|
|
469
|
+
|
|
470
|
+
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
471
|
+
_this.setScrollDisabled(scrollDom);
|
|
472
|
+
}, 500);
|
|
473
|
+
}
|
|
474
|
+
}, 0);
|
|
475
|
+
this.pcRowNum = nextProps.panelProps.customize.pcRowNum;
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
FlashDealPc.prototype.render = function () {
|
|
480
|
+
var _this = this;
|
|
481
|
+
|
|
482
|
+
var panelProps = this.props.panelProps;
|
|
483
|
+
var _a = this.state,
|
|
484
|
+
list = _a.list,
|
|
485
|
+
times = _a.times,
|
|
486
|
+
effDate = _a.effDate,
|
|
487
|
+
expDate = _a.expDate,
|
|
488
|
+
now = _a.now,
|
|
489
|
+
isWill = _a.isWill,
|
|
490
|
+
scrollToLeftDisabled = _a.scrollToLeftDisabled,
|
|
491
|
+
scrollToRightDisabled = _a.scrollToRightDisabled;
|
|
492
|
+
|
|
493
|
+
var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
|
|
494
|
+
|
|
495
|
+
var imgHeight = panelProps.customize.pcRowNum === 6 ? 153 : 193;
|
|
496
|
+
var imgWidth = panelProps.customize.pcRowNum === 6 ? 153 : 193;
|
|
497
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
498
|
+
className: "monpay-flash-deal-pc"
|
|
499
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
500
|
+
className: "flash-deal-title"
|
|
501
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
502
|
+
className: "left"
|
|
503
|
+
}, panelProps.title.icon.open && panelProps.title.icon.url && /*#__PURE__*/_react["default"].createElement("img", {
|
|
504
|
+
alt: "",
|
|
505
|
+
className: "icon",
|
|
506
|
+
src: panelProps.title.icon.url
|
|
507
|
+
}), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
508
|
+
className: "title",
|
|
509
|
+
data: panelProps.title.headline
|
|
510
|
+
}), panelProps.title.countdown.open && /*#__PURE__*/_react["default"].createElement(_MonpayCountDown["default"], {
|
|
511
|
+
bgColor: panelProps.title.countdown.backgroundColor,
|
|
512
|
+
effDate: effDate,
|
|
513
|
+
expDate: expDate,
|
|
514
|
+
fontStyle: panelProps.title.countdown.number,
|
|
515
|
+
now: now,
|
|
516
|
+
refresh: this.getNextFlashSale
|
|
517
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
518
|
+
className: "right",
|
|
519
|
+
onClick: function onClick() {
|
|
520
|
+
return (0, _coreUtil.clickUrl)('/spike');
|
|
521
|
+
}
|
|
522
|
+
}, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
523
|
+
className: "btn",
|
|
524
|
+
data: panelProps.title.button
|
|
525
|
+
}))), panelProps.title.sessionTime.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
526
|
+
className: "flash-deal-time"
|
|
527
|
+
}, times.map(function (item) {
|
|
528
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
529
|
+
className: "item"
|
|
530
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
531
|
+
className: "time"
|
|
532
|
+
}, (0, _dateUtil.formatDayMonthTime)(item.effDate)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
533
|
+
className: "status"
|
|
534
|
+
}, item.cmpState === 'A' ? (0, _locale.i18n)('COMING_SOON') : (0, _locale.i18n)('ON_GOING')));
|
|
535
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
536
|
+
className: "flash-deal-content"
|
|
537
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
538
|
+
className: "arrow-icon left",
|
|
539
|
+
onClick: function onClick() {
|
|
540
|
+
return _this.scrollToLeft();
|
|
541
|
+
}
|
|
542
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
543
|
+
color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
|
|
544
|
+
size: (0, _commonUtil.convertToRem)(20),
|
|
545
|
+
type: "icon-outlined-left"
|
|
546
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
547
|
+
ref: this.scrollRef,
|
|
548
|
+
className: "flash-deal-list"
|
|
549
|
+
}, _list.map(function (item) {
|
|
550
|
+
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
551
|
+
key: item.id,
|
|
552
|
+
data: __assign(__assign({}, item), {
|
|
553
|
+
salePercent: isWill ? 0 : item.salePercent
|
|
554
|
+
}),
|
|
555
|
+
fixHeight: true,
|
|
556
|
+
imgHeight: imgHeight,
|
|
557
|
+
imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
|
|
558
|
+
,
|
|
559
|
+
onItemClick: function onItemClick() {
|
|
560
|
+
return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
561
|
+
},
|
|
562
|
+
panelProps: panelProps.content,
|
|
563
|
+
unknownPrice: isWill
|
|
564
|
+
});
|
|
565
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
566
|
+
className: "arrow-icon right",
|
|
567
|
+
onClick: function onClick() {
|
|
568
|
+
return _this.scrollToRight();
|
|
569
|
+
}
|
|
570
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
571
|
+
color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
|
|
572
|
+
size: (0, _commonUtil.convertToRem)(20),
|
|
573
|
+
type: "icon-outlined-right"
|
|
574
|
+
})))));
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
FlashDealPc.defaultProps = {
|
|
578
|
+
panelProps: {}
|
|
579
|
+
};
|
|
580
|
+
return FlashDealPc;
|
|
581
|
+
}(_react["default"].Component);
|
|
582
|
+
|
|
583
|
+
var _default = FlashDealPc;
|
|
584
|
+
exports["default"] = _default;
|