@fonixtree/magic-design 1.0.134 → 1.0.136

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.
Files changed (47) hide show
  1. package/es/assets/less/global.less +4 -0
  2. package/es/common/LinkModal/ProductList/index.js +484 -0
  3. package/es/common/LinkModal/ProductList/index.less +130 -0
  4. package/es/common/LinkModal/index.js +8 -1
  5. package/es/common/UrlPicker/index.js +1 -1
  6. package/es/common/Video/index.js +1 -1
  7. package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +2 -7
  8. package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +1 -1
  9. package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +2 -1
  10. package/es/composite-comp/dito/components/SearchDITO/pc/index.js +8 -29
  11. package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +11 -8
  12. package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
  13. package/es/composite-comp/dito/components/SlideImage/pc/components/ProductCardModal/imgs/dot-icon.png +0 -0
  14. package/es/composite-comp/dito/components/SlideImage/pc/components/ProductCardModal/index.js +179 -0
  15. package/es/composite-comp/dito/components/SlideImage/pc/components/ProductCardModal/index.less +106 -0
  16. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +7 -7
  17. package/es/composite-comp/dito/components/SlideImage/pc/index.js +212 -1
  18. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +10 -117
  19. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
  20. package/es/constants/index.js +2 -1
  21. package/es/meta-comp/components/Button/index.js +8 -3
  22. package/es/utils/businessUtil.js +11 -0
  23. package/es/utils/coreUtil.js +3 -4
  24. package/lib/assets/less/global.less +4 -0
  25. package/lib/common/LinkModal/ProductList/index.js +484 -0
  26. package/lib/common/LinkModal/ProductList/index.less +130 -0
  27. package/lib/common/LinkModal/index.js +8 -1
  28. package/lib/common/UrlPicker/index.js +1 -1
  29. package/lib/common/Video/index.js +1 -1
  30. package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +2 -7
  31. package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +1 -1
  32. package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +2 -1
  33. package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +8 -29
  34. package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +11 -8
  35. package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
  36. package/lib/composite-comp/dito/components/SlideImage/pc/components/ProductCardModal/imgs/dot-icon.png +0 -0
  37. package/lib/composite-comp/dito/components/SlideImage/pc/components/ProductCardModal/index.js +179 -0
  38. package/lib/composite-comp/dito/components/SlideImage/pc/components/ProductCardModal/index.less +106 -0
  39. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +7 -7
  40. package/lib/composite-comp/dito/components/SlideImage/pc/index.js +212 -1
  41. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +10 -117
  42. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
  43. package/lib/constants/index.js +2 -1
  44. package/lib/meta-comp/components/Button/index.js +8 -3
  45. package/lib/utils/businessUtil.js +11 -0
  46. package/lib/utils/coreUtil.js +3 -4
  47. package/package.json +1 -1
@@ -6,4 +6,8 @@
6
6
 
7
7
  body {
8
8
  margin: 0;
9
+ }
10
+
11
+ .no-scroll {
12
+ overflow: hidden;
9
13
  }
