@fonixtree/magic-design 2.0.120 → 2.0.122
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 +11 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
- package/es/common/Iconfont/index.js +5 -2
- package/es/composite-comp/dito/components/Bargain/defaultJSON.js +3 -3
- package/es/composite-comp/dito/components/Bargain/index.js +10 -10
- package/es/composite-comp/dito/components/Bargain/mobile/index.js +16 -13
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +3 -3
- package/es/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +111 -0
- package/es/composite-comp/monpay/components/MonpaySignBoard/index.js +86 -0
- package/es/composite-comp/monpay/components/MonpaySignBoard/mobile/index.js +446 -0
- package/es/composite-comp/monpay/components/MonpaySignBoard/mobile/index.less +107 -0
- package/es/composite-comp/monpay/config-panels/MonpaySignBoardConfig/ConfigContent/index.js +155 -0
- package/es/composite-comp/monpay/config-panels/MonpaySignBoardConfig/index.js +104 -0
- package/es/constants/component-types.js +6 -2
- package/es/constants/index.js +4 -0
- package/es/constants/layout.js +10 -2
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +3 -1
- package/es/core/Designer/QuickMenuBar/index.js +3 -3
- package/es/locale/en/en.json +11 -1
- package/es/locale/es/es.json +11 -1
- package/es/locale/id/id.json +11 -1
- package/es/utils/commonUtil.js +28 -1
- package/lib/assets/fonts/magic-box-iconfont.css +11 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
- package/lib/common/Iconfont/index.js +5 -2
- package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +3 -3
- package/lib/composite-comp/dito/components/Bargain/index.js +10 -10
- package/lib/composite-comp/dito/components/Bargain/mobile/index.js +16 -13
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +3 -3
- package/lib/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +111 -0
- package/lib/composite-comp/monpay/components/MonpaySignBoard/index.js +86 -0
- package/lib/composite-comp/monpay/components/MonpaySignBoard/mobile/index.js +446 -0
- package/lib/composite-comp/monpay/components/MonpaySignBoard/mobile/index.less +107 -0
- package/lib/composite-comp/monpay/config-panels/MonpaySignBoardConfig/ConfigContent/index.js +155 -0
- package/lib/composite-comp/monpay/config-panels/MonpaySignBoardConfig/index.js +104 -0
- package/lib/constants/component-types.js +6 -2
- package/lib/constants/index.js +4 -0
- package/lib/constants/layout.js +10 -2
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +3 -1
- package/lib/core/Designer/QuickMenuBar/index.js +3 -3
- package/lib/locale/en/en.json +11 -1
- package/lib/locale/es/es.json +11 -1
- package/lib/locale/id/id.json +11 -1
- package/lib/utils/commonUtil.js +28 -1
- package/package.json +1 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _ConfigContent = _interopRequireDefault(require("./ConfigContent"));
|
|
11
|
+
|
|
12
|
+
var _locale = require("../../../../locale");
|
|
13
|
+
|
|
14
|
+
var _common = require("../../../../common");
|
|
15
|
+
|
|
16
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
17
|
+
|
|
18
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
19
|
+
|
|
20
|
+
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
21
|
+
|
|
22
|
+
var _layout = require("../../../../constants/layout");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
+
__proto__: []
|
|
30
|
+
} instanceof Array && function (d, b) {
|
|
31
|
+
d.__proto__ = b;
|
|
32
|
+
} || function (d, b) {
|
|
33
|
+
for (var p in b) {
|
|
34
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return _extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
_extendStatics(d, b);
|
|
43
|
+
|
|
44
|
+
function __() {
|
|
45
|
+
this.constructor = d;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
var SignBoardConfig =
|
|
53
|
+
/** @class */
|
|
54
|
+
function (_super) {
|
|
55
|
+
__extends(SignBoardConfig, _super);
|
|
56
|
+
|
|
57
|
+
function SignBoardConfig() {
|
|
58
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
SignBoardConfig.prototype.render = function () {
|
|
62
|
+
var data = this.props.data;
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
64
|
+
divider: "bold",
|
|
65
|
+
headerSize: "large",
|
|
66
|
+
source: [{
|
|
67
|
+
key: 'signBoard1',
|
|
68
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
69
|
+
value: /*#__PURE__*/_react["default"].createElement(_ConfigContent["default"], {
|
|
70
|
+
panelProps: data.content
|
|
71
|
+
})
|
|
72
|
+
}, {
|
|
73
|
+
key: 'signBoard2',
|
|
74
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
75
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
76
|
+
configCompSpace: true,
|
|
77
|
+
data: data.spacing
|
|
78
|
+
})
|
|
79
|
+
}, {
|
|
80
|
+
key: 'signBoard3',
|
|
81
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
82
|
+
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
83
|
+
data: data.customize,
|
|
84
|
+
isHideAlign: true,
|
|
85
|
+
layoutSource: _layout.monpaySignBoardLayout
|
|
86
|
+
})
|
|
87
|
+
}, {
|
|
88
|
+
key: 'signBoard4',
|
|
89
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
90
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
91
|
+
data: data.background
|
|
92
|
+
})
|
|
93
|
+
}]
|
|
94
|
+
}));
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
SignBoardConfig.defaultProps = {
|
|
98
|
+
data: {}
|
|
99
|
+
};
|
|
100
|
+
return SignBoardConfig;
|
|
101
|
+
}(_react["default"].Component);
|
|
102
|
+
|
|
103
|
+
var _default = SignBoardConfig;
|
|
104
|
+
exports["default"] = _default;
|
|
@@ -71,6 +71,8 @@ var _Bundle = _interopRequireDefault(require("../composite-comp/monpay/component
|
|
|
71
71
|
|
|
72
72
|
var _MerchantSales = _interopRequireDefault(require("../composite-comp/monpay/components/MerchantSales"));
|
|
73
73
|
|
|
74
|
+
var _MonpaySignBoard = _interopRequireDefault(require("../composite-comp/monpay/components/MonpaySignBoard"));
|
|
75
|
+
|
|
74
76
|
var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
|
|
75
77
|
|
|
76
78
|
var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
|
|
@@ -137,6 +139,8 @@ var _BundleConfig = _interopRequireDefault(require("../composite-comp/monpay/con
|
|
|
137
139
|
|
|
138
140
|
var _MerchantSalesConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MerchantSalesConfig"));
|
|
139
141
|
|
|
142
|
+
var _MonpaySignBoardConfig = _interopRequireDefault(require("../composite-comp/monpay/config-panels/MonpaySignBoardConfig"));
|
|
143
|
+
|
|
140
144
|
var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
|
|
141
145
|
|
|
142
146
|
var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
|
|
@@ -185,13 +189,13 @@ var _a, _b, _c; // 组件
|
|
|
185
189
|
/**
|
|
186
190
|
* 渲染组件索引
|
|
187
191
|
*/
|
|
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);
|
|
192
|
+
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[_MonpaySignBoard["default"].type] = _MonpaySignBoard["default"], _a);
|
|
189
193
|
/**
|
|
190
194
|
* 一级配置面板索引
|
|
191
195
|
*/
|
|
192
196
|
|
|
193
197
|
exports.componentMap = componentMap;
|
|
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);
|
|
198
|
+
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[_MonpaySignBoard["default"].type] = _MonpaySignBoardConfig["default"], _b);
|
|
195
199
|
/**
|
|
196
200
|
* 二级配置面板索引
|
|
197
201
|
*/
|
package/lib/constants/index.js
CHANGED
package/lib/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.monpayRecommendLayoutMobile = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.monpaySignBoardLayout = exports.monpayRecommendLayoutMobile = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -67,6 +67,8 @@ var _layoutRecommendMobile3 = _interopRequireDefault(require("../assets/images/l
|
|
|
67
67
|
|
|
68
68
|
var _layoutRecommendMobile4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-mobile-4.png"));
|
|
69
69
|
|
|
70
|
+
var _monpaySignBoardLayout = _interopRequireDefault(require("../assets/images/layout-icon/monpaySignBoardLayout1.png"));
|
|
71
|
+
|
|
70
72
|
var _layoutVideoH = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-1.png"));
|
|
71
73
|
|
|
72
74
|
var _layoutVideoH2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-2.png"));
|
|
@@ -351,4 +353,10 @@ var bannerSlideLayout = [{
|
|
|
351
353
|
name: 'layout2',
|
|
352
354
|
image: _bannerSlideLayout2["default"]
|
|
353
355
|
}];
|
|
354
|
-
exports.bannerSlideLayout = bannerSlideLayout;
|
|
356
|
+
exports.bannerSlideLayout = bannerSlideLayout;
|
|
357
|
+
var monpaySignBoardLayout = [{
|
|
358
|
+
id: 'layout1',
|
|
359
|
+
name: 'layout1',
|
|
360
|
+
image: _monpaySignBoardLayout["default"]
|
|
361
|
+
}];
|
|
362
|
+
exports.monpaySignBoardLayout = monpaySignBoardLayout;
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _common = require("../../../../common");
|
|
11
11
|
|
|
12
|
+
var _constants = require("../../../../constants");
|
|
13
|
+
|
|
12
14
|
require("./index.less");
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -37,7 +39,7 @@ function TerminalSelect(_a) {
|
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
|
|
40
|
-
var hidePcDevice = window.systemParams && window.systemParams.terminalType.indexOf(deviceTypeMap.PC) === -1;
|
|
42
|
+
var hidePcDevice = window.systemParams && window.systemParams.terminalType.indexOf(_constants.deviceTypeMap.PC) === -1;
|
|
41
43
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
44
|
className: "terminal_wrap"
|
|
43
45
|
}, ['MOBILE', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -130,15 +130,15 @@ function (_super) {
|
|
|
130
130
|
_this.isShowSetTemplate = function () {
|
|
131
131
|
return _constants.pageStateMap.DRAFT === _this.props.pageState;
|
|
132
132
|
}; // 拒绝审核 和 草稿状态展示保存按钮
|
|
133
|
+
// isShowSave = () => [pageStateMap.REJECTED, pageStateMap.DRAFT].includes(this.props.pageState)
|
|
133
134
|
|
|
134
135
|
|
|
135
136
|
_this.isShowSave = function () {
|
|
136
|
-
return
|
|
137
|
+
return true;
|
|
137
138
|
};
|
|
138
139
|
|
|
139
140
|
return _this;
|
|
140
|
-
}
|
|
141
|
-
|
|
141
|
+
}
|
|
142
142
|
|
|
143
143
|
QuickMenuBar.prototype.render = function () {
|
|
144
144
|
var _a = this.props,
|
package/lib/locale/en/en.json
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
+
"STORE_SERVICES": "Store services",
|
|
3
|
+
"SHIP_ON_TIME": "Ship on time",
|
|
4
|
+
"COMMODITY_QUALITY": "Commodity Quality",
|
|
5
|
+
"FOLLOWED": "Followed",
|
|
6
|
+
"VERIFIED": "Verified",
|
|
7
|
+
"RATING": "Rating",
|
|
8
|
+
"STORE_NAME": "Store Name",
|
|
9
|
+
"RATING_DETAILS": "Rating Details",
|
|
10
|
+
"FOLLOWERS": "Followers",
|
|
11
|
+
"FOLLOW_BUTTON": "Follow Button",
|
|
12
|
+
"IN_STORE_SEARCH_BOX": "In Store Search Box",
|
|
2
13
|
"THIS_PAGE_WILL": "This page will be published at {date}, If you need to edit it, please cancel the publishing later",
|
|
3
14
|
"PRODUCTS_IN_TOTAL": "{total} Products In Total",
|
|
4
15
|
"PLAY_ICON_COLOR": "Play Icon Color",
|
|
@@ -121,7 +132,6 @@
|
|
|
121
132
|
"CHAT": "Chat",
|
|
122
133
|
"FOLLOW": "Follow",
|
|
123
134
|
"FOLLOWING": "Following",
|
|
124
|
-
"FOLLOWERS": "Followers",
|
|
125
135
|
"POSITIVE": "Positive",
|
|
126
136
|
"SEARCH_IN_SHOP": "Search in shop",
|
|
127
137
|
"IMAGE_AND_TEXT_NAME": "Image and Text Name",
|
package/lib/locale/es/es.json
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
+
"STORE_SERVICES": "Store services",
|
|
3
|
+
"SHIP_ON_TIME": "Ship on time",
|
|
4
|
+
"COMMODITY_QUALITY": "Commodity Quality",
|
|
5
|
+
"FOLLOWED": "Followed",
|
|
6
|
+
"VERIFIED": "Verified",
|
|
7
|
+
"RATING": "Rating",
|
|
8
|
+
"STORE_NAME": "Store Name",
|
|
9
|
+
"RATING_DETAILS": "Rating Details",
|
|
10
|
+
"FOLLOWERS": "Followers",
|
|
11
|
+
"FOLLOW_BUTTON": "Follow Button",
|
|
12
|
+
"IN_STORE_SEARCH_BOX": "In Store Search Box",
|
|
2
13
|
"THIS_PAGE_WILL": "This page will be published at {date}, If you need to edit it, please cancel the publishing later",
|
|
3
14
|
"PRODUCTS_IN_TOTAL": "{total} Products In Total",
|
|
4
15
|
"PLAY_ICON_COLOR": "Play Icon Color",
|
|
@@ -121,7 +132,6 @@
|
|
|
121
132
|
"CHAT": "Chat",
|
|
122
133
|
"FOLLOW": "Follow",
|
|
123
134
|
"FOLLOWING": "Following",
|
|
124
|
-
"FOLLOWERS": "Followers",
|
|
125
135
|
"POSITIVE": "Positive",
|
|
126
136
|
"SEARCH_IN_SHOP": "Search in shop",
|
|
127
137
|
"IMAGE_AND_TEXT_NAME": "Image and Text Name",
|
package/lib/locale/id/id.json
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
+
"STORE_SERVICES": "Store services",
|
|
3
|
+
"SHIP_ON_TIME": "Ship on time",
|
|
4
|
+
"COMMODITY_QUALITY": "Commodity Quality",
|
|
5
|
+
"FOLLOWED": "Followed",
|
|
6
|
+
"VERIFIED": "Verified",
|
|
7
|
+
"RATING": "Rating",
|
|
8
|
+
"STORE_NAME": "Store Name",
|
|
9
|
+
"RATING_DETAILS": "Rating Details",
|
|
10
|
+
"FOLLOWERS": "Followers",
|
|
11
|
+
"FOLLOW_BUTTON": "Follow Button",
|
|
12
|
+
"IN_STORE_SEARCH_BOX": "In Store Search Box",
|
|
2
13
|
"THIS_PAGE_WILL": "This page will be published at {date}, If you need to edit it, please cancel the publishing later",
|
|
3
14
|
"PRODUCTS_IN_TOTAL": "{total} Products In Total",
|
|
4
15
|
"PLAY_ICON_COLOR": "Play Icon Color",
|
|
@@ -121,7 +132,6 @@
|
|
|
121
132
|
"CHAT": "Chat",
|
|
122
133
|
"FOLLOW": "Follow",
|
|
123
134
|
"FOLLOWING": "Following",
|
|
124
|
-
"FOLLOWERS": "Followers",
|
|
125
135
|
"POSITIVE": "Positive",
|
|
126
136
|
"SEARCH_IN_SHOP": "Search in shop",
|
|
127
137
|
"IMAGE_AND_TEXT_NAME": "Image and Text Name",
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -20,6 +20,7 @@ exports.getUrlParams = void 0;
|
|
|
20
20
|
exports.goLogin = goLogin;
|
|
21
21
|
exports.importAsync = void 0;
|
|
22
22
|
exports.isLogin = isLogin;
|
|
23
|
+
exports.navigateBack = navigateBack;
|
|
23
24
|
exports.onListenTouch = exports.nextTick = exports.navigateTo = void 0;
|
|
24
25
|
exports.pushGA = pushGA;
|
|
25
26
|
exports.setDefaultAddressFromIP = exports.pxToRem = void 0;
|
|
@@ -322,11 +323,37 @@ var navigateTo = function navigateTo(url, state) {
|
|
|
322
323
|
}
|
|
323
324
|
}
|
|
324
325
|
};
|
|
325
|
-
/**
|
|
326
|
+
/**
|
|
327
|
+
* 跳转返回
|
|
328
|
+
* @param {*} depth 返回深度
|
|
329
|
+
*/
|
|
326
330
|
|
|
327
331
|
|
|
328
332
|
exports.navigateTo = navigateTo;
|
|
329
333
|
|
|
334
|
+
function navigateBack(depth) {
|
|
335
|
+
var _a, _b;
|
|
336
|
+
|
|
337
|
+
if (depth === void 0) {
|
|
338
|
+
depth = -1;
|
|
339
|
+
} // if (browserVersion().isAshitaApp) {
|
|
340
|
+
// sendToApp({ action: 'goBack', params: {} });
|
|
341
|
+
// return;
|
|
342
|
+
// }
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
console.log('history', window.magicDesign.history);
|
|
346
|
+
|
|
347
|
+
if (((_a = window.magicDesign.history) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
348
|
+
window.magicDesign.history.replace('/');
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
(_b = window.magicDesign.history) === null || _b === void 0 ? void 0 : _b.go(depth);
|
|
353
|
+
}
|
|
354
|
+
/** 判断是否登录状态 */
|
|
355
|
+
|
|
356
|
+
|
|
330
357
|
function isLogin() {
|
|
331
358
|
return localStorage.getItem('isLogin') === 'Y';
|
|
332
359
|
}
|