@fonixtree/magic-design 2.0.190 → 3.0.3
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/mobile/index.js +1 -2
- 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/mobile/index.js +1 -2
- 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
|
@@ -267,18 +267,6 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
267
267
|
};
|
|
268
268
|
break;
|
|
269
269
|
|
|
270
|
-
case _constants.urlTypeMap.BUSINESS_TYPE:
|
|
271
|
-
// 业态列表
|
|
272
|
-
link = '';
|
|
273
|
-
params = {
|
|
274
|
-
action: 'jump',
|
|
275
|
-
params: {
|
|
276
|
-
type: 'SEARCH_STORE_LIST_PAGE',
|
|
277
|
-
storeBizTypeId: value
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
break;
|
|
281
|
-
|
|
282
270
|
default:
|
|
283
271
|
var map = {
|
|
284
272
|
'/main/cart': 'CART',
|
|
@@ -297,8 +285,7 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
297
285
|
'/account/wallet': 'WEBVIEW',
|
|
298
286
|
'/product/GroupBuy': 'GROUP',
|
|
299
287
|
'/search-page': 'SEARCH_PAGE',
|
|
300
|
-
'/commission': 'COMMISSION'
|
|
301
|
-
'/location': 'ADD_ADDRESS_PAGE'
|
|
288
|
+
'/commission': 'COMMISSION'
|
|
302
289
|
};
|
|
303
290
|
var typeTemp = map[link];
|
|
304
291
|
|
|
@@ -383,17 +370,6 @@ var parseUrl = function parseUrl(url) {
|
|
|
383
370
|
}
|
|
384
371
|
};
|
|
385
372
|
break;
|
|
386
|
-
|
|
387
|
-
case _constants.urlType.STORE:
|
|
388
|
-
// 店铺详情
|
|
389
|
-
params = {
|
|
390
|
-
action: 'jump',
|
|
391
|
-
params: {
|
|
392
|
-
type: 'STORE',
|
|
393
|
-
storeId: arg1
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
break;
|
|
397
373
|
// 海报页面
|
|
398
374
|
|
|
399
375
|
case _constants.urlType.CUSTOMIZED:
|
|
@@ -475,8 +451,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
475
451
|
'/product/GroupBuy': 'GROUP',
|
|
476
452
|
'/search-page': 'SEARCH_PAGE',
|
|
477
453
|
'/main/my-commission': 'WALLET',
|
|
478
|
-
'/commission': 'COMMISSION'
|
|
479
|
-
'/location': 'ADD_ADDRESS_PAGE'
|
|
454
|
+
'/commission': 'COMMISSION'
|
|
480
455
|
};
|
|
481
456
|
link = url;
|
|
482
457
|
params = {
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -21,9 +21,9 @@ exports.goLogin = goLogin;
|
|
|
21
21
|
exports.importAsync = void 0;
|
|
22
22
|
exports.isLogin = isLogin;
|
|
23
23
|
exports.navigateBack = navigateBack;
|
|
24
|
-
exports.onListenTouch = exports.nextTick = exports.
|
|
24
|
+
exports.onListenTouch = exports.nextTick = exports.navigateTo = void 0;
|
|
25
25
|
exports.pushGA = pushGA;
|
|
26
|
-
exports.setDefaultAddressFromIP = exports.
|
|
26
|
+
exports.setDefaultAddressFromIP = exports.pxToRem = void 0;
|
|
27
27
|
exports.shareFacebook = shareFacebook;
|
|
28
28
|
exports.shareLinkedin = shareLinkedin;
|
|
29
29
|
exports.shareTwitter = shareTwitter;
|
|
@@ -505,29 +505,13 @@ var getUrlParams = function getUrlParams(name) {
|
|
|
505
505
|
if (r != null) return unescape(r[2]);
|
|
506
506
|
return null;
|
|
507
507
|
};
|
|
508
|
-
|
|
509
|
-
exports.getUrlParams = getUrlParams;
|
|
510
|
-
|
|
511
|
-
var needReverse = function needReverse() {
|
|
512
|
-
return ((0, _storeUtil.getStore)(_constants.STORAGE_KEY.FISHX_LOCALE) || (0, _storeUtil.getStore)(_constants.STORAGE_KEY.LOCALE)) === 'ar';
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
exports.needReverse = needReverse;
|
|
516
|
-
|
|
517
|
-
var reverseStrArr = function reverseStrArr(arr) {
|
|
518
|
-
if (needReverse()) {
|
|
519
|
-
return arr.reverse().join(' ').replace('+ ', '+').replace(': ', ':');
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
return arr.join(' ').replace(' +', '+').replace(' :', ':');
|
|
523
|
-
};
|
|
524
508
|
/**
|
|
525
509
|
* 补0 函数
|
|
526
510
|
* @param {*} num 数字
|
|
527
511
|
*/
|
|
528
512
|
|
|
529
513
|
|
|
530
|
-
exports.
|
|
514
|
+
exports.getUrlParams = getUrlParams;
|
|
531
515
|
|
|
532
516
|
var addZero = function addZero(num) {
|
|
533
517
|
return String(num).length === 1 ? "0" + String(num) : String(num);
|
|
@@ -954,16 +938,16 @@ var pxToRem = function pxToRem(styleObj) {
|
|
|
954
938
|
if (styleObj.hasOwnProperty(key)) {
|
|
955
939
|
var value = styleObj[key];
|
|
956
940
|
|
|
957
|
-
if (
|
|
958
|
-
var values = value.split(' ');
|
|
959
|
-
var remValues = values.map(function (value) {
|
|
960
|
-
return value.endsWith('px') ? convertToRem(value) : value;
|
|
961
|
-
});
|
|
962
|
-
remObj[key] = remValues.join(' ');
|
|
963
|
-
} else if (typeof value === 'string' && value.endsWith('px')) {
|
|
941
|
+
if (typeof value === 'string' && value.endsWith('px')) {
|
|
964
942
|
remObj[key] = convertToRem(value.split('px')[0]);
|
|
965
943
|
} else if (typeof value === 'number') {
|
|
966
944
|
remObj[key] = ['opacity', 'lineHeight', 'zIndex', 'fontWeight'].includes(key) ? value : convertToRem(value);
|
|
945
|
+
} else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
|
|
946
|
+
var paddingValues = value.split(' ');
|
|
947
|
+
var remPaddingValues = paddingValues.map(function (paddingValue) {
|
|
948
|
+
return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
|
|
949
|
+
});
|
|
950
|
+
remObj[key] = remPaddingValues.join(' ');
|
|
967
951
|
} else {
|
|
968
952
|
remObj[key] = value;
|
|
969
953
|
}
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -335,9 +335,7 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
if ((0, _androidUtil.browserVersion)().isAshitaApp || (0, _androidUtil.browserVersion)().flutterApp || (0, _androidUtil.browserVersion)().isDelivistaApp) {
|
|
338
|
+
if ((0, _androidUtil.browserVersion)().isAshitaApp || (0, _androidUtil.browserVersion)().flutterApp) {
|
|
341
339
|
(0, _androidUtil.sendToApp)(data);
|
|
342
340
|
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
343
341
|
// 跳转链接是个绝对路径
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = AffiliatePlatform;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _antd = require("antd4");
|
|
13
|
-
|
|
14
|
-
var _locale = require("../../../locale");
|
|
15
|
-
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
21
|
-
__assign = Object.assign || function (t) {
|
|
22
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
23
|
-
s = arguments[i];
|
|
24
|
-
|
|
25
|
-
for (var p in s) {
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return t;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
return __assign.apply(this, arguments);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) {
|
|
38
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
39
|
-
resolve(value);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) {
|
|
45
|
-
try {
|
|
46
|
-
step(generator.next(value));
|
|
47
|
-
} catch (e) {
|
|
48
|
-
reject(e);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function rejected(value) {
|
|
53
|
-
try {
|
|
54
|
-
step(generator["throw"](value));
|
|
55
|
-
} catch (e) {
|
|
56
|
-
reject(e);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function step(result) {
|
|
61
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
69
|
-
var _ = {
|
|
70
|
-
label: 0,
|
|
71
|
-
sent: function sent() {
|
|
72
|
-
if (t[0] & 1) throw t[1];
|
|
73
|
-
return t[1];
|
|
74
|
-
},
|
|
75
|
-
trys: [],
|
|
76
|
-
ops: []
|
|
77
|
-
},
|
|
78
|
-
f,
|
|
79
|
-
y,
|
|
80
|
-
t,
|
|
81
|
-
g;
|
|
82
|
-
return g = {
|
|
83
|
-
next: verb(0),
|
|
84
|
-
"throw": verb(1),
|
|
85
|
-
"return": verb(2)
|
|
86
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
87
|
-
return this;
|
|
88
|
-
}), g;
|
|
89
|
-
|
|
90
|
-
function verb(n) {
|
|
91
|
-
return function (v) {
|
|
92
|
-
return step([n, v]);
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function step(op) {
|
|
97
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
98
|
-
|
|
99
|
-
while (_) {
|
|
100
|
-
try {
|
|
101
|
-
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;
|
|
102
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
103
|
-
|
|
104
|
-
switch (op[0]) {
|
|
105
|
-
case 0:
|
|
106
|
-
case 1:
|
|
107
|
-
t = op;
|
|
108
|
-
break;
|
|
109
|
-
|
|
110
|
-
case 4:
|
|
111
|
-
_.label++;
|
|
112
|
-
return {
|
|
113
|
-
value: op[1],
|
|
114
|
-
done: false
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
case 5:
|
|
118
|
-
_.label++;
|
|
119
|
-
y = op[1];
|
|
120
|
-
op = [0];
|
|
121
|
-
continue;
|
|
122
|
-
|
|
123
|
-
case 7:
|
|
124
|
-
op = _.ops.pop();
|
|
125
|
-
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
|
|
128
|
-
continue;
|
|
129
|
-
|
|
130
|
-
default:
|
|
131
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
132
|
-
_ = 0;
|
|
133
|
-
continue;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
137
|
-
_.label = op[1];
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
142
|
-
_.label = t[1];
|
|
143
|
-
t = op;
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (t && _.label < t[2]) {
|
|
148
|
-
_.label = t[2];
|
|
149
|
-
|
|
150
|
-
_.ops.push(op);
|
|
151
|
-
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (t[2]) _.ops.pop();
|
|
156
|
-
|
|
157
|
-
_.trys.pop();
|
|
158
|
-
|
|
159
|
-
continue;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
op = body.call(thisArg, _);
|
|
163
|
-
} catch (e) {
|
|
164
|
-
op = [6, e];
|
|
165
|
-
y = 0;
|
|
166
|
-
} finally {
|
|
167
|
-
f = t = 0;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (op[0] & 5) throw op[1];
|
|
172
|
-
return {
|
|
173
|
-
value: op[0] ? op[1] : void 0,
|
|
174
|
-
done: true
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
var paginationParams = {
|
|
180
|
-
pageSize: 50,
|
|
181
|
-
pageIndex: 1
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
function AffiliatePlatform(props) {
|
|
185
|
-
var _this = this;
|
|
186
|
-
|
|
187
|
-
var _onChange = props.onChange,
|
|
188
|
-
_fetch = props._fetch;
|
|
189
|
-
|
|
190
|
-
var _a = (0, _react.useState)([]),
|
|
191
|
-
list = _a[0],
|
|
192
|
-
setList = _a[1];
|
|
193
|
-
|
|
194
|
-
var _b = (0, _react.useState)(false),
|
|
195
|
-
loading = _b[0],
|
|
196
|
-
setLoading = _b[1];
|
|
197
|
-
|
|
198
|
-
var queryBizType = function queryBizType(params) {
|
|
199
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
200
|
-
var res;
|
|
201
|
-
return __generator(this, function (_a) {
|
|
202
|
-
switch (_a.label) {
|
|
203
|
-
case 0:
|
|
204
|
-
setLoading(true);
|
|
205
|
-
return [4
|
|
206
|
-
/*yield*/
|
|
207
|
-
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/biztype/list", params, 'GET')];
|
|
208
|
-
|
|
209
|
-
case 1:
|
|
210
|
-
res = _a.sent();
|
|
211
|
-
paginationParams.total = 50;
|
|
212
|
-
setList(res || []);
|
|
213
|
-
setLoading(false);
|
|
214
|
-
return [2
|
|
215
|
-
/*return*/
|
|
216
|
-
];
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
(0, _react.useEffect)(function () {
|
|
223
|
-
queryBizType(paginationParams);
|
|
224
|
-
}, []);
|
|
225
|
-
var columns = [{
|
|
226
|
-
title: (0, _locale.i18n)('NAME'),
|
|
227
|
-
dataIndex: 'bizTypeName'
|
|
228
|
-
}, {
|
|
229
|
-
title: (0, _locale.i18n)('LOGO'),
|
|
230
|
-
dataIndex: 'logo',
|
|
231
|
-
render: function render(val) {
|
|
232
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
233
|
-
alt: "",
|
|
234
|
-
src: (val === null || val === void 0 ? void 0 : val.url) || '',
|
|
235
|
-
style: {
|
|
236
|
-
maxWidth: '50px',
|
|
237
|
-
maxHeight: '50px'
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
}];
|
|
242
|
-
var rowSelection = {
|
|
243
|
-
onChange: function onChange(selectedRowKeys, selectedRow) {
|
|
244
|
-
_onChange({
|
|
245
|
-
value: selectedRow[0].storeBizTypeId,
|
|
246
|
-
name: selectedRow[0].bizTypeName
|
|
247
|
-
});
|
|
248
|
-
},
|
|
249
|
-
type: 'radio'
|
|
250
|
-
};
|
|
251
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
252
|
-
style: {
|
|
253
|
-
height: 450
|
|
254
|
-
}
|
|
255
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
256
|
-
bordered: false,
|
|
257
|
-
columns: columns,
|
|
258
|
-
dataSource: list,
|
|
259
|
-
defaultExpandAllRows: true,
|
|
260
|
-
loading: loading,
|
|
261
|
-
pagination: __assign(__assign({}, paginationParams), {
|
|
262
|
-
onChange: function onChange(page) {
|
|
263
|
-
paginationParams.pageIndex = page;
|
|
264
|
-
queryBizType(paginationParams);
|
|
265
|
-
},
|
|
266
|
-
showSizeChanger: false
|
|
267
|
-
}),
|
|
268
|
-
rowKey: "storeBizTypeId",
|
|
269
|
-
rowSelection: rowSelection,
|
|
270
|
-
scroll: {
|
|
271
|
-
y: 350
|
|
272
|
-
}
|
|
273
|
-
}));
|
|
274
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
|
-
|
|
12
|
-
var _defaultJSON = require("./defaultJSON");
|
|
13
|
-
|
|
14
|
-
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
23
|
-
|
|
24
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
-
__proto__: []
|
|
28
|
-
} instanceof Array && function (d, b) {
|
|
29
|
-
d.__proto__ = b;
|
|
30
|
-
} || function (d, b) {
|
|
31
|
-
for (var p in b) {
|
|
32
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
return _extendStatics(d, b);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return function (d, b) {
|
|
40
|
-
_extendStatics(d, b);
|
|
41
|
-
|
|
42
|
-
function __() {
|
|
43
|
-
this.constructor = d;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
-
};
|
|
48
|
-
}();
|
|
49
|
-
|
|
50
|
-
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
51
|
-
var c = arguments.length,
|
|
52
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
53
|
-
d;
|
|
54
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
55
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
56
|
-
}
|
|
57
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var Wallet =
|
|
61
|
-
/** @class */
|
|
62
|
-
function (_super) {
|
|
63
|
-
__extends(Wallet, _super);
|
|
64
|
-
|
|
65
|
-
function Wallet() {
|
|
66
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
Wallet.prototype.render = function () {
|
|
70
|
-
var nodeData = this.props.nodeData;
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
72
|
-
data: nodeData
|
|
73
|
-
}));
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
Wallet.defaultProps = {};
|
|
77
|
-
Wallet.type = 'WALLET_ASHITA';
|
|
78
|
-
Wallet.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
79
|
-
Wallet = __decorate([_compositeDecorator["default"]], Wallet);
|
|
80
|
-
return Wallet;
|
|
81
|
-
}(_react.Component);
|
|
82
|
-
|
|
83
|
-
var _default = Wallet;
|
|
84
|
-
exports["default"] = _default;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDefaultJSON = void 0;
|
|
7
|
-
|
|
8
|
-
var _uuid = require("uuid");
|
|
9
|
-
|
|
10
|
-
var _constants = require("../../../../constants");
|
|
11
|
-
|
|
12
|
-
var getDefaultJSON = function getDefaultJSON() {
|
|
13
|
-
var _a;
|
|
14
|
-
|
|
15
|
-
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
16
|
-
var groupId = (0, _uuid.v4)();
|
|
17
|
-
return {
|
|
18
|
-
id: groupId,
|
|
19
|
-
type: 'LOCATION',
|
|
20
|
-
content: {
|
|
21
|
-
logo: {
|
|
22
|
-
id: (0, _uuid.v4)(),
|
|
23
|
-
open: true,
|
|
24
|
-
color: '#8C52FF'
|
|
25
|
-
},
|
|
26
|
-
address: {
|
|
27
|
-
id: (0, _uuid.v4)(),
|
|
28
|
-
open: true,
|
|
29
|
-
type: 'TEXT',
|
|
30
|
-
specialContent: [],
|
|
31
|
-
text: '',
|
|
32
|
-
content: {
|
|
33
|
-
sizeType: 'Customize font styles',
|
|
34
|
-
fontFamily: defaultFontFamily,
|
|
35
|
-
fontWeight: 600,
|
|
36
|
-
fontSize: 14,
|
|
37
|
-
color: '#000',
|
|
38
|
-
urlDisabled: true
|
|
39
|
-
},
|
|
40
|
-
underline: {
|
|
41
|
-
open: false,
|
|
42
|
-
textDecorationColor: '',
|
|
43
|
-
textDecorationStyle: 'solid'
|
|
44
|
-
},
|
|
45
|
-
vertical: {
|
|
46
|
-
open: false,
|
|
47
|
-
lineHeight: 18
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
customer: {
|
|
51
|
-
id: (0, _uuid.v4)(),
|
|
52
|
-
open: true,
|
|
53
|
-
type: 'TEXT',
|
|
54
|
-
specialContent: [],
|
|
55
|
-
text: '',
|
|
56
|
-
content: {
|
|
57
|
-
sizeType: 'Customize font styles',
|
|
58
|
-
fontFamily: defaultFontFamily,
|
|
59
|
-
fontWeight: 400,
|
|
60
|
-
fontSize: 12,
|
|
61
|
-
color: '#848484',
|
|
62
|
-
urlDisabled: true
|
|
63
|
-
},
|
|
64
|
-
underline: {
|
|
65
|
-
open: false,
|
|
66
|
-
textDecorationColor: '',
|
|
67
|
-
textDecorationStyle: 'solid'
|
|
68
|
-
},
|
|
69
|
-
vertical: {
|
|
70
|
-
open: false,
|
|
71
|
-
lineHeight: 18
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
arrowIcon: {
|
|
75
|
-
id: (0, _uuid.v4)(),
|
|
76
|
-
open: true,
|
|
77
|
-
color: '#545454'
|
|
78
|
-
},
|
|
79
|
-
locationBg: {
|
|
80
|
-
open: true,
|
|
81
|
-
color: '#F2F2F2'
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
spacing: {
|
|
85
|
-
mobile: {
|
|
86
|
-
paddingTop: 0,
|
|
87
|
-
paddingBottom: 0,
|
|
88
|
-
paddingLeft: 0,
|
|
89
|
-
paddingRight: 0
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
customize: {
|
|
93
|
-
layout: 'layout1'
|
|
94
|
-
},
|
|
95
|
-
background: {
|
|
96
|
-
opacity: 100,
|
|
97
|
-
color: '#fff',
|
|
98
|
-
image: '',
|
|
99
|
-
bgType: 'color'
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
exports.getDefaultJSON = getDefaultJSON;
|
|
Binary file
|