@fonixtree/magic-design 2.0.132 → 2.0.135
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/images/layout-icon/flash-deal-layout1.png +0 -0
- package/es/common/LinkModal/AffiliatePlatform/index.js +2 -2
- package/es/common/LinkModal/AffiliateProductTable/index.js +1 -1
- package/es/common/LinkModal/AffiliateStore/index.js +2 -2
- package/es/common/LinkModal/BundleCampaign/index.js +1 -1
- package/es/common/LinkModal/BundleCampaign/index.less +6 -3
- package/es/common/LinkModal/CatgTable/index.js +2 -2
- package/es/common/LinkModal/CouponTable/index.js +2 -2
- package/es/common/LinkModal/CustomTable/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.less +3 -2
- package/es/common/LinkModal/FunctionTable/index.js +2 -2
- package/es/common/LinkModal/InterestedMerchants/index.js +2 -2
- package/es/common/LinkModal/InterestedProducts/index.js +2 -2
- package/es/common/LinkModal/MerchantStory/index.js +2 -2
- package/es/common/LinkModal/MiniAppApi/index.js +1 -1
- package/es/common/LinkModal/MiniAppTable/index.js +2 -2
- package/es/common/LinkModal/MissionDetail/index.js +5 -5
- package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/es/common/LinkModal/ProductDetailPage/index.less +1 -1
- package/es/common/LinkModal/SelectVideoModal/index.less +2 -1
- package/es/common/LinkModal/ShareUrl/index.less +1 -1
- package/es/common/LinkModal/StoreCatgTable/index.js +2 -2
- package/es/common/LinkModal/StoreTable/index.js +2 -2
- package/es/common/LinkModal/index.js +116 -106
- package/es/common/LinkModal/index.less +35 -2
- package/es/composite-comp/common/components/ProductItem/index.js +5 -3
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +17 -8
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +40 -8
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +20 -11
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -7
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +11 -11
- package/es/constants/index.js +2 -1
- package/es/constants/layout.js +14 -2
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/mn/mn.json +1 -0
- package/es/utils/businessUtil.js +13 -1
- package/lib/assets/images/layout-icon/flash-deal-layout1.png +0 -0
- package/lib/common/LinkModal/AffiliatePlatform/index.js +2 -2
- package/lib/common/LinkModal/AffiliateProductTable/index.js +1 -1
- package/lib/common/LinkModal/AffiliateStore/index.js +2 -2
- package/lib/common/LinkModal/BundleCampaign/index.js +1 -1
- package/lib/common/LinkModal/BundleCampaign/index.less +6 -3
- package/lib/common/LinkModal/CatgTable/index.js +2 -2
- package/lib/common/LinkModal/CouponTable/index.js +2 -2
- package/lib/common/LinkModal/CustomTable/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.less +3 -2
- package/lib/common/LinkModal/FunctionTable/index.js +2 -2
- package/lib/common/LinkModal/InterestedMerchants/index.js +2 -2
- package/lib/common/LinkModal/InterestedProducts/index.js +2 -2
- package/lib/common/LinkModal/MerchantStory/index.js +2 -2
- package/lib/common/LinkModal/MiniAppApi/index.js +1 -1
- package/lib/common/LinkModal/MiniAppTable/index.js +2 -2
- package/lib/common/LinkModal/MissionDetail/index.js +5 -5
- package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/lib/common/LinkModal/ProductDetailPage/index.less +1 -1
- package/lib/common/LinkModal/SelectVideoModal/index.less +2 -1
- package/lib/common/LinkModal/ShareUrl/index.less +1 -1
- package/lib/common/LinkModal/StoreCatgTable/index.js +2 -2
- package/lib/common/LinkModal/StoreTable/index.js +2 -2
- package/lib/common/LinkModal/index.js +116 -106
- package/lib/common/LinkModal/index.less +35 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +5 -3
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +17 -8
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +40 -8
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +20 -11
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -7
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +11 -11
- package/lib/constants/index.js +2 -1
- package/lib/constants/layout.js +14 -2
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/mn/mn.json +1 -0
- package/lib/utils/businessUtil.js +13 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -262,7 +262,7 @@ function AffiliatePlatform(props) {
|
|
|
262
262
|
|
|
263
263
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
264
264
|
style: {
|
|
265
|
-
height:
|
|
265
|
+
height: 450
|
|
266
266
|
}
|
|
267
267
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
268
268
|
labelCol: {
|
|
@@ -319,7 +319,7 @@ function AffiliatePlatform(props) {
|
|
|
319
319
|
rowKey: "distributionPlatformId",
|
|
320
320
|
rowSelection: rowSelection,
|
|
321
321
|
scroll: {
|
|
322
|
-
y:
|
|
322
|
+
y: 350
|
|
323
323
|
}
|
|
324
324
|
}));
|
|
325
325
|
}
|
|
@@ -268,7 +268,7 @@ function AffiliateStore(props) {
|
|
|
268
268
|
|
|
269
269
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
270
270
|
style: {
|
|
271
|
-
height:
|
|
271
|
+
height: 450
|
|
272
272
|
}
|
|
273
273
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
274
274
|
labelCol: {
|
|
@@ -325,7 +325,7 @@ function AffiliateStore(props) {
|
|
|
325
325
|
rowKey: "affiliateStoreId",
|
|
326
326
|
rowSelection: rowSelection,
|
|
327
327
|
scroll: {
|
|
328
|
-
y:
|
|
328
|
+
y: 350
|
|
329
329
|
}
|
|
330
330
|
}));
|
|
331
331
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
.bundleCampaign{
|
|
1
|
+
.bundleCampaign {
|
|
2
2
|
// padding-top: 12px;
|
|
3
3
|
// border-top: 1px solid #f0f0f0;
|
|
4
|
-
height:
|
|
4
|
+
height: 450px;
|
|
5
|
+
|
|
5
6
|
.inputStyle {
|
|
6
7
|
width: 280px;
|
|
7
8
|
height: 32px;
|
|
8
9
|
margin-left: 10px;
|
|
9
|
-
|
|
10
|
+
}
|
|
11
|
+
|
|
10
12
|
.labelStyle {
|
|
11
13
|
display: inline-block;
|
|
12
14
|
width: 110px;
|
|
13
15
|
text-align: right;
|
|
14
16
|
line-height: 2;
|
|
15
17
|
}
|
|
18
|
+
|
|
16
19
|
.mb12 {
|
|
17
20
|
margin-bottom: 12px;
|
|
18
21
|
}
|
|
@@ -223,7 +223,7 @@ function CatgTable(props) {
|
|
|
223
223
|
};
|
|
224
224
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
225
|
style: {
|
|
226
|
-
height:
|
|
226
|
+
height: 450
|
|
227
227
|
}
|
|
228
228
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
229
229
|
bordered: false,
|
|
@@ -237,7 +237,7 @@ function CatgTable(props) {
|
|
|
237
237
|
},
|
|
238
238
|
rowSelection: rowSelection,
|
|
239
239
|
scroll: {
|
|
240
|
-
y:
|
|
240
|
+
y: 380
|
|
241
241
|
}
|
|
242
242
|
}));
|
|
243
243
|
}
|
|
@@ -294,7 +294,7 @@ function CouponTable(props) {
|
|
|
294
294
|
}, []);
|
|
295
295
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
296
296
|
style: {
|
|
297
|
-
height:
|
|
297
|
+
height: 450
|
|
298
298
|
}
|
|
299
299
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
300
300
|
columns: columns,
|
|
@@ -308,7 +308,7 @@ function CouponTable(props) {
|
|
|
308
308
|
}),
|
|
309
309
|
rowSelection: rowSelection,
|
|
310
310
|
scroll: {
|
|
311
|
-
y:
|
|
311
|
+
y: 380
|
|
312
312
|
}
|
|
313
313
|
}));
|
|
314
314
|
}
|
|
@@ -221,7 +221,7 @@ function CustomTable(props) {
|
|
|
221
221
|
};
|
|
222
222
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
223
|
style: {
|
|
224
|
-
height:
|
|
224
|
+
height: 450
|
|
225
225
|
}
|
|
226
226
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
227
227
|
bordered: false,
|
|
@@ -232,7 +232,7 @@ function CustomTable(props) {
|
|
|
232
232
|
rowKey: "bdPageId",
|
|
233
233
|
rowSelection: rowSelection,
|
|
234
234
|
scroll: {
|
|
235
|
-
y:
|
|
235
|
+
y: 380
|
|
236
236
|
}
|
|
237
237
|
}));
|
|
238
238
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.mFilteredProductModal {
|
|
2
|
-
height:
|
|
2
|
+
height: 450px;
|
|
3
3
|
|
|
4
4
|
.proModalWrap {
|
|
5
5
|
.info {
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
|
|
87
87
|
.leftCot {
|
|
88
88
|
width: 280px;
|
|
89
|
-
|
|
89
|
+
height: 400px;
|
|
90
|
+
overflow-y: auto;
|
|
90
91
|
box-sizing: border-box;
|
|
91
92
|
border-right: 1px solid #e0e0e0;
|
|
92
93
|
padding-right: 15px;
|
|
@@ -218,7 +218,7 @@ function FunctionTable(props) {
|
|
|
218
218
|
}, []);
|
|
219
219
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
220
220
|
style: {
|
|
221
|
-
height:
|
|
221
|
+
height: 450
|
|
222
222
|
}
|
|
223
223
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
224
224
|
columns: columns,
|
|
@@ -228,7 +228,7 @@ function FunctionTable(props) {
|
|
|
228
228
|
rowKey: "funcUrlLibId",
|
|
229
229
|
rowSelection: rowSelection,
|
|
230
230
|
scroll: {
|
|
231
|
-
y:
|
|
231
|
+
y: 380
|
|
232
232
|
}
|
|
233
233
|
}));
|
|
234
234
|
}
|
|
@@ -262,7 +262,7 @@ function InterestedMerchants(props) {
|
|
|
262
262
|
|
|
263
263
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
264
264
|
style: {
|
|
265
|
-
height:
|
|
265
|
+
height: 450
|
|
266
266
|
}
|
|
267
267
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
268
268
|
labelCol: {
|
|
@@ -319,7 +319,7 @@ function InterestedMerchants(props) {
|
|
|
319
319
|
rowKey: "interestId",
|
|
320
320
|
rowSelection: rowSelection,
|
|
321
321
|
scroll: {
|
|
322
|
-
y:
|
|
322
|
+
y: 350
|
|
323
323
|
}
|
|
324
324
|
}));
|
|
325
325
|
}
|
|
@@ -262,7 +262,7 @@ function InterestedMerchants(props) {
|
|
|
262
262
|
|
|
263
263
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
264
264
|
style: {
|
|
265
|
-
height:
|
|
265
|
+
height: 450
|
|
266
266
|
}
|
|
267
267
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
268
268
|
labelCol: {
|
|
@@ -319,7 +319,7 @@ function InterestedMerchants(props) {
|
|
|
319
319
|
rowKey: "interestId",
|
|
320
320
|
rowSelection: rowSelection,
|
|
321
321
|
scroll: {
|
|
322
|
-
y:
|
|
322
|
+
y: 350
|
|
323
323
|
}
|
|
324
324
|
}));
|
|
325
325
|
}
|
|
@@ -264,7 +264,7 @@ function MerchantStory(props) {
|
|
|
264
264
|
|
|
265
265
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
266
266
|
style: {
|
|
267
|
-
height:
|
|
267
|
+
height: 450
|
|
268
268
|
}
|
|
269
269
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
270
270
|
labelCol: {
|
|
@@ -321,7 +321,7 @@ function MerchantStory(props) {
|
|
|
321
321
|
rowKey: "storeId",
|
|
322
322
|
rowSelection: rowSelection,
|
|
323
323
|
scroll: {
|
|
324
|
-
y:
|
|
324
|
+
y: 350
|
|
325
325
|
}
|
|
326
326
|
}));
|
|
327
327
|
}
|
|
@@ -233,7 +233,7 @@ function CustomTable(props) {
|
|
|
233
233
|
};
|
|
234
234
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
235
235
|
style: {
|
|
236
|
-
height:
|
|
236
|
+
height: 450
|
|
237
237
|
}
|
|
238
238
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
239
239
|
bordered: false,
|
|
@@ -244,7 +244,7 @@ function CustomTable(props) {
|
|
|
244
244
|
rowKey: "storeMiniProgramId",
|
|
245
245
|
rowSelection: rowSelection,
|
|
246
246
|
scroll: {
|
|
247
|
-
y:
|
|
247
|
+
y: 380
|
|
248
248
|
}
|
|
249
249
|
}));
|
|
250
250
|
}
|
|
@@ -227,13 +227,13 @@ function MissionDetail(props) {
|
|
|
227
227
|
queryData(paginationParams);
|
|
228
228
|
}, []);
|
|
229
229
|
var columns = [{
|
|
230
|
-
title: '
|
|
230
|
+
title: 'Mission Name',
|
|
231
231
|
dataIndex: 'taskName'
|
|
232
232
|
}, {
|
|
233
|
-
title: '
|
|
233
|
+
title: 'EffDate',
|
|
234
234
|
dataIndex: 'effDate'
|
|
235
235
|
}, {
|
|
236
|
-
title: '
|
|
236
|
+
title: 'ExpDate',
|
|
237
237
|
dataIndex: 'expDate'
|
|
238
238
|
}];
|
|
239
239
|
var rowSelection = {
|
|
@@ -255,7 +255,7 @@ function MissionDetail(props) {
|
|
|
255
255
|
|
|
256
256
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
257
257
|
style: {
|
|
258
|
-
height:
|
|
258
|
+
height: 450
|
|
259
259
|
}
|
|
260
260
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
261
261
|
labelCol: {
|
|
@@ -312,7 +312,7 @@ function MissionDetail(props) {
|
|
|
312
312
|
rowKey: "sfTaskId",
|
|
313
313
|
rowSelection: rowSelection,
|
|
314
314
|
scroll: {
|
|
315
|
-
y:
|
|
315
|
+
y: 350
|
|
316
316
|
}
|
|
317
317
|
}));
|
|
318
318
|
}
|
|
@@ -223,7 +223,7 @@ function StoreCatgTable(props) {
|
|
|
223
223
|
};
|
|
224
224
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
225
|
style: {
|
|
226
|
-
height:
|
|
226
|
+
height: 450
|
|
227
227
|
}
|
|
228
228
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
229
229
|
bordered: false,
|
|
@@ -237,7 +237,7 @@ function StoreCatgTable(props) {
|
|
|
237
237
|
},
|
|
238
238
|
rowSelection: rowSelection,
|
|
239
239
|
scroll: {
|
|
240
|
-
y:
|
|
240
|
+
y: 380
|
|
241
241
|
}
|
|
242
242
|
}));
|
|
243
243
|
}
|
|
@@ -264,7 +264,7 @@ function StoreTable(props) {
|
|
|
264
264
|
|
|
265
265
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
266
266
|
style: {
|
|
267
|
-
height:
|
|
267
|
+
height: 450
|
|
268
268
|
}
|
|
269
269
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
270
270
|
labelCol: {
|
|
@@ -321,7 +321,7 @@ function StoreTable(props) {
|
|
|
321
321
|
rowKey: "storeId",
|
|
322
322
|
rowSelection: rowSelection,
|
|
323
323
|
scroll: {
|
|
324
|
-
y:
|
|
324
|
+
y: 350
|
|
325
325
|
}
|
|
326
326
|
}));
|
|
327
327
|
}
|
|
@@ -11,6 +11,8 @@ var _antd = require("antd4");
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
14
16
|
var _CouponTable = _interopRequireDefault(require("./CouponTable"));
|
|
15
17
|
|
|
16
18
|
var _FilteredProductModal = _interopRequireDefault(require("./FilteredProductModal"));
|
|
@@ -323,116 +325,124 @@ var LinkModal = function LinkModal(props) {
|
|
|
323
325
|
visible: visible,
|
|
324
326
|
width: "1000px",
|
|
325
327
|
wrapClassName: "magicLinkModal"
|
|
326
|
-
}, modalConfig), /*#__PURE__*/_react["default"].createElement(
|
|
327
|
-
|
|
328
|
-
|
|
328
|
+
}, modalConfig), /*#__PURE__*/_react["default"].createElement("div", {
|
|
329
|
+
className: "wrap"
|
|
330
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
331
|
+
className: "types-list"
|
|
329
332
|
}, linkTypes.map(function (item) {
|
|
330
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
333
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
331
334
|
key: item.linkTypeCode,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
}), item.linkTypeCode === 'Category' && /*#__PURE__*/_react["default"].createElement(_CatgTable["default"], {
|
|
339
|
-
_fetch: _fetch,
|
|
340
|
-
onChange: function onChange(value) {
|
|
341
|
-
return setLinkUrl(value);
|
|
342
|
-
}
|
|
343
|
-
}), item.linkTypeCode === 'CustomizedPage' && /*#__PURE__*/_react["default"].createElement(_CustomTable["default"], {
|
|
344
|
-
_fetch: _fetch,
|
|
345
|
-
onChange: function onChange(value) {
|
|
346
|
-
return setLinkUrl(value);
|
|
347
|
-
}
|
|
348
|
-
}), item.linkTypeCode === 'ProductDetailPage' && /*#__PURE__*/_react["default"].createElement(_ProductDetailPage["default"], {
|
|
349
|
-
_fetch: _fetch,
|
|
350
|
-
onChange: function onChange(url) {
|
|
351
|
-
return setLinkUrl(url);
|
|
352
|
-
}
|
|
353
|
-
}), item.linkTypeCode === 'FilteredProduct' && /*#__PURE__*/_react["default"].createElement(_FilteredProductModal["default"], {
|
|
354
|
-
_fetch: _fetch,
|
|
355
|
-
onDataChange: function onDataChange(url, t) {
|
|
356
|
-
setLinkUrl(url);
|
|
357
|
-
setTotal(t);
|
|
358
|
-
}
|
|
359
|
-
}), item.linkTypeCode === 'FunctionPage' && /*#__PURE__*/_react["default"].createElement(_FunctionTable["default"], {
|
|
360
|
-
_fetch: _fetch,
|
|
361
|
-
onChange: function onChange(value) {
|
|
362
|
-
return setLinkUrl(value);
|
|
363
|
-
}
|
|
364
|
-
}), item.linkTypeCode === 'Coupons' && /*#__PURE__*/_react["default"].createElement(_CouponTable["default"], {
|
|
365
|
-
_fetch: _fetch,
|
|
366
|
-
onChange: function onChange(value) {
|
|
367
|
-
return setLinkUrl(value);
|
|
368
|
-
}
|
|
369
|
-
}), item.linkTypeCode === 'BundleCampaign' && /*#__PURE__*/_react["default"].createElement(_BundleCampaign["default"], {
|
|
370
|
-
_fetch: _fetch,
|
|
371
|
-
onChange: function onChange(value) {
|
|
372
|
-
return setLinkUrl(value);
|
|
373
|
-
}
|
|
374
|
-
}), item.linkTypeCode === 'Video' && /*#__PURE__*/_react["default"].createElement(_SelectVideoModal["default"], {
|
|
375
|
-
_fetch: _fetch,
|
|
376
|
-
setUrl: function setUrl(value) {
|
|
377
|
-
return setLinkUrl(value);
|
|
378
|
-
}
|
|
379
|
-
}), item.linkTypeCode === 'ShareURL' && /*#__PURE__*/_react["default"].createElement(_ShareUrl["default"], {
|
|
380
|
-
_fetch: _fetch,
|
|
381
|
-
onChange: function onChange(value) {
|
|
382
|
-
return setLinkUrl(value);
|
|
383
|
-
}
|
|
384
|
-
}), item.linkTypeCode === 'MiniApp' && /*#__PURE__*/_react["default"].createElement(_MiniAppTable["default"], {
|
|
385
|
-
_fetch: _fetch,
|
|
386
|
-
onChange: function onChange(value) {
|
|
387
|
-
return setLinkUrl(value);
|
|
388
|
-
}
|
|
389
|
-
}), item.linkTypeCode === 'Store' && /*#__PURE__*/_react["default"].createElement(_StoreTable["default"], {
|
|
390
|
-
_fetch: _fetch,
|
|
391
|
-
onChange: function onChange(value) {
|
|
392
|
-
return setLinkUrl(value);
|
|
393
|
-
}
|
|
394
|
-
}), item.linkTypeCode === 'AffiliateProduct' && /*#__PURE__*/_react["default"].createElement(_AffiliateProductTable["default"], {
|
|
395
|
-
_fetch: _fetch,
|
|
396
|
-
onChange: function onChange(value) {
|
|
397
|
-
return setLinkUrl(value);
|
|
398
|
-
}
|
|
399
|
-
}), item.linkTypeCode === 'AffiliateStore' && /*#__PURE__*/_react["default"].createElement(_AffiliateStore["default"], {
|
|
400
|
-
_fetch: _fetch,
|
|
401
|
-
onChange: function onChange(value) {
|
|
402
|
-
return setLinkUrl(value);
|
|
403
|
-
}
|
|
404
|
-
}), item.linkTypeCode === 'MiniApi' && /*#__PURE__*/_react["default"].createElement(_MiniAppApi["default"], {
|
|
405
|
-
_fetch: _fetch,
|
|
406
|
-
onChange: function onChange(value) {
|
|
407
|
-
return setLinkUrl(value);
|
|
408
|
-
}
|
|
409
|
-
}), item.linkTypeCode === 'AffiliatePlatform' && /*#__PURE__*/_react["default"].createElement(_AffiliatePlatform["default"], {
|
|
410
|
-
_fetch: _fetch,
|
|
411
|
-
onChange: function onChange(value) {
|
|
412
|
-
return setLinkUrl(value);
|
|
413
|
-
}
|
|
414
|
-
}), item.linkTypeCode === 'InterestedMerchants' && /*#__PURE__*/_react["default"].createElement(_InterestedMerchants["default"], {
|
|
415
|
-
_fetch: _fetch,
|
|
416
|
-
onChange: function onChange(value) {
|
|
417
|
-
return setLinkUrl(value);
|
|
418
|
-
}
|
|
419
|
-
}), item.linkTypeCode === 'InterestedProducts' && /*#__PURE__*/_react["default"].createElement(_InterestedProducts["default"], {
|
|
420
|
-
_fetch: _fetch,
|
|
421
|
-
onChange: function onChange(value) {
|
|
422
|
-
return setLinkUrl(value);
|
|
423
|
-
}
|
|
424
|
-
}), item.linkTypeCode === 'MerchantStory' && /*#__PURE__*/_react["default"].createElement(_MerchantStory["default"], {
|
|
425
|
-
_fetch: _fetch,
|
|
426
|
-
onChange: function onChange(value) {
|
|
427
|
-
return setLinkUrl(value);
|
|
428
|
-
}
|
|
429
|
-
}), item.linkTypeCode === 'AffiliateMissionDetail' && /*#__PURE__*/_react["default"].createElement(_MissionDetail["default"], {
|
|
430
|
-
_fetch: _fetch,
|
|
431
|
-
onChange: function onChange(value) {
|
|
432
|
-
return setLinkUrl(value);
|
|
335
|
+
className: (0, _classnames["default"])('tag', {
|
|
336
|
+
active: selected === item.linkTypeCode
|
|
337
|
+
}),
|
|
338
|
+
onClick: function onClick() {
|
|
339
|
+
return onTabsChange(item.linkTypeCode);
|
|
433
340
|
}
|
|
434
|
-
})
|
|
341
|
+
}, item.linkTypeName);
|
|
435
342
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
343
|
+
className: "form-content"
|
|
344
|
+
}, selected === 'StoreCategory' && /*#__PURE__*/_react["default"].createElement(_StoreCatgTable["default"], {
|
|
345
|
+
_fetch: _fetch,
|
|
346
|
+
onChange: function onChange(value) {
|
|
347
|
+
setLinkUrl(value);
|
|
348
|
+
}
|
|
349
|
+
}), selected === 'Category' && /*#__PURE__*/_react["default"].createElement(_CatgTable["default"], {
|
|
350
|
+
_fetch: _fetch,
|
|
351
|
+
onChange: function onChange(value) {
|
|
352
|
+
return setLinkUrl(value);
|
|
353
|
+
}
|
|
354
|
+
}), selected === 'CustomizedPage' && /*#__PURE__*/_react["default"].createElement(_CustomTable["default"], {
|
|
355
|
+
_fetch: _fetch,
|
|
356
|
+
onChange: function onChange(value) {
|
|
357
|
+
return setLinkUrl(value);
|
|
358
|
+
}
|
|
359
|
+
}), selected === 'ProductDetailPage' && /*#__PURE__*/_react["default"].createElement(_ProductDetailPage["default"], {
|
|
360
|
+
_fetch: _fetch,
|
|
361
|
+
onChange: function onChange(url) {
|
|
362
|
+
return setLinkUrl(url);
|
|
363
|
+
}
|
|
364
|
+
}), selected === 'FilteredProduct' && /*#__PURE__*/_react["default"].createElement(_FilteredProductModal["default"], {
|
|
365
|
+
_fetch: _fetch,
|
|
366
|
+
onDataChange: function onDataChange(url, t) {
|
|
367
|
+
setLinkUrl(url);
|
|
368
|
+
setTotal(t);
|
|
369
|
+
}
|
|
370
|
+
}), selected === 'FunctionPage' && /*#__PURE__*/_react["default"].createElement(_FunctionTable["default"], {
|
|
371
|
+
_fetch: _fetch,
|
|
372
|
+
onChange: function onChange(value) {
|
|
373
|
+
return setLinkUrl(value);
|
|
374
|
+
}
|
|
375
|
+
}), selected === 'Coupons' && /*#__PURE__*/_react["default"].createElement(_CouponTable["default"], {
|
|
376
|
+
_fetch: _fetch,
|
|
377
|
+
onChange: function onChange(value) {
|
|
378
|
+
return setLinkUrl(value);
|
|
379
|
+
}
|
|
380
|
+
}), selected === 'BundleCampaign' && /*#__PURE__*/_react["default"].createElement(_BundleCampaign["default"], {
|
|
381
|
+
_fetch: _fetch,
|
|
382
|
+
onChange: function onChange(value) {
|
|
383
|
+
return setLinkUrl(value);
|
|
384
|
+
}
|
|
385
|
+
}), selected === 'Video' && /*#__PURE__*/_react["default"].createElement(_SelectVideoModal["default"], {
|
|
386
|
+
_fetch: _fetch,
|
|
387
|
+
setUrl: function setUrl(value) {
|
|
388
|
+
return setLinkUrl(value);
|
|
389
|
+
}
|
|
390
|
+
}), selected === 'ShareURL' && /*#__PURE__*/_react["default"].createElement(_ShareUrl["default"], {
|
|
391
|
+
_fetch: _fetch,
|
|
392
|
+
onChange: function onChange(value) {
|
|
393
|
+
return setLinkUrl(value);
|
|
394
|
+
}
|
|
395
|
+
}), selected === 'MiniApp' && /*#__PURE__*/_react["default"].createElement(_MiniAppTable["default"], {
|
|
396
|
+
_fetch: _fetch,
|
|
397
|
+
onChange: function onChange(value) {
|
|
398
|
+
return setLinkUrl(value);
|
|
399
|
+
}
|
|
400
|
+
}), selected === 'Store' && /*#__PURE__*/_react["default"].createElement(_StoreTable["default"], {
|
|
401
|
+
_fetch: _fetch,
|
|
402
|
+
onChange: function onChange(value) {
|
|
403
|
+
return setLinkUrl(value);
|
|
404
|
+
}
|
|
405
|
+
}), selected === 'AffiliateProduct' && /*#__PURE__*/_react["default"].createElement(_AffiliateProductTable["default"], {
|
|
406
|
+
_fetch: _fetch,
|
|
407
|
+
onChange: function onChange(value) {
|
|
408
|
+
return setLinkUrl(value);
|
|
409
|
+
}
|
|
410
|
+
}), selected === 'AffiliateStore' && /*#__PURE__*/_react["default"].createElement(_AffiliateStore["default"], {
|
|
411
|
+
_fetch: _fetch,
|
|
412
|
+
onChange: function onChange(value) {
|
|
413
|
+
return setLinkUrl(value);
|
|
414
|
+
}
|
|
415
|
+
}), selected === 'MiniApi' && /*#__PURE__*/_react["default"].createElement(_MiniAppApi["default"], {
|
|
416
|
+
_fetch: _fetch,
|
|
417
|
+
onChange: function onChange(value) {
|
|
418
|
+
return setLinkUrl(value);
|
|
419
|
+
}
|
|
420
|
+
}), selected === 'AffiliatePlatform' && /*#__PURE__*/_react["default"].createElement(_AffiliatePlatform["default"], {
|
|
421
|
+
_fetch: _fetch,
|
|
422
|
+
onChange: function onChange(value) {
|
|
423
|
+
return setLinkUrl(value);
|
|
424
|
+
}
|
|
425
|
+
}), selected === 'InterestedMerchants' && /*#__PURE__*/_react["default"].createElement(_InterestedMerchants["default"], {
|
|
426
|
+
_fetch: _fetch,
|
|
427
|
+
onChange: function onChange(value) {
|
|
428
|
+
return setLinkUrl(value);
|
|
429
|
+
}
|
|
430
|
+
}), selected === 'InterestedProducts' && /*#__PURE__*/_react["default"].createElement(_InterestedProducts["default"], {
|
|
431
|
+
_fetch: _fetch,
|
|
432
|
+
onChange: function onChange(value) {
|
|
433
|
+
return setLinkUrl(value);
|
|
434
|
+
}
|
|
435
|
+
}), selected === 'MerchantStory' && /*#__PURE__*/_react["default"].createElement(_MerchantStory["default"], {
|
|
436
|
+
_fetch: _fetch,
|
|
437
|
+
onChange: function onChange(value) {
|
|
438
|
+
return setLinkUrl(value);
|
|
439
|
+
}
|
|
440
|
+
}), selected === 'AffiliateMissionDetail' && /*#__PURE__*/_react["default"].createElement(_MissionDetail["default"], {
|
|
441
|
+
_fetch: _fetch,
|
|
442
|
+
onChange: function onChange(value) {
|
|
443
|
+
return setLinkUrl(value);
|
|
444
|
+
}
|
|
445
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
436
446
|
className: "footer"
|
|
437
447
|
}, selected === 'FilteredProduct' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
438
448
|
className: "total"
|