@fonixtree/magic-design 2.0.109 → 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 +27 -7
- package/es/assets/fonts/magic-box-iconfont.css.bak +71 -7
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +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/index.js +52 -50
- 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/AffiliateProductTable/index.js +15 -27
- package/es/common/LinkModal/AffiliateStore/index.js +11 -23
- package/es/common/LinkModal/BundleCampaign/index.js +15 -27
- package/es/common/LinkModal/CatgTable/index.js +3 -11
- package/es/common/LinkModal/CouponTable/index.js +3 -11
- package/es/common/LinkModal/CustomTable/index.js +3 -11
- package/es/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/es/common/LinkModal/FunctionTable/index.js +4 -11
- package/es/common/LinkModal/MiniAppApi/index.js +4 -12
- package/es/common/LinkModal/MiniAppTable/index.js +3 -11
- package/es/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/es/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/es/common/LinkModal/ShareUrl/index.js +3 -11
- package/es/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/es/common/LinkModal/StoreTable/index.js +11 -23
- package/es/common/LinkModal/index.js +15 -19
- 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/common/VideoUpload/index.js +1 -0
- 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/Orders/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
- 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/InterestProducts/mobile/index.js +11 -6
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- 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 +27 -5
- 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 +60 -11
- package/es/core/Designer/ToolBarModal/index.js +1 -1
- package/es/core/Designer/index.js +22 -4
- package/es/core/SelectUrl/index.js +0 -1
- package/es/index.js +0 -8
- 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/androidUtil.js +5 -2
- package/es/utils/businessUtil.js +18 -3
- package/es/utils/commonUtil.js +2 -2
- package/es/utils/coreUtil.js +35 -25
- package/lib/assets/fonts/magic-box-iconfont.css +27 -7
- package/lib/assets/fonts/magic-box-iconfont.css.bak +71 -7
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +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/index.js +52 -50
- 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/AffiliateProductTable/index.js +15 -27
- package/lib/common/LinkModal/AffiliateStore/index.js +11 -23
- package/lib/common/LinkModal/BundleCampaign/index.js +15 -27
- package/lib/common/LinkModal/CatgTable/index.js +3 -11
- package/lib/common/LinkModal/CouponTable/index.js +3 -11
- package/lib/common/LinkModal/CustomTable/index.js +3 -11
- package/lib/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/lib/common/LinkModal/FunctionTable/index.js +4 -11
- package/lib/common/LinkModal/MiniAppApi/index.js +4 -12
- package/lib/common/LinkModal/MiniAppTable/index.js +3 -11
- package/lib/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/lib/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/lib/common/LinkModal/ShareUrl/index.js +3 -11
- package/lib/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/lib/common/LinkModal/StoreTable/index.js +11 -23
- package/lib/common/LinkModal/index.js +15 -19
- 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/common/VideoUpload/index.js +1 -0
- 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/Orders/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
- 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/InterestProducts/mobile/index.js +11 -6
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- 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 +27 -5
- 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 +60 -11
- package/lib/core/Designer/ToolBarModal/index.js +1 -1
- package/lib/core/Designer/index.js +22 -4
- package/lib/core/SelectUrl/index.js +0 -1
- package/lib/index.js +0 -8
- 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/androidUtil.js +5 -2
- package/lib/utils/businessUtil.js +18 -3
- package/lib/utils/commonUtil.js +2 -2
- package/lib/utils/coreUtil.js +35 -25
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -269,7 +269,7 @@ function (_super) {
|
|
|
269
269
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
270
270
|
|
|
271
271
|
_this.state = {
|
|
272
|
-
|
|
272
|
+
interest: {},
|
|
273
273
|
list: (0, _coreUtil.isDesignMode)() ? defaultData : (0, _commonUtil.ensure)(function () {
|
|
274
274
|
return (0, _storeUtil.getMagicStore)("interestProducts_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
275
275
|
}, [])
|
|
@@ -311,7 +311,7 @@ function (_super) {
|
|
|
311
311
|
res = _a.sent();
|
|
312
312
|
list = res.pageInfo.list;
|
|
313
313
|
this.setState({
|
|
314
|
-
|
|
314
|
+
interest: res.interest || {},
|
|
315
315
|
list: list
|
|
316
316
|
});
|
|
317
317
|
if (list.length > 0) this.getMacy();
|
|
@@ -333,7 +333,9 @@ function (_super) {
|
|
|
333
333
|
} else {
|
|
334
334
|
if (this.state.list.length > 0) this.getMacy();
|
|
335
335
|
this.setState({
|
|
336
|
-
|
|
336
|
+
interest: {
|
|
337
|
+
interestName: 'Interest Name'
|
|
338
|
+
}
|
|
337
339
|
});
|
|
338
340
|
}
|
|
339
341
|
};
|
|
@@ -341,7 +343,7 @@ function (_super) {
|
|
|
341
343
|
InterestProductsMobile.prototype.render = function () {
|
|
342
344
|
var panelProps = this.props.panelProps;
|
|
343
345
|
var _a = this.state,
|
|
344
|
-
|
|
346
|
+
interest = _a.interest,
|
|
345
347
|
list = _a.list;
|
|
346
348
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
347
349
|
className: "monpay-interest-products-mobile"
|
|
@@ -350,10 +352,13 @@ function (_super) {
|
|
|
350
352
|
}, panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
351
353
|
className: "text",
|
|
352
354
|
data: __assign(__assign({}, panelProps.title.headline), {
|
|
353
|
-
text: interestName
|
|
355
|
+
text: interest.interestName
|
|
354
356
|
})
|
|
355
357
|
}), panelProps.title.seeAll.open && /*#__PURE__*/_react["default"].createElement("span", {
|
|
356
|
-
className: "btn"
|
|
358
|
+
className: "btn",
|
|
359
|
+
onClick: function onClick() {
|
|
360
|
+
return (0, _coreUtil.clickUrl)("/product/recommend/" + (interest.interestId || ''));
|
|
361
|
+
}
|
|
357
362
|
}, "See All")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
358
363
|
className: "interest-products-list macyContainer_" + panelProps.id
|
|
359
364
|
}, list.map(function (item) {
|
|
@@ -412,7 +412,7 @@ function (_super) {
|
|
|
412
412
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
413
413
|
className: "right",
|
|
414
414
|
onClick: function onClick() {
|
|
415
|
-
return (0, _coreUtil.clickUrl)('/
|
|
415
|
+
return (0, _coreUtil.clickUrl)('/flash-sale');
|
|
416
416
|
}
|
|
417
417
|
}, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
418
418
|
className: "btn",
|
|
@@ -421,7 +421,10 @@ function (_super) {
|
|
|
421
421
|
className: "flash-deal-time"
|
|
422
422
|
}, times.map(function (item) {
|
|
423
423
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
424
|
-
className: "item"
|
|
424
|
+
className: "item",
|
|
425
|
+
onClick: function onClick() {
|
|
426
|
+
return (0, _coreUtil.clickUrl)("/flash-detail/" + item.campaignId);
|
|
427
|
+
}
|
|
425
428
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
426
429
|
className: "time"
|
|
427
430
|
}, (0, _dateUtil.formatDayMonthTime)(item.effDate)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -74,13 +74,13 @@ function SearchCondition(props) {
|
|
|
74
74
|
}];
|
|
75
75
|
var bundleSortList = [{
|
|
76
76
|
title: (0, _locale.i18n)('EARLIEST'),
|
|
77
|
-
key:
|
|
77
|
+
key: 2
|
|
78
78
|
}, {
|
|
79
79
|
title: (0, _locale.i18n)('LOWEST_PRICE'),
|
|
80
|
-
key:
|
|
80
|
+
key: 3
|
|
81
81
|
}, {
|
|
82
82
|
title: (0, _locale.i18n)('MOST_SOLD'),
|
|
83
|
-
key:
|
|
83
|
+
key: 4
|
|
84
84
|
}];
|
|
85
85
|
|
|
86
86
|
var onSortByClick = function onSortByClick(val) {
|
package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -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/es/constants/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.ORDER_TYPE = exports.CREDIT_STATE = void 0;
|
|
6
|
+
exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.pageStateMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.baseUrlMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.ORDER_TYPE = exports.CREDIT_STATE = void 0;
|
|
7
7
|
var STORAGE_KEY = {
|
|
8
8
|
LOCALE: 'magicLocale',
|
|
9
9
|
MAGIC_RENDER_HTML: 'MAGIC_RENDER_HTML',
|
|
@@ -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 = {
|
|
@@ -118,7 +119,10 @@ var quickMenuCode = {
|
|
|
118
119
|
MODE_PC: 'MODE_PC',
|
|
119
120
|
MODE_PHONE: 'MODE_PHONE',
|
|
120
121
|
PUSH: 'PUSH',
|
|
121
|
-
SET_AS_TEMPLATE: 'SET_AS_TEMPLATE'
|
|
122
|
+
SET_AS_TEMPLATE: 'SET_AS_TEMPLATE',
|
|
123
|
+
REVIEW_RECORD: 'REVIEW_RECORD',
|
|
124
|
+
TO_REVIEW: 'TO_REVIEW',
|
|
125
|
+
CANCEL_REVIEWL: 'CANCEL_REVIEW'
|
|
122
126
|
};
|
|
123
127
|
exports.quickMenuCode = quickMenuCode;
|
|
124
128
|
var compInfoMap = {
|
|
@@ -146,6 +150,10 @@ var compInfoMap = {
|
|
|
146
150
|
name: 'Flash Deal',
|
|
147
151
|
icon: 'icon-flash-deal'
|
|
148
152
|
},
|
|
153
|
+
BARGAIN: {
|
|
154
|
+
name: 'Bargain',
|
|
155
|
+
icon: 'icon-kanjia'
|
|
156
|
+
},
|
|
149
157
|
MONPAY_FLASH_DEAL: {
|
|
150
158
|
name: 'Monpay Flash Deal',
|
|
151
159
|
icon: 'icon-flash-deal'
|
|
@@ -314,20 +322,34 @@ var eventType = {
|
|
|
314
322
|
UPDATE_FIRST_CONFIG: 'update-first-config'
|
|
315
323
|
};
|
|
316
324
|
exports.eventType = eventType;
|
|
317
|
-
var
|
|
325
|
+
var baseUrlMap = {
|
|
318
326
|
'operation/v1': 'P',
|
|
319
327
|
'trade/v1': 'S'
|
|
320
328
|
};
|
|
329
|
+
exports.baseUrlMap = baseUrlMap;
|
|
330
|
+
var partyTypeMap = {
|
|
331
|
+
PLATFORM: 'P',
|
|
332
|
+
SELLER: 'S'
|
|
333
|
+
};
|
|
321
334
|
/** 模版类型 */
|
|
322
335
|
|
|
323
336
|
exports.partyTypeMap = partyTypeMap;
|
|
324
337
|
var tempTypeMap = {
|
|
325
338
|
PAGE: 'Page',
|
|
326
339
|
TEMPLATE: 'TemplateLibrary'
|
|
340
|
+
}; // 页面审核状态
|
|
341
|
+
|
|
342
|
+
exports.tempTypeMap = tempTypeMap;
|
|
343
|
+
var pageStateMap = {
|
|
344
|
+
PUBLISHED: 'Using',
|
|
345
|
+
ACTIVE: 'Active',
|
|
346
|
+
REJECTED: 'Rejective',
|
|
347
|
+
PENDING: 'Pending',
|
|
348
|
+
DRAFT: 'Idle'
|
|
327
349
|
};
|
|
328
350
|
/** 持久化缓存 KEY */
|
|
329
351
|
|
|
330
|
-
exports.
|
|
352
|
+
exports.pageStateMap = pageStateMap;
|
|
331
353
|
var STORE_KEY = {
|
|
332
354
|
// 是否从sf app跳转
|
|
333
355
|
IS_FROM_SF: 'isFromSf',
|
|
@@ -11,7 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _antd = require("
|
|
14
|
+
var _antd = require("antd4");
|
|
15
15
|
|
|
16
16
|
var _mobx = require("../../../mobx");
|
|
17
17
|
|
|
@@ -21,6 +21,8 @@ var _Iconfont = _interopRequireDefault(require("../../../common/Iconfont"));
|
|
|
21
21
|
|
|
22
22
|
var _constants = require("../../../constants");
|
|
23
23
|
|
|
24
|
+
var _coreUtil = require("../../../utils/coreUtil");
|
|
25
|
+
|
|
24
26
|
var _locale = require("../../../locale");
|
|
25
27
|
|
|
26
28
|
require("./index.less");
|
|
@@ -103,6 +105,34 @@ function (_super) {
|
|
|
103
105
|
_this.onBtnClick(e);
|
|
104
106
|
|
|
105
107
|
e.stopPropagation();
|
|
108
|
+
}; // 未开启自动审核,Draft 和 Rejected 状态下展示审核记录按钮
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
_this.isShowReviewRecord = function () {
|
|
112
|
+
return !(0, _coreUtil.isAutoAudit)() && [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState);
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
_this.isShowPublish = function () {
|
|
116
|
+
return (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
|
|
117
|
+
}; // 审核失败和未审核状态展示 To Review 按钮
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
_this.isShowToReview = function () {
|
|
121
|
+
return !(0, _coreUtil.isAutoAudit)() && [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState);
|
|
122
|
+
}; // 提交审核状态展示 Cancel 按钮
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
_this.isShowCancelReview = function () {
|
|
126
|
+
return _this.props.pageState === _constants.pageStateMap.PENDING;
|
|
127
|
+
}; // 草稿状态展示设置模版按钮
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
_this.isShowSetTemplate = function () {
|
|
131
|
+
return _constants.pageStateMap.DRAFT === _this.props.pageState;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
_this.isShowSave = function () {
|
|
135
|
+
return !(0, _coreUtil.isAutoAudit)() && [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState);
|
|
106
136
|
};
|
|
107
137
|
|
|
108
138
|
return _this;
|
|
@@ -183,28 +213,39 @@ function (_super) {
|
|
|
183
213
|
type: "light"
|
|
184
214
|
}, (0, _locale.i18n)('SAVE'))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
215
|
className: "menu_right"
|
|
186
|
-
},
|
|
187
|
-
"data-code": _constants.quickMenuCode.
|
|
216
|
+
}, this.isShowReviewRecord() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
217
|
+
"data-code": _constants.quickMenuCode.REVIEW_RECORD,
|
|
218
|
+
icon: "icon-clock",
|
|
188
219
|
onClick: this.onBtnClick,
|
|
189
|
-
|
|
190
|
-
|
|
220
|
+
title: "Review Record",
|
|
221
|
+
type: "icon"
|
|
222
|
+
}), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
191
223
|
"data-code": _constants.quickMenuCode.PREVIEW,
|
|
192
|
-
|
|
193
|
-
|
|
224
|
+
icon: "icon-eye1",
|
|
225
|
+
onClick: this.onBtnClick,
|
|
226
|
+
title: "Preview",
|
|
227
|
+
type: "icon"
|
|
228
|
+
}), this.isShowSave() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
194
229
|
"data-code": _constants.quickMenuCode.SAVE,
|
|
195
230
|
disabled: window.magicDesign.readOnly,
|
|
231
|
+
icon: "icon-save",
|
|
196
232
|
onClick: this.onBtnClick,
|
|
197
233
|
tip: "The page is in use. Please copy or create a new page",
|
|
234
|
+
title: "Save",
|
|
235
|
+
type: "icon"
|
|
236
|
+
}), this.isShowSetTemplate() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
237
|
+
"data-code": _constants.quickMenuCode.SET_AS_TEMPLATE,
|
|
238
|
+
onClick: this.onBtnClick,
|
|
198
239
|
type: "light"
|
|
199
|
-
}, (0, _locale.i18n)('
|
|
240
|
+
}, (0, _locale.i18n)('SET_AS_TEMPLATE')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
200
241
|
className: "publish_wrap"
|
|
201
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
242
|
+
}, this.isShowPublish() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
202
243
|
"data-code": _constants.quickMenuCode.PUBLISH,
|
|
203
244
|
disabled: window.magicDesign.readOnly,
|
|
204
245
|
onClick: this.onBtnClick,
|
|
205
246
|
tip: "The page is in use. Please copy or create a new page",
|
|
206
247
|
type: "primary"
|
|
207
|
-
}, (0, _locale.i18n)('PUBLISH_NOW'), window.magicDesign.templateType ===
|
|
248
|
+
}, (0, _locale.i18n)('PUBLISH_NOW'), window.magicDesign.templateType === _constants.tempTypeMap.PAGE && /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
208
249
|
getPopupContainer: function getPopupContainer() {
|
|
209
250
|
return document.querySelector('.publish_wrap');
|
|
210
251
|
},
|
|
@@ -226,7 +267,15 @@ function (_super) {
|
|
|
226
267
|
padding: '8px 3px 8px 6px'
|
|
227
268
|
},
|
|
228
269
|
type: "icon-outlined-down"
|
|
229
|
-
}))))
|
|
270
|
+
}))), this.isShowToReview() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
271
|
+
"data-code": _constants.quickMenuCode.TO_REVIEW,
|
|
272
|
+
onClick: this.onBtnClick,
|
|
273
|
+
type: "primary"
|
|
274
|
+
}, "To Review"), this.isShowCancelReview() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
275
|
+
"data-code": _constants.quickMenuCode.CANCEL_REVIEW,
|
|
276
|
+
onClick: this.onBtnClick,
|
|
277
|
+
type: "primary"
|
|
278
|
+
}, "Cancel"))));
|
|
230
279
|
};
|
|
231
280
|
|
|
232
281
|
return QuickMenuBar;
|
|
@@ -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
|
|
|
@@ -262,12 +262,14 @@ window.magicDesign = {
|
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
var setDesignConfig = function setDesignConfig(data) {
|
|
265
|
-
window.magicDesign = __assign(__assign(__assign({}, window.magicDesign),
|
|
265
|
+
window.magicDesign = __assign(__assign(__assign(__assign({}, window.magicDesign), {
|
|
266
|
+
autoAudit: true
|
|
267
|
+
}), data), {
|
|
266
268
|
designMode: true,
|
|
267
269
|
compWidth: Number(data.compWidth),
|
|
268
270
|
compSpacing: Number(data.compSpacing),
|
|
269
271
|
MBaseUrl: data.MBaseUrl || 'operation/v1',
|
|
270
|
-
partyType: _constants.
|
|
272
|
+
partyType: _constants.baseUrlMap[data.MBaseUrl] || 'P'
|
|
271
273
|
});
|
|
272
274
|
};
|
|
273
275
|
|
|
@@ -469,7 +471,10 @@ function (_super) {
|
|
|
469
471
|
onSave = _a.onSave,
|
|
470
472
|
onPreviews = _a.onPreviews,
|
|
471
473
|
onPush = _a.onPush,
|
|
472
|
-
onSetAsTemp = _a.onSetAsTemp
|
|
474
|
+
onSetAsTemp = _a.onSetAsTemp,
|
|
475
|
+
onToReview = _a.onToReview,
|
|
476
|
+
onCancelReview = _a.onCancelReview,
|
|
477
|
+
onReviewRecord = _a.onReviewRecord;
|
|
473
478
|
var _b = _this.state,
|
|
474
479
|
device = _b.device,
|
|
475
480
|
MPageData = _b.MPageData;
|
|
@@ -546,6 +551,18 @@ function (_super) {
|
|
|
546
551
|
_this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
|
|
547
552
|
|
|
548
553
|
break;
|
|
554
|
+
|
|
555
|
+
case _constants.quickMenuCode.TO_REVIEW:
|
|
556
|
+
onToReview(handleParams);
|
|
557
|
+
break;
|
|
558
|
+
|
|
559
|
+
case _constants.quickMenuCode.CANCEL_REVIEW:
|
|
560
|
+
onCancelReview();
|
|
561
|
+
break;
|
|
562
|
+
|
|
563
|
+
case _constants.quickMenuCode.REVIEW_RECORD:
|
|
564
|
+
onReviewRecord();
|
|
565
|
+
break;
|
|
549
566
|
}
|
|
550
567
|
};
|
|
551
568
|
|
|
@@ -607,6 +624,7 @@ function (_super) {
|
|
|
607
624
|
onHtmlBack: _this.onHtmlBack,
|
|
608
625
|
onHtmlSave: _this.onHtmlSave,
|
|
609
626
|
outputType: _this.props.outputType,
|
|
627
|
+
pageState: _this.props.pageState,
|
|
610
628
|
pageType: _this.props.pageType,
|
|
611
629
|
redoDisable: !_this.history.redoAble(),
|
|
612
630
|
undoDisable: !_this.history.undoAble()
|
|
@@ -14,7 +14,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
|
|
16
16
|
var SelectUrl = function SelectUrl(props) {
|
|
17
|
-
console.log(props, 'props');
|
|
18
17
|
var fishFetch = props.fishFetch,
|
|
19
18
|
config = props.config,
|
|
20
19
|
modalConfig = props.modalConfig;
|
package/es/index.js
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "ConfigProvider", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _antd.ConfigProvider;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "Designer", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
@@ -36,8 +30,6 @@ Object.defineProperty(exports, "clickUrl", {
|
|
|
36
30
|
|
|
37
31
|
require("./assets/fonts/magic-box-iconfont.css");
|
|
38
32
|
|
|
39
|
-
var _antd = require("antd4");
|
|
40
|
-
|
|
41
33
|
var _coreUtil = require("./utils/coreUtil");
|
|
42
34
|
|
|
43
35
|
require("./assets/less/index.less");
|