component-shipinlv 2.2.8 → 2.2.9

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.
@@ -41,6 +41,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
41
41
  publishMaxDay: 2,
42
42
  enabled: true,
43
43
  publishCoverFrom: '',
44
+ whoCanView: '0',
44
45
  isPublishFinishDelVideo: true
45
46
  // ...Tool.store.get('publishMake-setting'),
46
47
  }),
@@ -140,7 +141,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
140
141
  setEnabled(e);
141
142
  }
142
143
  })
143
- }), /*#__PURE__*/_jsx(Form.Item, {
144
+ }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Form.Item, {
144
145
  label: "\u6BCF\u5929\u53D1\u5E03\u65F6\u95F4\u6BB5"
145
146
  // name="dayTimeHourArea"
146
147
  ,
@@ -198,7 +199,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
198
199
  setCanPost(true);
199
200
  }
200
201
  })
201
- }), /*#__PURE__*/_jsx(Form.Item, {
202
+ }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Form.Item, {
202
203
  label: "\u5C01\u9762\u6765\u6E90",
203
204
  name: "publishCoverFrom",
204
205
  children: /*#__PURE__*/_jsxs(Radio.Group, {
@@ -210,6 +211,21 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
210
211
  children: "\u89C6\u9891\u7B2C\u4E00\u5E27"
211
212
  })]
212
213
  })
214
+ }), /*#__PURE__*/_jsx(Form.Item, {
215
+ label: "\u8C01\u53EF\u4EE5\u770B",
216
+ name: "whoCanView",
217
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
218
+ children: [/*#__PURE__*/_jsx(Radio, {
219
+ value: "0",
220
+ children: "\u516C\u5F00"
221
+ }), /*#__PURE__*/_jsx(Radio, {
222
+ value: "2",
223
+ children: "\u597D\u53CB\u53EF\u89C1"
224
+ }), /*#__PURE__*/_jsx(Radio, {
225
+ value: "1",
226
+ children: "\u4EC5\u81EA\u5DF1\u53EF\u89C1"
227
+ })]
228
+ })
213
229
  }), /*#__PURE__*/_jsx(Form.Item, {
214
230
  label: "\u53D1\u5E03\u5B8C\u6210\u540E",
215
231
  name: "isPublishFinishDelVideo",
@@ -26,6 +26,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
26
26
  publishMaxDay: 2,
27
27
  enabled: true,
28
28
  publishCoverFrom: '',
29
+ whoCanView: '0',
29
30
  isPublishFinishDelVideo: true
30
31
  });
31
32
  _defineProperty(this, "env", 'prod');
@@ -424,7 +425,6 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
424
425
  "normalVideoRateType": "day",
425
426
  "normalDayMaxCount": _this2.modeSetting.dayPublishMaxAmount,
426
427
  "normalVideoKindRateType": "",
427
- "whoCanView": "0",
428
428
  "noTopicIsUserRecommendTopic": true,
429
429
  startTime: Math.floor(startTime * 0.001),
430
430
  "publishOrder": "",
@@ -433,6 +433,8 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
433
433
  "salesDayMaxCount": _this2.modeSetting.dayPublishMaxAmount,
434
434
  "salesVideoKindRateType": "",
435
435
  "hourEnabled": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
436
+ publishCoverFrom: _this2.modeSetting.publishCoverFrom,
437
+ whoCanView: _this2.modeSetting.whoCanView || '0',
436
438
  "videoList": [{
437
439
  "taskId": 0,
438
440
  "productType": "active-account-mode",
@@ -441,7 +443,9 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
441
443
  "introduction": introduction,
442
444
  "videoKindTag": "",
443
445
  "kindTagValue": "",
444
- "goodsTitle": ""
446
+ "goodsTitle": "",
447
+ publishCoverFrom: _this2.modeSetting.publishCoverFrom,
448
+ whoCanView: _this2.modeSetting.whoCanView || '0'
445
449
  }]
446
450
  }, {
447
451
  env: _this2.env
@@ -39,6 +39,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
39
39
  normalDayMaxCount: 1,
40
40
  normalVideoKindRateType: '',
41
41
  whoCanView: '0',
42
+ publishCoverFrom: '',
42
43
  noTopicIsUserRecommendTopic: true,
43
44
  startTime: null,
44
45
  publishOrder: '',
@@ -129,7 +130,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
129
130
  videoKindTag: '',
130
131
  // shopping | location | minapp
131
132
  kindTagValue: '',
132
- goodsTitle: ''
133
+ goodsTitle: '',
134
+ publishCoverFrom: '',
135
+ whoCanView: '0'
133
136
  });
134
137
  });
135
138
  setLocalSelectList(_toConsumableArray(localSelectList));
@@ -186,7 +189,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
186
189
  videoKindTag: item.videoKindTag,
187
190
  // shopping | location | minapp
188
191
  kindTagValue: item.kindTagValue,
189
- goodsTitle: item.goodsTitle
192
+ goodsTitle: item.goodsTitle,
193
+ publishCoverFrom: item.publishCoverFrom,
194
+ whoCanView: item.whoCanView
190
195
  });
