@fonixtree/magic-design 2.0.110 → 2.0.111
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 +14 -6
- 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 +3 -1
- package/es/common/AffiliateProductModal/index.js +1 -1
- package/es/common/Button/index.js +1 -1
- package/es/common/Collapse/index.js +1 -1
- package/es/common/ImageModal/CommonModal/index.js +1 -1
- package/es/common/ImageModal/CommonSelPicCard/index.js +1 -1
- package/es/common/ImageModal/utils.js +1 -1
- package/es/common/ImagePicker/index.js +1 -1
- package/es/common/InputNumber/index.js +1 -1
- package/es/common/LinkModal/AffiliatePlatform/index.js +325 -0
- package/es/common/LinkModal/index.js +7 -0
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/Slider/index.js +1 -1
- package/es/common/SwitchCollapse/index.js +1 -1
- package/es/common/SystemNotification/Confirm/index.js +1 -1
- package/es/common/UrlPicker/AnchorModal/index.js +1 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -1
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -1
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/es/composite-comp/common/config-panels/InputField/index.js +1 -1
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
- package/es/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
- package/es/composite-comp/dito/components/Bargain/index.js +86 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
- package/es/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
- package/es/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/constants/component-types.js +6 -2
- package/es/constants/index.js +6 -1
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/index.js +1 -1
- package/es/core/Designer/AppointmentModal/index.js +1 -1
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
- package/es/core/Designer/ChatRobot/index.js +1 -1
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +1 -1
- package/es/core/Designer/ToolBarModal/index.js +1 -1
- package/es/core/Designer/index.js +2 -2
- package/es/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/es/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/utils/businessUtil.js +18 -3
- package/es/utils/coreUtil.js +24 -24
- package/lib/assets/fonts/magic-box-iconfont.css +14 -6
- 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 +3 -1
- package/lib/common/AffiliateProductModal/index.js +1 -1
- package/lib/common/Button/index.js +1 -1
- package/lib/common/Collapse/index.js +1 -1
- package/lib/common/ImageModal/CommonModal/index.js +1 -1
- package/lib/common/ImageModal/CommonSelPicCard/index.js +1 -1
- package/lib/common/ImageModal/utils.js +1 -1
- package/lib/common/ImagePicker/index.js +1 -1
- package/lib/common/InputNumber/index.js +1 -1
- package/lib/common/LinkModal/AffiliatePlatform/index.js +325 -0
- package/lib/common/LinkModal/index.js +7 -0
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/Slider/index.js +1 -1
- package/lib/common/SwitchCollapse/index.js +1 -1
- package/lib/common/SystemNotification/Confirm/index.js +1 -1
- package/lib/common/UrlPicker/AnchorModal/index.js +1 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -1
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/lib/composite-comp/common/config-panels/InputField/index.js +1 -1
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
- package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
- package/lib/composite-comp/dito/components/Bargain/index.js +86 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
- package/lib/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/constants/component-types.js +6 -2
- package/lib/constants/index.js +6 -1
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/index.js +1 -1
- package/lib/core/Designer/AppointmentModal/index.js +1 -1
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
- package/lib/core/Designer/ChatRobot/index.js +1 -1
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +1 -1
- package/lib/core/Designer/ToolBarModal/index.js +1 -1
- package/lib/core/Designer/index.js +2 -2
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/utils/businessUtil.js +18 -3
- package/lib/utils/coreUtil.js +24 -24
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _antd = require("
|
|
10
|
+
var _antd = require("antd4");
|
|
11
11
|
|
|
12
12
|
var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
|
|
13
13
|
|
|
@@ -59,6 +59,8 @@ var _Orders = _interopRequireDefault(require("../composite-comp/dito/components/
|
|
|
59
59
|
|
|
60
60
|
var _CommonFunctions = _interopRequireDefault(require("../composite-comp/dito/components/CommonFunctions"));
|
|
61
61
|
|
|
62
|
+
var _Bargain = _interopRequireDefault(require("../composite-comp/dito/components/Bargain"));
|
|
63
|
+
|
|
62
64
|
var _MonpayRecommend = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayRecommend"));
|
|
63
65
|
|
|
64
66
|
var _MonpayFlashDeal = _interopRequireDefault(require("../composite-comp/monpay/components/MonpayFlashDeal"));
|
|
@@ -123,6 +125,8 @@ var _OrdersConfig = _interopRequireDefault(require("../composite-comp/dito/confi
|
|
|
123
125
|
|
|
124
126
|
var _CommonFunctionsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CommonFunctionsConfig"));
|
|
125
127
|
|
|
128
|
+
var _BargainConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/BargainConfig"));
|
|
129
|
+
|
|
126
130
|
var _MonpayRecommendConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayRecommendConfig"));
|
|
127
131
|
|
|
128
132
|
var _MonpayFlashDealConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpayFlashDealConfig"));
|
|
@@ -181,13 +185,13 @@ var _a, _b, _c; // 组件
|
|
|
181
185
|
/**
|
|
182
186
|
* 渲染组件索引
|
|
183
187
|
*/
|
|
184
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_InterestProducts["default"].type] = _InterestProducts["default"], _a[_Bundle["default"].type] = _Bundle["default"], _a[_MerchantSales["default"].type] = _MerchantSales["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
|
|
188
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_MonpayFlashDeal["default"].type] = _MonpayFlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MonpayRecommend["default"].type] = _MonpayRecommend["default"], _a[_InterestProducts["default"].type] = _InterestProducts["default"], _a[_Bundle["default"].type] = _Bundle["default"], _a[_MerchantSales["default"].type] = _MerchantSales["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a);
|
|
185
189
|
/**
|
|
186
190
|
* 一级配置面板索引
|
|
187
191
|
*/
|
|
188
192
|
|
|
189
193
|
exports.componentMap = componentMap;
|
|
190
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_InterestProducts["default"].type] = _InterestProductsConfig["default"], _b[_Bundle["default"].type] = _BundleConfig["default"], _b[_MerchantSales["default"].type] = _MerchantSalesConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
|
|
194
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_MonpayFlashDeal["default"].type] = _MonpayFlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MonpayRecommend["default"].type] = _MonpayRecommendConfig["default"], _b[_InterestProducts["default"].type] = _InterestProductsConfig["default"], _b[_Bundle["default"].type] = _BundleConfig["default"], _b[_MerchantSales["default"].type] = _MerchantSalesConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b);
|
|
191
195
|
/**
|
|
192
196
|
* 二级配置面板索引
|
|
193
197
|
*/
|
package/lib/constants/index.js
CHANGED
|
@@ -86,7 +86,8 @@ var urlTypeMap = {
|
|
|
86
86
|
AFFILIATE_PRODUCT: 'AffiliateProduct',
|
|
87
87
|
AFFILIATE_STORE: 'AffiliateStore',
|
|
88
88
|
ANCHOR: 'Anchor',
|
|
89
|
-
MINI_API: 'MiniApi'
|
|
89
|
+
MINI_API: 'MiniApi',
|
|
90
|
+
AFFILIATE_PLATFORM: 'AffiliatePlatform'
|
|
90
91
|
};
|
|
91
92
|
exports.urlTypeMap = urlTypeMap;
|
|
92
93
|
var respCodeMap = {
|
|
@@ -149,6 +150,10 @@ var compInfoMap = {
|
|
|
149
150
|
name: 'Flash Deal',
|
|
150
151
|
icon: 'icon-flash-deal'
|
|
151
152
|
},
|
|
153
|
+
BARGAIN: {
|
|
154
|
+
name: 'Bargain',
|
|
155
|
+
icon: 'icon-kanjia'
|
|
156
|
+
},
|
|
152
157
|
MONPAY_FLASH_DEAL: {
|
|
153
158
|
name: 'Monpay Flash Deal',
|
|
154
159
|
icon: 'icon-flash-deal'
|
|
@@ -7,7 +7,7 @@ exports.fontWeightList = exports.fontSizeList = exports.fontFamilyList = exports
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _antd = require("
|
|
10
|
+
var _antd = require("antd4");
|
|
11
11
|
|
|
12
12
|
var _ToolBtn = _interopRequireDefault(require("./ToolBtn"));
|
|
13
13
|
|
|
@@ -13,7 +13,7 @@ var _uuid = require("uuid");
|
|
|
13
13
|
|
|
14
14
|
var _mobxReact = require("mobx-react");
|
|
15
15
|
|
|
16
|
-
var _antd = require("
|
|
16
|
+
var _antd = require("antd4");
|
|
17
17
|
|
|
18
18
|
var _ChatRobot = _interopRequireDefault(require("./ChatRobot"));
|
|
19
19
|
|
|
@@ -618,13 +618,13 @@ function (_super) {
|
|
|
618
618
|
|
|
619
619
|
_this.renderHeader = function () {
|
|
620
620
|
return /*#__PURE__*/_react["default"].createElement(_QuickMenuBar["default"], {
|
|
621
|
-
auditState: _this.props.auditState,
|
|
622
621
|
device: _this.state.device,
|
|
623
622
|
language: _this.props.language,
|
|
624
623
|
onBtnClick: _this.onQuickMenuClick,
|
|
625
624
|
onHtmlBack: _this.onHtmlBack,
|
|
626
625
|
onHtmlSave: _this.onHtmlSave,
|
|
627
626
|
outputType: _this.props.outputType,
|
|
627
|
+
pageState: _this.props.pageState,
|
|
628
628
|
pageType: _this.props.pageType,
|
|
629
629
|
redoDisable: !_this.history.redoAble(),
|
|
630
630
|
undoDisable: !_this.history.undoAble()
|
|
@@ -28,7 +28,8 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
28
28
|
var type = urlObj.type,
|
|
29
29
|
value = urlObj.value,
|
|
30
30
|
offerId = urlObj.offerId,
|
|
31
|
-
productId = urlObj.productId
|
|
31
|
+
productId = urlObj.productId,
|
|
32
|
+
name = urlObj.name;
|
|
32
33
|
|
|
33
34
|
switch (type) {
|
|
34
35
|
// 锚点跳转
|
|
@@ -206,6 +207,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
206
207
|
};
|
|
207
208
|
break;
|
|
208
209
|
|
|
210
|
+
case _constants.urlTypeMap.AFFILIATE_PLATFORM:
|
|
211
|
+
// affiliate platform
|
|
212
|
+
link = "/platformDetail/" + value;
|
|
213
|
+
params = {
|
|
214
|
+
action: 'jump',
|
|
215
|
+
params: {
|
|
216
|
+
type: 'AFFILIATE_PLATFORM',
|
|
217
|
+
url: value
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
break;
|
|
221
|
+
|
|
209
222
|
default:
|
|
210
223
|
var map = {
|
|
211
224
|
'/main/cart': 'CART',
|
|
@@ -228,8 +241,9 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
228
241
|
params = {
|
|
229
242
|
action: 'jump',
|
|
230
243
|
params: {
|
|
231
|
-
type: map[link],
|
|
232
|
-
link: link
|
|
244
|
+
type: map[link] || name,
|
|
245
|
+
link: link,
|
|
246
|
+
url: link
|
|
233
247
|
}
|
|
234
248
|
};
|
|
235
249
|
}
|
|
@@ -433,6 +447,7 @@ var getPromotionList = function getPromotionList(offer) {
|
|
|
433
447
|
var PROMOTION_TYPE_MAP = {
|
|
434
448
|
2: 'FLASH',
|
|
435
449
|
4: 'Group',
|
|
450
|
+
12: 'Bargain',
|
|
436
451
|
C: 'Discount',
|
|
437
452
|
D: 'Discount',
|
|
438
453
|
G: 'Gift'
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -310,10 +310,9 @@ var clickUrl = function clickUrl(url) {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
313
|
+
// if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
|
|
314
|
+
// return;
|
|
315
|
+
// }
|
|
317
316
|
|
|
318
317
|
var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
|
|
319
318
|
link = _b.link,
|
|
@@ -337,23 +336,21 @@ var clickUrl = function clickUrl(url) {
|
|
|
337
336
|
|
|
338
337
|
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
339
338
|
(0, _androidUtil.sendToApp)(data);
|
|
340
|
-
} else if ((0, _androidUtil.browserVersion)().isNuriApp && params.link && params.link.startsWith('http')) {
|
|
341
|
-
// 兼容Nuri app的 绝对路径跳转
|
|
342
|
-
var urlTemp = "" + params.link + (params.link.includes('?') ? '&' : '?') + "userToken=" + (localStorage.getItem('h5Token') || '');
|
|
343
|
-
(0, _androidUtil.sendToApp)({
|
|
344
|
-
type: 'jumpBrowser',
|
|
345
|
-
params: {
|
|
346
|
-
url: urlTemp
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
339
|
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
350
|
-
//
|
|
351
|
-
(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
340
|
+
// 跳转链接是个绝对路径
|
|
341
|
+
if (params.type === 'Gamezop') {
|
|
342
|
+
// Nuri 对接 Gamezop 特殊情况
|
|
343
|
+
(0, _androidUtil.sendToApp)(data);
|
|
344
|
+
} else {
|
|
345
|
+
// Nuri 抽奖系统对接
|
|
346
|
+
var urlTemp = "" + params.link + (params.link.includes('?') ? '&' : '?') + "userToken=" + (localStorage.getItem('h5Token') || '');
|
|
347
|
+
(0, _androidUtil.sendToApp)({
|
|
348
|
+
type: 'jumpBrowser',
|
|
349
|
+
params: {
|
|
350
|
+
url: urlTemp
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
}
|
|
357
354
|
} else {
|
|
358
355
|
// 视频
|
|
359
356
|
if (params.type === 'VIDEO') {
|
|
@@ -381,7 +378,10 @@ var clickUrl = function clickUrl(url) {
|
|
|
381
378
|
if (((_a = window === null || window === void 0 ? void 0 : window.magicDesign) === null || _a === void 0 ? void 0 : _a.projectCode) === 'nuri') {
|
|
382
379
|
// 输入的是完整的跳转地址
|
|
383
380
|
if (isUrl(link)) {
|
|
384
|
-
if (
|
|
381
|
+
if (params.type === 'Gamezop') {
|
|
382
|
+
// Nuri 对接游戏页面
|
|
383
|
+
window.open(link);
|
|
384
|
+
} else if (!link.includes(window.location.host)) {
|
|
385
385
|
// 跳转外链 需要把userToken带上
|
|
386
386
|
if (link.includes('?')) {
|
|
387
387
|
var a = link + "&userToken=" + (localStorage.getItem('h5Token') || '');
|
|
@@ -396,9 +396,9 @@ var clickUrl = function clickUrl(url) {
|
|
|
396
396
|
} else {
|
|
397
397
|
(0, _commonUtil.navigateTo)(link);
|
|
398
398
|
}
|
|
399
|
+
} else {
|
|
400
|
+
(0, _commonUtil.navigateTo)(link);
|
|
399
401
|
}
|
|
400
|
-
|
|
401
|
-
(0, _commonUtil.navigateTo)(link);
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
|
|
@@ -452,7 +452,7 @@ var copyNode = function copyNode(value, parentId) {
|
|
|
452
452
|
exports.copyNode = copyNode;
|
|
453
453
|
|
|
454
454
|
var isAutoAudit = function isAutoAudit() {
|
|
455
|
-
return window.
|
|
455
|
+
return window.magicDesign.autoAudit || window.partyType === _constants.partyTypeMap.PLATFORM;
|
|
456
456
|
};
|
|
457
457
|
|
|
458
458
|
exports.isAutoAudit = isAutoAudit;
|