@fonixtree/magic-design 2.0.106 → 2.0.108
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/common/LinkModal/AffiliateProductTable/index.js +3 -4
- package/es/common/LinkModal/AffiliateStore/index.js +3 -4
- package/es/common/LinkModal/BundleCampaign/index.js +4 -5
- package/es/common/LinkModal/CatgTable/index.js +3 -4
- package/es/common/LinkModal/CouponTable/index.js +3 -4
- package/es/common/LinkModal/CustomTable/index.js +4 -4
- package/es/common/LinkModal/FilteredProductModal/index.js +7 -6
- package/es/common/LinkModal/FunctionTable/index.js +4 -4
- package/es/common/LinkModal/MiniAppTable/index.js +4 -4
- package/es/common/LinkModal/ProductDetailPage/index.js +6 -5
- package/es/common/LinkModal/StoreTable/index.js +3 -4
- package/es/common/LinkModal/index.js +39 -18
- package/es/common/UrlPicker/index.js +5 -1
- package/es/composite-comp/common/components/MonpayProductItem/imgs/coupon-orange.png +0 -0
- package/es/composite-comp/common/components/MonpayProductItem/imgs/coupon-red.png +0 -0
- package/es/composite-comp/common/components/MonpayProductItem/index.js +33 -2
- package/es/composite-comp/common/components/MonpayProductItem/index.less +36 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +1 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +3 -3
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +3 -5
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +7 -4
- package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +2 -1
- package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +26 -4
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +2 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +2 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +4 -2
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +99 -58
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +4 -12
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +7 -6
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +5 -5
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +1 -3
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/core/SelectUrl/index.js +36 -0
- package/es/index.js +16 -0
- package/es/locale/en/en.json +1 -1
- package/es/locale/id/id.json +1 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +3 -4
- package/lib/common/LinkModal/AffiliateStore/index.js +3 -4
- package/lib/common/LinkModal/BundleCampaign/index.js +4 -5
- package/lib/common/LinkModal/CatgTable/index.js +3 -4
- package/lib/common/LinkModal/CouponTable/index.js +3 -4
- package/lib/common/LinkModal/CustomTable/index.js +4 -4
- package/lib/common/LinkModal/FilteredProductModal/index.js +7 -6
- package/lib/common/LinkModal/FunctionTable/index.js +4 -4
- package/lib/common/LinkModal/MiniAppTable/index.js +4 -4
- package/lib/common/LinkModal/ProductDetailPage/index.js +6 -5
- package/lib/common/LinkModal/StoreTable/index.js +3 -4
- package/lib/common/LinkModal/index.js +39 -18
- package/lib/common/UrlPicker/index.js +5 -1
- package/lib/composite-comp/common/components/MonpayProductItem/imgs/coupon-orange.png +0 -0
- package/lib/composite-comp/common/components/MonpayProductItem/imgs/coupon-red.png +0 -0
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +33 -2
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +36 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +1 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +3 -3
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +3 -5
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +7 -4
- package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +2 -1
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +26 -4
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +2 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +2 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +4 -2
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +99 -58
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +4 -12
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +7 -6
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js +5 -5
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +1 -3
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/core/SelectUrl/index.js +36 -0
- package/lib/index.js +16 -0
- package/lib/locale/en/en.json +1 -1
- package/lib/locale/id/id.json +1 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -0
- package/package.json +1 -1
package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -93,40 +93,41 @@ function (_super) {
|
|
|
93
93
|
headerSize: "middle",
|
|
94
94
|
onRefresh: this.reRender,
|
|
95
95
|
source: [{
|
|
96
|
-
key: '
|
|
96
|
+
key: 'title1',
|
|
97
97
|
name: (0, _locale.i18n)('DISCOUNT_LABEL'),
|
|
98
98
|
metaOption: panelProps.discount
|
|
99
99
|
}, {
|
|
100
|
-
key: '
|
|
100
|
+
key: 'title2',
|
|
101
101
|
name: (0, _locale.i18n)('ACTIVITY_LABEL'),
|
|
102
102
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
103
103
|
data: panelProps.label
|
|
104
104
|
}),
|
|
105
105
|
metaOption: panelProps.label
|
|
106
106
|
}, {
|
|
107
|
-
key: '
|
|
107
|
+
key: 'title3',
|
|
108
108
|
name: (0, _locale.i18n)('PRODUCT_NAME'),
|
|
109
109
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
110
110
|
data: panelProps.productName
|
|
111
111
|
}),
|
|
112
112
|
metaOption: panelProps.productName
|
|
113
113
|
}, {
|
|
114
|
-
key: '
|
|
114
|
+
key: 'title4',
|
|
115
115
|
name: (0, _locale.i18n)('ACTIVITY_PRICE'),
|
|
116
116
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
117
117
|
data: panelProps.activityPrice
|
|
118
118
|
}),
|
|
119
119
|
metaOption: panelProps.activityPrice
|
|
120
120
|
}, {
|
|
121
|
-
key: '
|
|
121
|
+
key: 'title5',
|
|
122
122
|
name: (0, _locale.i18n)('SALES_PRICE'),
|
|
123
123
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
124
124
|
data: panelProps.salesPrice
|
|
125
125
|
}),
|
|
126
126
|
metaOption: panelProps.salesPrice
|
|
127
127
|
}, {
|
|
128
|
-
key: '
|
|
128
|
+
key: 'title6',
|
|
129
129
|
name: (0, _locale.i18n)('STOCK'),
|
|
130
|
+
value: null,
|
|
130
131
|
metaOption: panelProps.stock
|
|
131
132
|
}],
|
|
132
133
|
type: "switch"
|
package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigTitle/index.js
CHANGED
|
@@ -122,31 +122,31 @@ function (_super) {
|
|
|
122
122
|
headerSize: "middle",
|
|
123
123
|
onRefresh: this.reRender,
|
|
124
124
|
source: [{
|
|
125
|
-
key: '
|
|
125
|
+
key: 'title1',
|
|
126
126
|
name: (0, _locale.i18n)('ICON'),
|
|
127
127
|
value: iconSetting,
|
|
128
128
|
metaOption: panelProps.icon
|
|
129
129
|
}, {
|
|
130
|
-
key: '
|
|
130
|
+
key: 'title2',
|
|
131
131
|
name: (0, _locale.i18n)('HEADLINE'),
|
|
132
132
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
133
133
|
data: panelProps.headline
|
|
134
134
|
}),
|
|
135
135
|
metaOption: panelProps.headline
|
|
136
136
|
}, {
|
|
137
|
-
key: '
|
|
137
|
+
key: 'title3',
|
|
138
138
|
name: (0, _locale.i18n)('COUNTDOWN'),
|
|
139
139
|
value: countDownSetting,
|
|
140
140
|
metaOption: panelProps.countdown
|
|
141
141
|
}, {
|
|
142
|
-
key: '
|
|
142
|
+
key: 'title4',
|
|
143
143
|
name: (0, _locale.i18n)('BUTTON'),
|
|
144
144
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
145
145
|
data: panelProps.button
|
|
146
146
|
}),
|
|
147
147
|
metaOption: panelProps.button
|
|
148
148
|
}, {
|
|
149
|
-
key: '
|
|
149
|
+
key: 'title5',
|
|
150
150
|
name: (0, _locale.i18n)('SESSION_TIME'),
|
|
151
151
|
metaOption: panelProps.sessionTime
|
|
152
152
|
}],
|
package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js
CHANGED
|
@@ -74,9 +74,7 @@ function (_super) {
|
|
|
74
74
|
source: [{
|
|
75
75
|
key: '0',
|
|
76
76
|
name: (0, _locale.i18n)('FILTER'),
|
|
77
|
-
value:
|
|
78
|
-
data: panelProps.filter
|
|
79
|
-
}),
|
|
77
|
+
value: null,
|
|
80
78
|
metaOption: panelProps.filter
|
|
81
79
|
}, {
|
|
82
80
|
key: '1',
|
|
@@ -368,7 +368,7 @@ function (_super) {
|
|
|
368
368
|
}, (0, _locale.i18n)('LABEL')), /*#__PURE__*/_react["default"].createElement(Option, {
|
|
369
369
|
value: "Recently"
|
|
370
370
|
}, (0, _locale.i18n)('RECENTLY')), /*#__PURE__*/_react["default"].createElement(Option, {
|
|
371
|
-
value: "
|
|
371
|
+
value: "Coupon"
|
|
372
372
|
}, (0, _locale.i18n)('COUPON')))), intelligentType === 'Category' && /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect, {
|
|
373
373
|
allowClear: true,
|
|
374
374
|
dropdownStyle: {
|
|
@@ -0,0 +1,36 @@
|
|
|
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 _UrlPicker = _interopRequireDefault(require("../../common/UrlPicker"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
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
|
+
|
|
16
|
+
var SelectUrl = function SelectUrl(props) {
|
|
17
|
+
console.log(props, 'props');
|
|
18
|
+
var fishFetch = props.fishFetch,
|
|
19
|
+
config = props.config,
|
|
20
|
+
modalConfig = props.modalConfig;
|
|
21
|
+
window.magicDesign.MBaseUrl = config.MBaseUrl;
|
|
22
|
+
window.magicDesign.partyType = config.partyType;
|
|
23
|
+
return /*#__PURE__*/_react["default"].createElement(_UrlPicker["default"], _extends({
|
|
24
|
+
selfFetch: fishFetch
|
|
25
|
+
}, props, {
|
|
26
|
+
modalConfig: modalConfig
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
SelectUrl.defaultProps = {
|
|
31
|
+
value: '',
|
|
32
|
+
disabled: false,
|
|
33
|
+
onChange: function onChange() {}
|
|
34
|
+
};
|
|
35
|
+
var _default = SelectUrl;
|
|
36
|
+
exports["default"] = _default;
|
package/es/index.js
CHANGED
|
@@ -15,9 +15,23 @@ Object.defineProperty(exports, "Renderer", {
|
|
|
15
15
|
return _Renderer["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "SelectUrl", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _SelectUrl["default"];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "clickUrl", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _coreUtil.clickUrl;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
18
30
|
|
|
19
31
|
require("./assets/fonts/magic-box-iconfont.css");
|
|
20
32
|
|
|
33
|
+
var _coreUtil = require("./utils/coreUtil");
|
|
34
|
+
|
|
21
35
|
require("./assets/less/index.less");
|
|
22
36
|
|
|
23
37
|
require("./assets/less/cylon-antd.less");
|
|
@@ -26,4 +40,6 @@ var _Designer = _interopRequireDefault(require("./core/Designer"));
|
|
|
26
40
|
|
|
27
41
|
var _Renderer = _interopRequireDefault(require("./core/Renderer"));
|
|
28
42
|
|
|
43
|
+
var _SelectUrl = _interopRequireDefault(require("./core/SelectUrl"));
|
|
44
|
+
|
|
29
45
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/es/locale/en/en.json
CHANGED
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"SOURCE_OF_PRODUCT": "Source Of Product",
|
|
177
177
|
"AI_RECOMMENDATION": "AI Recommendation",
|
|
178
178
|
"SELECT_PRODUCT": "Select Product",
|
|
179
|
-
"PRODUCT_QUANTITY": "Product
|
|
179
|
+
"PRODUCT_QUANTITY": "Product Quantity",
|
|
180
180
|
"COLOR": "Color",
|
|
181
181
|
"AUTOPLAYS": "Autoplays",
|
|
182
182
|
"SHOW_NAVIGATION_ARROW": "Show navigation arrow",
|
package/es/locale/id/id.json
CHANGED
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"SOURCE_OF_PRODUCT": "Source Of Product",
|
|
177
177
|
"AI_RECOMMENDATION": "AI Recommendation",
|
|
178
178
|
"SELECT_PRODUCT": "Select Product",
|
|
179
|
-
"PRODUCT_QUANTITY": "Product
|
|
179
|
+
"PRODUCT_QUANTITY": "Product Quantity",
|
|
180
180
|
"COLOR": "Color",
|
|
181
181
|
"AUTOPLAYS": "Autoplays",
|
|
182
182
|
"SHOW_NAVIGATION_ARROW": "Show navigation arrow",
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
var _locale = require("../../../locale");
|
|
17
15
|
|
|
18
16
|
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
@@ -188,7 +186,8 @@ var paginationParams = {
|
|
|
188
186
|
function AffiliateProductTable(props) {
|
|
189
187
|
var _this = this;
|
|
190
188
|
|
|
191
|
-
var _onChange = props.onChange
|
|
189
|
+
var _onChange = props.onChange,
|
|
190
|
+
_fetch = props._fetch;
|
|
192
191
|
|
|
193
192
|
var _a = (0, _react.useState)([]),
|
|
194
193
|
productList = _a[0],
|
|
@@ -213,7 +212,7 @@ function AffiliateProductTable(props) {
|
|
|
213
212
|
setLoading(true);
|
|
214
213
|
return [4
|
|
215
214
|
/*yield*/
|
|
216
|
-
, (
|
|
215
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/distributor/product/list", __assign(__assign({}, params), {
|
|
217
216
|
state: 'Valid'
|
|
218
217
|
}), 'GET')];
|
|
219
218
|
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
var _locale = require("../../../locale");
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -186,7 +184,8 @@ var paginationParams = {
|
|
|
186
184
|
function AffiliateStore(props) {
|
|
187
185
|
var _this = this;
|
|
188
186
|
|
|
189
|
-
var _onChange = props.onChange
|
|
187
|
+
var _onChange = props.onChange,
|
|
188
|
+
_fetch = props._fetch;
|
|
190
189
|
|
|
191
190
|
var _a = (0, _react.useState)([]),
|
|
192
191
|
storeList = _a[0],
|
|
@@ -209,7 +208,7 @@ function AffiliateStore(props) {
|
|
|
209
208
|
setLoading(true);
|
|
210
209
|
return [4
|
|
211
210
|
/*yield*/
|
|
212
|
-
, (
|
|
211
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/affiliate/store/query/page", params, 'GET')];
|
|
213
212
|
|
|
214
213
|
case 1:
|
|
215
214
|
res = _a.sent();
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
var _businessUtil = require("../../../utils/businessUtil");
|
|
17
15
|
|
|
18
16
|
var _dateUtil = require("../../../utils/dateUtil");
|
|
@@ -169,7 +167,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
169
167
|
var Option = _antd.Select.Option;
|
|
170
168
|
|
|
171
169
|
var BundleCampaign = function BundleCampaign(props) {
|
|
172
|
-
var setUrl = props.setUrl
|
|
170
|
+
var setUrl = props.setUrl,
|
|
171
|
+
_fetch = props._fetch;
|
|
173
172
|
|
|
174
173
|
var _a = (0, _react.useState)([]),
|
|
175
174
|
bundleList = _a[0],
|
|
@@ -253,7 +252,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
253
252
|
case 0:
|
|
254
253
|
return [4
|
|
255
254
|
/*yield*/
|
|
256
|
-
, (
|
|
255
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/bundle/page", params, 'GET')];
|
|
257
256
|
|
|
258
257
|
case 1:
|
|
259
258
|
res = _a.sent();
|
|
@@ -286,7 +285,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
286
285
|
case 0:
|
|
287
286
|
return [4
|
|
288
287
|
/*yield*/
|
|
289
|
-
, (
|
|
288
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
|
|
290
289
|
|
|
291
290
|
case 1:
|
|
292
291
|
res = _a.sent();
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
var _businessUtil = require("../../../utils/businessUtil");
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -165,7 +163,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
165
163
|
function CatgTable(props) {
|
|
166
164
|
var _this = this;
|
|
167
165
|
|
|
168
|
-
var _onChange = props.onChange
|
|
166
|
+
var _onChange = props.onChange,
|
|
167
|
+
_fetch = props._fetch;
|
|
169
168
|
|
|
170
169
|
var _a = (0, _react.useState)([]),
|
|
171
170
|
catgList = _a[0],
|
|
@@ -184,7 +183,7 @@ function CatgTable(props) {
|
|
|
184
183
|
setLoading(true);
|
|
185
184
|
return [4
|
|
186
185
|
/*yield*/
|
|
187
|
-
, (
|
|
186
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/offercatgs/list", {}, 'GET')];
|
|
188
187
|
|
|
189
188
|
case 1:
|
|
190
189
|
res = _a.sent();
|
|
@@ -13,8 +13,6 @@ var _moment = _interopRequireDefault(require("moment"));
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
17
|
-
|
|
18
16
|
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
19
17
|
|
|
20
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -198,7 +196,8 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
198
196
|
function CouponTable(props) {
|
|
199
197
|
var _this = this;
|
|
200
198
|
|
|
201
|
-
var _onChange = props.onChange
|
|
199
|
+
var _onChange = props.onChange,
|
|
200
|
+
_fetch = props._fetch;
|
|
202
201
|
|
|
203
202
|
var _a = (0, _react.useState)([]),
|
|
204
203
|
data = _a[0],
|
|
@@ -261,7 +260,7 @@ function CouponTable(props) {
|
|
|
261
260
|
});
|
|
262
261
|
return [4
|
|
263
262
|
/*yield*/
|
|
264
|
-
, (
|
|
263
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page", newParams, 'GET')];
|
|
265
264
|
|
|
266
265
|
case 1:
|
|
267
266
|
res = _a.sent();
|
|
@@ -11,8 +11,6 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
15
|
|
|
18
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -160,10 +158,12 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
160
158
|
}
|
|
161
159
|
};
|
|
162
160
|
|
|
161
|
+
// import { commonFetch } from '../../../utils/commonUtil';
|
|
163
162
|
function CustomTable(props) {
|
|
164
163
|
var _this = this;
|
|
165
164
|
|
|
166
|
-
var _onChange = props.onChange
|
|
165
|
+
var _onChange = props.onChange,
|
|
166
|
+
_fetch = props._fetch;
|
|
167
167
|
|
|
168
168
|
var _a = (0, _react.useState)([]),
|
|
169
169
|
cusPageList = _a[0],
|
|
@@ -182,7 +182,7 @@ function CustomTable(props) {
|
|
|
182
182
|
setLoading(true);
|
|
183
183
|
return [4
|
|
184
184
|
/*yield*/
|
|
185
|
-
, (
|
|
185
|
+
, _fetch('/designer/v1/pages', params, 'GET')];
|
|
186
186
|
|
|
187
187
|
case 1:
|
|
188
188
|
res = _a.sent();
|
|
@@ -185,7 +185,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
var FilteredProductModal = function FilteredProductModal(props) {
|
|
188
|
-
var onDataChange = props.onDataChange
|
|
188
|
+
var onDataChange = props.onDataChange,
|
|
189
|
+
_fetch = props._fetch;
|
|
189
190
|
var Option = _antd.Select.Option;
|
|
190
191
|
var InputGroup = _antd.Input.Group;
|
|
191
192
|
|
|
@@ -335,7 +336,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
335
336
|
case 0:
|
|
336
337
|
return [4
|
|
337
338
|
/*yield*/
|
|
338
|
-
, (
|
|
339
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/offercatgs/list", {}, 'GET')];
|
|
339
340
|
|
|
340
341
|
case 1:
|
|
341
342
|
res = _a.sent();
|
|
@@ -357,7 +358,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
357
358
|
case 0:
|
|
358
359
|
return [4
|
|
359
360
|
/*yield*/
|
|
360
|
-
, (
|
|
361
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/brand/list", {}, 'GET')];
|
|
361
362
|
|
|
362
363
|
case 1:
|
|
363
364
|
res = _a.sent();
|
|
@@ -379,7 +380,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
379
380
|
case 0:
|
|
380
381
|
return [4
|
|
381
382
|
/*yield*/
|
|
382
|
-
, (
|
|
383
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list", {}, 'GET')];
|
|
383
384
|
|
|
384
385
|
case 1:
|
|
385
386
|
res = _a.sent();
|
|
@@ -401,7 +402,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
401
402
|
case 0:
|
|
402
403
|
return [4
|
|
403
404
|
/*yield*/
|
|
404
|
-
, (
|
|
405
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
|
|
405
406
|
|
|
406
407
|
case 1:
|
|
407
408
|
res = _a.sent();
|
|
@@ -451,7 +452,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
451
452
|
};
|
|
452
453
|
return [4
|
|
453
454
|
/*yield*/
|
|
454
|
-
, (
|
|
455
|
+
, fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/offers/es", params, 'POST')];
|
|
455
456
|
|
|
456
457
|
case 1:
|
|
457
458
|
res = _a.sent();
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
15
|
|
|
18
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -160,10 +158,12 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
160
158
|
}
|
|
161
159
|
};
|
|
162
160
|
|
|
161
|
+
// import { commonFetch } from '../../../utils/commonUtil';
|
|
163
162
|
function FunctionTable(props) {
|
|
164
163
|
var _this = this;
|
|
165
164
|
|
|
166
|
-
var _onChange = props.onChange
|
|
165
|
+
var _onChange = props.onChange,
|
|
166
|
+
_fetch = props._fetch;
|
|
167
167
|
|
|
168
168
|
var _a = (0, _react.useState)([]),
|
|
169
169
|
functions = _a[0],
|
|
@@ -197,7 +197,7 @@ function FunctionTable(props) {
|
|
|
197
197
|
setLoading(true);
|
|
198
198
|
return [4
|
|
199
199
|
/*yield*/
|
|
200
|
-
, (
|
|
200
|
+
, _fetch('/designer/v1/pages/functions', {
|
|
201
201
|
partyType: window.magicDesign.partyType
|
|
202
202
|
}, 'GET')];
|
|
203
203
|
|
|
@@ -11,8 +11,6 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
15
|
|
|
18
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -160,10 +158,12 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
160
158
|
}
|
|
161
159
|
};
|
|
162
160
|
|
|
161
|
+
// import { commonFetch } from '../../../utils/commonUtil';
|
|
163
162
|
function CustomTable(props) {
|
|
164
163
|
var _this = this;
|
|
165
164
|
|
|
166
|
-
var _onChange = props.onChange
|
|
165
|
+
var _onChange = props.onChange,
|
|
166
|
+
_fetch = props._fetch;
|
|
167
167
|
|
|
168
168
|
var _a = (0, _react.useState)([]),
|
|
169
169
|
miniAppList = _a[0],
|
|
@@ -182,7 +182,7 @@ function CustomTable(props) {
|
|
|
182
182
|
setLoading(true);
|
|
183
183
|
return [4
|
|
184
184
|
/*yield*/
|
|
185
|
-
, (
|
|
185
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/mini/app/list", params, 'GET')];
|
|
186
186
|
|
|
187
187
|
case 1:
|
|
188
188
|
res = _a.sent();
|
|
@@ -185,7 +185,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
185
185
|
var Option = _antd.Select.Option;
|
|
186
186
|
|
|
187
187
|
var ProductDetailPage = function ProductDetailPage(props) {
|
|
188
|
-
var onChange = props.onChange
|
|
188
|
+
var onChange = props.onChange,
|
|
189
|
+
_fetch = props._fetch;
|
|
189
190
|
|
|
190
191
|
var _a = (0, _react.useState)([]),
|
|
191
192
|
productList = _a[0],
|
|
@@ -301,7 +302,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
301
302
|
, 2];
|
|
302
303
|
return [4
|
|
303
304
|
/*yield*/
|
|
304
|
-
, (
|
|
305
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/offers", __assign(__assign({}, params), {
|
|
305
306
|
offerCode: productCode,
|
|
306
307
|
isDefaultCover: 'Y',
|
|
307
308
|
onlyQryPublishSku: true,
|
|
@@ -324,7 +325,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
324
325
|
case 2:
|
|
325
326
|
return [4
|
|
326
327
|
/*yield*/
|
|
327
|
-
, (
|
|
328
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/products", __assign(__assign({}, params), {
|
|
328
329
|
state: 'A',
|
|
329
330
|
productCode: productCode
|
|
330
331
|
}), 'GET')];
|
|
@@ -358,7 +359,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
358
359
|
case 0:
|
|
359
360
|
return [4
|
|
360
361
|
/*yield*/
|
|
361
|
-
, (
|
|
362
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/brand/list")];
|
|
362
363
|
|
|
363
364
|
case 1:
|
|
364
365
|
res = _a.sent();
|
|
@@ -380,7 +381,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
380
381
|
case 0:
|
|
381
382
|
return [4
|
|
382
383
|
/*yield*/
|
|
383
|
-
, (
|
|
384
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/list", {}, 'GET')];
|
|
384
385
|
|
|
385
386
|
case 1:
|
|
386
387
|
res = _a.sent();
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
|
|
14
|
-
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
-
|
|
16
14
|
var _locale = require("../../../locale");
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -186,7 +184,8 @@ var paginationParams = {
|
|
|
186
184
|
function StoreTable(props) {
|
|
187
185
|
var _this = this;
|
|
188
186
|
|
|
189
|
-
var _onChange = props.onChange
|
|
187
|
+
var _onChange = props.onChange,
|
|
188
|
+
_fetch = props._fetch;
|
|
190
189
|
|
|
191
190
|
var _a = (0, _react.useState)([]),
|
|
192
191
|
storeList = _a[0],
|
|
@@ -209,7 +208,7 @@ function StoreTable(props) {
|
|
|
209
208
|
setLoading(true);
|
|
210
209
|
return [4
|
|
211
210
|
/*yield*/
|
|
212
|
-
, (
|
|
211
|
+
, _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/stores/page", __assign(__assign({}, params), {
|
|
213
212
|
state: 'A'
|
|
214
213
|
}), 'GET')];
|
|
215
214
|
|