191
196
  });
192
197
  } else {
@@ -201,7 +206,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
201
206
  videoKindTag: item.videoKindTag,
202
207
  // shopping | location | minapp
203
208
  kindTagValue: item.kindTagValue,
204
- goodsTitle: item.goodsTitle
209
+ goodsTitle: item.goodsTitle,
210
+ publishCoverFrom: item.publishCoverFrom,
211
+ whoCanView: item.whoCanView
205
212
  });
206
213
  });
207
214
  }
@@ -197,7 +197,9 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
197
197
  videoKindTag: items.videoKindTag || '',
198
198
  kindTagValue: items.kindTagValue || '',
199
199
  introduction: items.introduction || '',
200
- goodsTitle: items.goodsTitle || ''
200
+ goodsTitle: items.goodsTitle || '',
201
+ publishCoverFrom: items.publishCoverFrom || '',
202
+ whoCanView: items.whoCanView || '0'
201
203
  };
202
204
  } else {
203
205
  delete selectDict[items.id];
@@ -219,7 +221,9 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
219
221
  videoKindTag: items.videoKindTag || '',
220
222
  kindTagValue: items.kindTagValue || '',
221
223
  introduction: items.introduction || '',
222
- goodsTitle: items.goodsTitle || ''
224
+ goodsTitle: items.goodsTitle || '',
225
+ publishCoverFrom: items.publishCoverFrom || '',
226
+ whoCanView: items.whoCanView || '0'
223
227
  };
224
228
  });
225
229
  setSelectDict(_objectSpread({}, selectDict));
@@ -162,7 +162,7 @@ declare const Tool: {
162
162
  getTitleByPath(path: string): string;
163
163
  getDirByPath(path: string): string;
164
164
  h5Pay(query: Pay.H5PayQuery): void;
165
- notification(type: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
165
+ notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
166
166
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
167
167
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
168
168
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
@@ -5,7 +5,8 @@ declare namespace ActiveAccountModeSetting {
5
5
  timeAreaRandOffsetPercent: number;
6
6
  publishMaxDay: number;
7
7
  enabled: boolean;
8
- publishCoverFrom: string;
8
+ publishCoverFrom: VideoPublish.PublishCoverFrom;
9
+ whoCanView: VideoPublish.WhoCanView;
9
10
  isPublishFinishDelVideo: boolean;
10
11
  }
11
12
  interface SettingForm {
@@ -14,7 +15,8 @@ declare namespace ActiveAccountModeSetting {
14
15
  timeAreaRandOffsetPercent: number;
15
16
  publishMaxDay: number;
16
17
  enabled: boolean;
17
- publishCoverFrom: string;
18
+ publishCoverFrom: VideoPublish.PublishCoverFrom;
19
+ whoCanView: VideoPublish.WhoCanView;
18
20
  isPublishFinishDelVideo: boolean;
19
21
  }
20
22
  }
@@ -7,6 +7,7 @@ declare namespace VideoPublish {
7
7
  type VideoRateType = 'hour' | 'day';
8
8
  type WhoCanView = '0' | '1' | '2';
9
9
  type PublishOrder = '' | 'loop-account';
10
+ type PublishCoverFrom = '' | 'video-first-frame';
10
11
  interface CreateTaskList {
11
12
  id: number;
12
13
  title: string;
@@ -19,6 +20,8 @@ declare namespace VideoPublish {
19
20
  videoKindTag: '' | VideoKindTag;
20
21
  kindTagValue: string;
21
22
  goodsTitle: string;
23
+ publishCoverFrom: PublishCoverFrom;
24
+ whoCanView: WhoCanView;
22
25
  finishUrl?: string;
23
26
  videoFinishUrl?: string;
24
27
  }
@@ -55,6 +58,8 @@ declare namespace VideoPublish {
55
58
  videoKindTag: '' | VideoKindTag;
56
59
  kindTagValue: string;
57
60
  goodsTitle: string;
61
+ publishCoverFrom: PublishCoverFrom;
62
+ whoCanView: WhoCanView;
58
63
  }
59
64
  interface VideoAccountResult {
60
65
  list: VideoAccountList[];
@@ -113,6 +118,8 @@ declare namespace VideoPublish {
113
118
  videoKindTag: '' | VideoKindTag;
114
119
  kindTagValue: string;
115
120
  goodsTitle: string;
121
+ publishCoverFrom: PublishCoverFrom;
122
+ whoCanView: WhoCanView;
116
123
  }
117
124
  interface TaskCreate extends TaskCreateBaseData {
118
125
  videoFrom: 'task' | 'local';
@@ -130,6 +137,7 @@ declare namespace VideoPublish {
130
137
  salesVideoKindRateType: VideoKindRateType;
131
138
  accountList: string[];
132
139
  whoCanView: WhoCanView;
140
+ publishCoverFrom: PublishCoverFrom;
133
141
  noTopicIsUserRecommendTopic: boolean;
134
142
  startTime: number | null;
135
143
  publishOrder: PublishOrder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",