component-shipinlv 1.0.13 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,9 +30,12 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
30
30
  normalVideoRate: 1,
31
31
  normalVideoRateType: 'hour',
32
32
  normalDayMaxCount: 1,
33
+ normalVideoKindRateType: '',
34
+ startTime: null,
33
35
  salesVideoRate: 2,
34
36
  salesVideoRateType: 'hour',
35
37
  salesDayMaxCount: 2,
38
+ salesVideoKindRateType: '',
36
39
  videoList: []
37
40
  }),
38
41
  _useState2 = _slicedToArray(_useState, 2),
@@ -195,6 +198,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
195
198
  };
196
199
  }();
197
200
  var onFinish = function onFinish(values) {
201
+ var _values$startTime;
198
202
  var videoList = [];
199
203
  if (formData.videoFrom === 'local') {
200
204
  localSelectList.forEach(function (item) {
@@ -226,6 +230,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
226
230
  });
227
231
  }
228
232
  var data = _objectSpread(_objectSpread(_objectSpread({}, formData), values), {}, {
233
+ startTime: values.startTime ? parseInt((((_values$startTime = values.startTime) === null || _values$startTime === void 0 ? void 0 : _values$startTime.valueOf()) * 0.001).toFixed(0)) : 0,
229
234
  videoList: videoList
230
235
  });
231
236
  if (videoList.length === 0) {
@@ -379,7 +384,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
379
384
  }),
380
385
  addonAfter: "\u6761\u89C6\u9891"
381
386
  })
382
- }), /*#__PURE__*/_jsx(Form.Item, {
387
+ }), formData.normalVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
383
388
  label: "\u6570\u91CF\u9650\u5236",
384
389
  name: "normalDayMaxCount",
385
390
  children: /*#__PURE__*/_jsx(InputNumber, {
@@ -389,6 +394,18 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
389
394
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
390
395
  addonAfter: "\u6761\u89C6\u9891"
391
396
  })
397
+ }), /*#__PURE__*/_jsx(Form.Item, {
398
+ label: "\u9891\u7387\u65B9\u5F0F",
399
+ name: "normalVideoKindRateType",
400
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
401
+ children: [/*#__PURE__*/_jsx(Radio, {
402
+ value: "",
403
+ children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
404
+ }), /*#__PURE__*/_jsx(Radio, {
405
+ value: "now",
406
+ children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
407
+ })]
408
+ })
392
409
  }), /*#__PURE__*/_jsxs(Divider, {
393
410
  orientation: "left",
394
411
  children: [/*#__PURE__*/_jsx(ShoppingOutlined, {
@@ -418,7 +435,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
418
435
  }),
419
436
  addonAfter: "\u6761\u89C6\u9891"
420
437
  })
421
- }), /*#__PURE__*/_jsx(Form.Item, {
438
+ }), formData.salesVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
422
439
  label: "\u6570\u91CF\u9650\u5236",
423
440
  name: "salesDayMaxCount",
424
441
  children: /*#__PURE__*/_jsx(InputNumber, {
@@ -428,6 +445,18 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
428
445
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
429
446
  addonAfter: "\u6761\u89C6\u9891"
430
447
  })
448
+ }), /*#__PURE__*/_jsx(Form.Item, {
449
+ label: "\u9891\u7387\u65B9\u5F0F",
450
+ name: "salesVideoKindRateType",
451
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
452
+ children: [/*#__PURE__*/_jsx(Radio, {
453
+ value: "",
454
+ children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
455
+ }), /*#__PURE__*/_jsx(Radio, {
456
+ value: "now",
457
+ children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
458
+ })]
459
+ })
431
460
  }), /*#__PURE__*/_jsx(Divider, {
432
461
  orientation: "left",
433
462
  children: "\u5176\u4ED6\u8BBE\u7F6E"
@@ -437,7 +466,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
437
466
  children: /*#__PURE__*/_jsx(DatePicker, {
438
467
  showTime: true,
439
468
  disabledDate: function disabledDate(e) {
440
- return e.valueOf() + 86400e3 < Date.now();
469
+ return e.valueOf() + 86400e3 < Date.now() || e.valueOf() > Date.now() + 86400e3 * 14;
441
470
  },
442
471
  onChange: function onChange(value, dateString) {
443
472
  console.log('Selected Time: ', value);
@@ -2,6 +2,7 @@
2
2
  declare namespace VideoPublish {
3
3
  type ProductType = 'long-video-sales';
4
4
  type VideoKindTag = 'shopping' | 'location' | 'min-app';
5
+ type VideoKindRateType = '' | 'now';
5
6
  interface CreateTaskList {
6
7
  id: number;
7
8
  title: string;
@@ -94,10 +95,13 @@ declare namespace VideoPublish {
94
95
  normalVideoRate: number;
95
96
  normalVideoRateType: 'hour' | 'day';
96
97
  normalDayMaxCount: number;
98
+ normalVideoKindRateType: VideoKindRateType;
97
99
  salesVideoRate: number;
98
100
  salesVideoRateType: 'hour' | 'day';
99
101
  salesDayMaxCount: number;
102
+ salesVideoKindRateType: VideoKindRateType;
100
103
  accountList: string[];
104
+ startTime: number | null;
101
105
  videoList: {
102
106
  taskId: number;
103
107
  productType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",