@@ -0,0 +1,484 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _react = _interopRequireWildcard(require("react"));
13
+
14
+ var _commonUtil = require("../../../utils/commonUtil");
15
+
16
+ var _currencyUtil = require("../../../utils/currencyUtil");
17
+
18
+ var _Iconfont = _interopRequireDefault(require("../../Iconfont"));
19
+
20
+ var _businessUtil = require("../../../utils/businessUtil");
21
+
22
+ require("./index.less");
23
+
24
+ var _locale = require("../../../locale");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ 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); }
29
+
30
+ 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; }
31
+
32
+ var __assign = void 0 && (void 0).__assign || function () {
33
+ __assign = Object.assign || function (t) {
34
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
35
+ s = arguments[i];
36
+
37
+ for (var p in s) {
38
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
39
+ }
40
+ }
41
+
42
+ return t;
43
+ };
44
+
45
+ return __assign.apply(this, arguments);
46
+ };
47
+
48
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
49
+ function adopt(value) {
50
+ return value instanceof P ? value : new P(function (resolve) {
51
+ resolve(value);
52
+ });
53
+ }
54
+
55
+ return new (P || (P = Promise))(function (resolve, reject) {
56
+ function fulfilled(value) {
57
+ try {
58
+ step(generator.next(value));
59
+ } catch (e) {
60
+ reject(e);
61
+ }
62
+ }
63
+
64
+ function rejected(value) {
65
+ try {
66
+ step(generator["throw"](value));
67
+ } catch (e) {
68
+ reject(e);
69
+ }
70
+ }
71
+
72
+ function step(result) {
73
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
74
+ }
75
+
76
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
77
+ });
78
+ };
79
+
80
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
81
+ var _ = {
82
+ label: 0,
83
+ sent: function sent() {
84
+ if (t[0] & 1) throw t[1];
85
+ return t[1];
86
+ },
87
+ trys: [],
88
+ ops: []
89
+ },
90
+ f,
91
+ y,
92
+ t,
93
+ g;
94
+ return g = {
95
+ next: verb(0),
96
+ "throw": verb(1),
97
+ "return": verb(2)
98
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
99
+ return this;
100
+ }), g;
101
+
102
+ function verb(n) {
103
+ return function (v) {
104
+ return step([n, v]);
105
+ };
106
+ }
107
+
108
+ function step(op) {
109
+ if (f) throw new TypeError("Generator is already executing.");
110
+
111
+ while (_) {
112
+ try {
113
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
114
+ if (y = 0, t) op = [op[0] & 2, t.value];
115
+
116
+ switch (op[0]) {
117
+ case 0:
118
+ case 1:
119
+ t = op;
120
+ break;
121
+
122
+ case 4:
123
+ _.label++;
124
+ return {
125
+ value: op[1],
126
+ done: false
127
+ };
128
+
129
+ case 5:
130
+ _.label++;
131
+ y = op[1];
132
+ op = [0];
133
+ continue;
134
+
135
+ case 7:
136
+ op = _.ops.pop();
137
+
138
+ _.trys.pop();
139
+
140
+ continue;
141
+
142
+ default:
143
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
144
+ _ = 0;
145
+ continue;
146
+ }
147
+
148
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
149
+ _.label = op[1];
150
+ break;
151
+ }
152
+
153
+ if (op[0] === 6 && _.label < t[1]) {
154
+ _.label = t[1];
155
+ t = op;
156
+ break;
157
+ }
158
+
159
+ if (t && _.label < t[2]) {
160
+ _.label = t[2];
161
+
162
+ _.ops.push(op);
163
+
164
+ break;
165
+ }
166
+
167
+ if (t[2]) _.ops.pop();
168
+
169
+ _.trys.pop();
170
+
171
+ continue;
172
+ }
173
+
174
+ op = body.call(thisArg, _);
175
+ } catch (e) {
176
+ op = [6, e];
177
+ y = 0;
178
+ } finally {
179
+ f = t = 0;
180
+ }
181
+ }
182
+
183
+ if (op[0] & 5) throw op[1];
184
+ return {
185
+ value: op[0] ? op[1] : void 0,
186
+ done: true
187
+ };
188
+ }
189
+ };
190
+
191
+ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
192
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
193
+ s += arguments[i].length;
194
+ }
195
+
196
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) {
197
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
198
+ r[k] = a[j];
199
+ }
200
+ }
201
+
202
+ return r;
203
+ };
204
+
205
+ var ProductList = function ProductList(props) {
206
+ var onChange = props.onChange,
207
+ _a = props.defaultList,
208
+ defaultList = _a === void 0 ? [] : _a;
209
+
210
+ var _b = (0, _react.useState)([]),
211
+ catgIds = _b[0],
212
+ setCatgIds = _b[1];
213
+
214
+ var _c = (0, _react.useState)(''),
215
+ productName = _c[0],
216
+ setProductName = _c[1];
217
+
218
+ var _d = (0, _react.useState)([]),
219
+ treeData = _d[0],
220
+ setTreeData = _d[1];
221
+
222
+ var _e = (0, _react.useState)([]),
223
+ dataSource = _e[0],
224
+ setDataSource = _e[1];
225
+
226
+ var _f = (0, _react.useState)(false),
227
+ loading = _f[0],
228
+ setLoading = _f[1];
229
+
230
+ var _g = (0, _react.useState)(defaultList),
231
+ selectedList = _g[0],
232
+ setSelectedList = _g[1];
233
+
234
+ var _h = (0, _react.useState)(defaultList.map(function (v) {
235
+ return v.offerId;
236
+ })),
237
+ selectedRowKeys = _h[0],
238
+ setSelectedRowKeys = _h[1];
239
+
240
+ var _j = (0, _react.useState)({
241
+ pageSize: 20,
242
+ current: 1,
243
+ total: 0
244
+ }),
245
+ paginationParams = _j[0],
246
+ setPaginationParams = _j[1];
247
+
248
+ var reset = function reset() {
249
+ setCatgIds([]);
250
+ setProductName('');
251
+ setDataSource([]);
252
+ onChange('', 0);
253
+ };
254
+
255
+ var rowSelection = {
256
+ selectedRowKeys: selectedRowKeys,
257
+ onSelect: function onSelect(record, selected, selectedRows) {
258
+ if (selected) {
259
+ setSelectedList(__spreadArrays(selectedList, [record]));
260
+ } else {
261
+ setSelectedList(selectedList.filter(function (v) {
262
+ return v.offerId !== record.offerId;
263
+ }));
264
+ }
265
+
266
+ setSelectedRowKeys(selectedRows.map(function (v) {
267
+ return v === null || v === void 0 ? void 0 : v.offerId;
268
+ }));
269
+ },
270
+ getCheckboxProps: function getCheckboxProps(record) {
271
+ return {
272
+ productName: record.productName
273
+ };
274
+ }
275
+ };
276
+ var columns = [{
277
+ title: 'Image',
278
+ dataIndex: 'cardImgUrl',
279
+ key: 'cardImgUrl',
280
+ width: 100,
281
+ render: function render(cardImgUrl) {
282
+ return /*#__PURE__*/_react["default"].createElement("div", {
283
+ className: "prodImage",
284
+ style: {
285
+ backgroundImage: "url(\"" + cardImgUrl + "\")"
286
+ }
287
+ });
288
+ }
289
+ }, {
290
+ title: 'Offer Name',
291
+ dataIndex: 'offerName',
292
+ key: 'offerName',
293
+ ellipsis: true
294
+ }, {
295
+ title: 'Price',
296
+ dataIndex: 'salesPrice',
297
+ key: 'salesPrice',
298
+ render: function render(salesPrice) {
299
+ var price = (0, _currencyUtil.formatCurrencyWithSymbol)(salesPrice);
300
+ return /*#__PURE__*/_react["default"].createElement("div", {
301
+ className: "one_row",
302
+ title: price
303
+ }, price);
304
+ }
305
+ }, {
306
+ title: 'Brand',
307
+ dataIndex: 'brandName',
308
+ key: 'brandName',
309
+ ellipsis: true
310
+ }, {
311
+ title: 'Store',
312
+ dataIndex: 'storeName',
313
+ key: 'storeName',
314
+ ellipsis: true
315
+ }]; // 请求类目
316
+
317
+ var queryCategory = function queryCategory() {
318
+ return __awaiter(void 0, void 0, void 0, function () {
319
+ var res;
320
+ return __generator(this, function (_a) {
321
+ switch (_a.label) {
322
+ case 0:
323
+ return [4
324
+ /*yield*/
325
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/offercatgs/list", {}, 'GET')];
326
+
327
+ case 1:
328
+ res = _a.sent();
329
+ setTreeData((0, _businessUtil.listToTree)(res));
330
+ return [2
331
+ /*return*/
332
+ ];
333
+ }
334
+ });
335
+ });
336
+ };
337
+
338
+ var loadGoods = function loadGoods() {
339
+ return __awaiter(void 0, void 0, void 0, function () {
340
+ var params, res;
341
+ return __generator(this, function (_a) {
342
+ switch (_a.label) {
343
+ case 0:
344
+ setLoading(true);
345
+ params = {
346
+ catgIds: catgIds.join(','),
347
+ q: productName,
348
+ state: 'A',
349
+ pageSize: paginationParams.pageSize,
350
+ pageIndex: paginationParams.current
351
+ };
352
+ return [4
353
+ /*yield*/
354
+ , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offers/es", params, 'POST')];
355
+
356
+ case 1:
357
+ res = _a.sent();
358
+ setDataSource(res.list || []);
359
+ paginationParams.total = res.total;
360
+ setPaginationParams(__assign({}, paginationParams));
361
+ setLoading(false);
362
+ return [2
363
+ /*return*/
364
+ ];
365
+ }
366
+ });
367
+ });
368
+ };
369
+
370
+ var delSelectedItem = function delSelectedItem(index) {
371
+ var rowKeys = JSON.parse(JSON.stringify(selectedRowKeys));
372
+ rowKeys.splice(index, 1);
373
+ setSelectedRowKeys(rowKeys);
374
+ var rows = JSON.parse(JSON.stringify(selectedList));
375
+ rows.splice(index, 1);
376
+ setSelectedList(rows);
377
+ };
378
+
379
+ (0, _react.useEffect)(function () {
380
+ queryCategory();
381
+ }, []);
382
+ (0, _react.useEffect)(function () {
383
+ onChange({
384
+ value: selectedList.map(function (m) {
385
+ return m.offerId;
386
+ })
387
+ }, selectedList.length);
388
+ }, [selectedList]);
389
+ return /*#__PURE__*/_react["default"].createElement("div", {
390
+ className: "mProductList"
391
+ }, /*#__PURE__*/_react["default"].createElement("div", {
392
+ className: "proModalWrap"
393
+ }, /*#__PURE__*/_react["default"].createElement("div", {
394
+ className: "mProductListContent"
395
+ }, /*#__PURE__*/_react["default"].createElement("div", {
396
+ className: "leftCot"
397
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
398
+ layout: "vertical"
399
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
400
+ label: "Category"
401
+ }, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect, {
402
+ dropdownStyle: {
403
+ maxHeight: 400,
404
+ overflow: 'auto'
405
+ },
406
+ maxTagCount: 2,
407
+ maxTagTextLength: 5,
408
+ multiple: true,
409
+ onChange: function onChange(v) {
410
+ return setCatgIds(v);
411
+ },
412
+ placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
413
+ size: "small",
414
+ treeData: treeData,
415
+ treeDefaultExpandAll: true,
416
+ value: catgIds
417
+ })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
418
+ label: "Offer Name"
419
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
420
+ onChange: function onChange(e) {
421
+ setProductName(e.currentTarget.value);
422
+ },
423
+ placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
424
+ size: "small",
425
+ value: productName
426
+ })), /*#__PURE__*/_react["default"].createElement("div", {
427
+ className: "buttonStyle"
428
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
429
+ onClick: function onClick() {
430
+ paginationParams.current = 1;
431
+ loadGoods();
432
+ },
433
+ size: "small",
434
+ style: {
435
+ marginRight: 8
436
+ },
437
+ type: "primary"
438
+ }, (0, _locale.i18n)('SEARCH')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
439
+ onClick: function onClick() {
440
+ reset();
441
+ },
442
+ size: "small"
443
+ }, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement("div", {
444
+ className: "rightCot"
445
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
446
+ columns: columns,
447
+ dataSource: dataSource,
448
+ loading: loading,
449
+ pagination: __assign(__assign({}, paginationParams), {
450
+ onChange: function onChange(page) {
451
+ paginationParams.current = page;
452
+ loadGoods();
453
+ }
454
+ }),
455
+ rowKey: "offerId",
456
+ rowSelection: rowSelection,
457
+ scroll: {
458
+ y: 300
459
+ }
460
+ }), /*#__PURE__*/_react["default"].createElement("div", {
461
+ className: "selectedCot"
462
+ }, selectedList.map(function (item, index) {
463
+ return /*#__PURE__*/_react["default"].createElement("div", {
464
+ key: index,
465
+ className: "selectedItem"
466
+ }, /*#__PURE__*/_react["default"].createElement("img", {
467
+ alt: "",
468
+ className: "selectedItemImg",
469
+ src: item.cardImgUrl,
470
+ title: item.offerName
471
+ }), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
472
+ className: "selectedItemClose",
473
+ color: "#000",
474
+ onClick: function onClick() {
475
+ return delSelectedItem(index);
476
+ },
477
+ size: 12,
478
+ type: "icon-close"
479
+ }));
480
+ }))))));
481
+ };
482
+
483
+ var _default = ProductList;
484
+ exports["default"] = _default;
@@ -0,0 +1,130 @@
1
+ .mProductList {
2
+ height: 500px;
3
+
4
+ .proModalWrap {
5
+ .info {
6
+ background: #ecf1fd;
7
+ border: 1px solid #bdcff9;
8
+ border-radius: 2px;
9
+ padding: 5px 0 5px 16px;
10
+ margin-bottom: 8px;
11
+ }
12
+
13
+ .prodImage {
14
+ width: 36px;
15
+ height: 36px;
16
+ background-repeat: no-repeat;
17
+ background-position: 50% 50%;
18
+ background-size: contain;
19
+ }
20
+
21
+ .mProductListContent {
22
+ display: flex;
23
+
24
+ .rightCot {
25
+ width: calc(100% - 240px);
26
+ margin-left: 16px;
27
+
28
+ .selectedCot {
29
+ padding-right: 18px;
30
+ margin-left: 4px;
31
+ height: 78px;
32
+ background: #f8f8f8;
33
+ border: 1px solid #e0e0e0;
34
+ border-radius: 2px;
35
+ display: flex;
36
+ flex-direction: row;
37
+ // flex-wrap: wrap;
38
+ overflow-x: auto;
39
+
40
+ .selectedItem {
41
+ box-sizing: border-box;
42
+ margin-top: 12px;
43
+ margin-left: 18px;
44
+ height: 52px;
45
+ position: relative;
46
+
47
+ &:hover {
48
+ .selectedItemImg {
49
+ width: 52px;
50
+ height: 52px;
51
+ border: 1px solid #4477ee !important;
52
+ box-shadow: 0 0 0 2px rgba(68, 119, 238, 0.15);
53
+ border-radius: 2px;
54
+ }
55
+
56
+ .selectedItemClose {
57
+ display: flex;
58
+ }
59
+ }
60
+
61
+ .selectedItemClose {
62
+ display: none;
63
+ border: 1px solid #000;
64
+ width: 16px;
65
+ height: 16px;
66
+ border-radius: 50%;
67
+ padding: 2px;
68
+ position: absolute;
69
+ top: -9px;
70
+ right: -8px;
71
+ z-index: 400;
72
+ cursor: pointer;
73
+ }
74
+
75
+ .selectedItemImg {
76
+ height: 52px;
77
+ width: 52px;
78
+ border: 1px solid #e0e0e0;
79
+ border-radius: 2px;
80
+
81
+ &.invalid {
82
+ border: 1px solid red;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ .leftCot {
90
+ width: 280px;
91
+ // height: 400px;
92
+ box-sizing: border-box;
93
+ border-right: 1px solid #e0e0e0;
94
+ padding-right: 15px;
95
+
96
+ .price {
97
+ display: flex;
98
+ width: calc(100% - 16px);
99
+
100
+ .icon {
101
+ width: 100px;
102
+ display: flex;
103
+ justify-content: center;
104
+ align-items: center;
105
+ border: 1px solid #e0e0e0;
106
+ border-radius: 2px;
107
+ }
108
+ }
109
+
110
+ .cylon-form-item {
111
+ margin-bottom: 4px;
112
+ }
113
+
114
+ .buttonStyle {
115
+ margin-top: 10px;
116
+ text-align: right;
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ .cylon-modal-root {
124
+ display: flex;
125
+ justify-content: center;
126
+ position: absolute;
127
+ left: 0;
128
+ right: 0;
129
+ z-index: 1001;
130
+ }
@@ -37,6 +37,8 @@ var _StoreCatgTable = _interopRequireDefault(require("./StoreCatgTable"));
37
37
 
38
38
  var _AffiliateProductTable = _interopRequireDefault(require("./AffiliateProductTable"));
39
39
 
40
+ var _ProductList = _interopRequireDefault(require("./ProductList"));
41
+
40
42
  var _locale = require("../../locale");
41
43
 
42
44
  var _commonUtil = require("../../utils/commonUtil");
@@ -359,10 +361,15 @@ var LinkModal = function LinkModal(props) {
359
361
  onChange: function onChange(value) {
360
362
  return setLinkUrl(value);
361
363
  }
364
+ }), item.linkTypeCode === 'ProductList' && /*#__PURE__*/_react["default"].createElement(_ProductList["default"], {
365
+ onChange: function onChange(url, t) {
366
+ setLinkUrl(url);
367
+ setTotal(t);
368
+ }
362
369
  }));
363
370
  })), /*#__PURE__*/_react["default"].createElement("div", {
364
371
  className: "footer"
365
- }, selected === 'FilteredProduct' ? /*#__PURE__*/_react["default"].createElement("div", {
372
+ }, selected === 'FilteredProduct' || selected === 'ProductList' ? /*#__PURE__*/_react["default"].createElement("div", {
366
373
  className: "total"
367
374
  }, total, " Products In Total") : /*#__PURE__*/_react["default"].createElement("div", null), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
368
375
  className: "btn-cancel",
@@ -85,7 +85,7 @@ function (_super) {
85
85
  onlySpecificCode = _c.onlySpecificCode; // 弹框选择url不可编辑,需要先清除
86
86
 
87
87
  var editable = !value || !value.type;
88
- var inputName = (value === null || value === void 0 ? void 0 : value.name) || '';
88
+ var inputName = (value === null || value === void 0 ? void 0 : value.name) || (value === null || value === void 0 ? void 0 : value.value) || '';
89
89
 
90
90
  if ((value === null || value === void 0 ? void 0 : value.type) === _constants.urlTypeMap.ANCHOR) {
91
91
  var selectedAnchorIndex = _mobx.store.MPageData.findIndex(function (m) {
@@ -334,7 +334,7 @@ var createAliVideo = function createAliVideo(domId, opts) {
334
334
  rePlay: false,
335
335
  playsinline: true,
336
336
  preload: true,
337
- controlBarVisibility: 'hover',
337
+ controlBarVisibility: opts.controlBarHide ? 'never' : 'hover',
338
338
  useH5Prism: true,
339
339
  skinLayout: skinLayout
340
340
  }, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", [{
@@ -128,14 +128,9 @@ function (_super) {
128
128
  }
129
129
  }, tab.groupName.open && (tabIndex === index ? /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
130
130
  data: tab.hover.groupName,
131
- onTextInput: function onTextInput(text) {
132
- tab.groupName.text = text;
133
- }
131
+ iconHeight: 46
134
132
  }) : /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
135
- data: tab.groupName,
136
- onTextInput: function onTextInput(text) {
137
- tab.hover.groupName.text = text;
138
- }
133
+ data: tab.groupName
139
134
  })));
140
135
  })), /*#__PURE__*/_react["default"].createElement("div", {
141
136
  className: "tab-content"
@@ -8,7 +8,7 @@
8
8
  display: flex;
9
9
  align-items: center;
10
10
  justify-content: center;
11
- height: 26px;
11
+ height: 46px;
12
12
  overflow: auto;
13
13
  position: relative;
14
14
  margin-top: 12px;
@@ -123,7 +123,8 @@ function (_super) {
123
123
  },
124
124
  opts: __assign(__assign({}, data.video), {
125
125
  cover: (0, _coreUtil.getVideoCover)(data),
126
- source: data.video.sourceUrl
126
+ source: data.video.sourceUrl,
127
+ controlBarHide: true
127
128
  }),
128
129
  play: (_a = this.videoRefMap[data.id]) === null || _a === void 0 ? void 0 : _a.playing,
129
130
  videoId: data.id