component-shipinlv 2.2.7 → 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.
@@ -1,4 +1,6 @@
1
- import React from "react";
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import React, { useEffect, useState } from "react";
2
4
  import "./hour-enabled.less";
3
5
  import { Col, Row } from "antd";
4
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -8,18 +10,26 @@ var VideoPublishCreateTaskHourSelect = function VideoPublishCreateTaskHourSelect
8
10
  dayTimeHourList = _ref.dayTimeHourList,
9
11
  _ref$onDayTimeHourLis = _ref.onDayTimeHourList,
10
12
  onDayTimeHourList = _ref$onDayTimeHourLis === void 0 ? function () {} : _ref$onDayTimeHourLis;
13
+ var _useState = useState(_toConsumableArray(dayTimeHourList)),
14
+ _useState2 = _slicedToArray(_useState, 2),
15
+ hourList = _useState2[0],
16
+ setHourList = _useState2[1];
11
17
  var onHour = function onHour(hour) {
12
18
  if (disabled) {
13
19
  return;
14
20
  }
15
- var index = dayTimeHourList.indexOf(hour);
21
+ var index = hourList.indexOf(hour);
16
22
  if (index > -1) {
17
- dayTimeHourList.splice(index, 1);
23
+ hourList.splice(index, 1);
18
24
  } else {
19
- dayTimeHourList.push(hour);
25
+ hourList.push(hour);
20
26
  }
21
- onDayTimeHourList(dayTimeHourList);
27
+ onDayTimeHourList(hourList);
22
28
  };
29
+ useEffect(function () {
30
+ setHourList(_toConsumableArray(dayTimeHourList));
31
+ onDayTimeHourList(dayTimeHourList);
32
+ }, [dayTimeHourList]);
23
33
  return /*#__PURE__*/_jsx("div", {
24
34
  className: "videoPublishCreatTaskHourSelect",
25
35
  children: /*#__PURE__*/_jsx(Row, {
@@ -28,7 +38,7 @@ var VideoPublishCreateTaskHourSelect = function VideoPublishCreateTaskHourSelect
28
38
  return /*#__PURE__*/_jsx(Col, {
29
39
  span: 3,
30
40
  children: /*#__PURE__*/_jsxs("div", {
31
- className: "itemsHour ".concat(disabled ? 'disabled' : '', " ").concat(dayTimeHourList !== null && dayTimeHourList !== void 0 && dayTimeHourList.includes(hour) ? 'active' : ''),
41
+ className: "itemsHour ".concat(disabled ? 'disabled' : '', " ").concat(hourList !== null && hourList !== void 0 && hourList.includes(hour) ? 'active' : ''),
32
42
  onClick: function onClick() {
33
43
  return onHour(hour);
34
44
  },
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import React, { useEffect, useState } from 'react';
6
- import { Button, ConfigProvider, Divider, Form, InputNumber, Switch } from 'antd';
6
+ import { Button, ConfigProvider, Divider, Form, InputNumber, Radio, Switch } from 'antd';
7
7
  import "./setting.less";
8
8
  import LayoutContent from "../UI/LayoutContent";
9
9
  import { useRequest } from "@umijs/hooks";
@@ -40,6 +40,8 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
40
40
  // videoRootFolder: '',
41
41
  publishMaxDay: 2,
42
42
  enabled: true,
43
+ publishCoverFrom: '',
44
+ whoCanView: '0',
43
45
  isPublishFinishDelVideo: true
44
46
  // ...Tool.store.get('publishMake-setting'),
45
47
  }),
@@ -139,7 +141,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
139
141
  setEnabled(e);
140
142
  }
141
143
  })
142
- }), /*#__PURE__*/_jsx(Form.Item, {
144
+ }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Form.Item, {
143
145
  label: "\u6BCF\u5929\u53D1\u5E03\u65F6\u95F4\u6BB5"
144
146
  // name="dayTimeHourArea"
145
147
  ,
@@ -178,7 +180,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
178
180
  max: 100,
179
181
  disabled: !enabled,
180
182
  addonBefore: "\u6BCF\u5929\u6700\u591A",
181
- addonAfter: "\u4E2A",
183
+ addonAfter: "\u4E2A\u89C6\u9891",
182
184
  onChange: function onChange(e) {
183
185
  setCanPost(true);
184
186
  }
@@ -197,6 +199,33 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
197
199
  setCanPost(true);
198
200
  }
199
201
  })
202
+ }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Form.Item, {
203
+ label: "\u5C01\u9762\u6765\u6E90",
204
+ name: "publishCoverFrom",
205
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
206
+ children: [/*#__PURE__*/_jsx(Radio, {
207
+ value: "",
208
+ children: "\u7CFB\u7EDF\u667A\u80FD\u63A8\u8350"
209
+ }), /*#__PURE__*/_jsx(Radio, {
210
+ value: "video-first-frame",
211
+ children: "\u89C6\u9891\u7B2C\u4E00\u5E27"
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
+ })
200
229
  }), /*#__PURE__*/_jsx(Form.Item, {
201
230
  label: "\u53D1\u5E03\u5B8C\u6210\u540E",
202
231
  name: "isPublishFinishDelVideo",
@@ -25,6 +25,8 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
25
25
  timeAreaRandOffsetPercent: 15,
26
26
  publishMaxDay: 2,
27
27
  enabled: true,
28
+ publishCoverFrom: '',
29
+ whoCanView: '0',
28
30
  isPublishFinishDelVideo: true
29
31
  });
30
32
  _defineProperty(this, "env", 'prod');
@@ -423,7 +425,6 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
423
425
  "normalVideoRateType": "day",
424
426
  "normalDayMaxCount": _this2.modeSetting.dayPublishMaxAmount,
425
427
  "normalVideoKindRateType": "",
426
- "whoCanView": "0",
427
428
  "noTopicIsUserRecommendTopic": true,
428
429
  startTime: Math.floor(startTime * 0.001),
429
430
  "publishOrder": "",
@@ -432,6 +433,8 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
432
433
  "salesDayMaxCount": _this2.modeSetting.dayPublishMaxAmount,
433
434
  "salesVideoKindRateType": "",
434
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',
435
438
  "videoList": [{
436
439
  "taskId": 0,
437
440
  "productType": "active-account-mode",
@@ -440,7 +443,9 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
440
443
  "introduction": introduction,
441
444
  "videoKindTag": "",
442
445
  "kindTagValue": "",
443
- "goodsTitle": ""
446
+ "goodsTitle": "",
447
+ publishCoverFrom: _this2.modeSetting.publishCoverFrom,
448
+ whoCanView: _this2.modeSetting.whoCanView || '0'
444
449
  }]
445
450
  }, {
446
451
  env: _this2.env
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  productType: string;
4
+ apiUrl?: string;
4
5
  clientUniqueKeyList: string[];
5
6
  loginTypeList: Global.AuthClientLoginType[];
6
7
  domain?: string;
@@ -26,6 +26,7 @@ var FromWhere = 'web';
26
26
  // 逐渐弃用 AuthClient ,使用 本函数
27
27
  var Auth = function Auth(_ref) {
28
28
  var productType = _ref.productType,
29
+ apiUrl = _ref.apiUrl,
29
30
  clientUniqueKeyList = _ref.clientUniqueKeyList,
30
31
  loginTypeList = _ref.loginTypeList,
31
32
  env = _ref.env,
@@ -265,7 +266,7 @@ var Auth = function Auth(_ref) {
265
266
  onChange: function onChange(keyName) {
266
267
  onTabChange(keyName);
267
268
  },
268
- children: [/*#__PURE__*/_jsx(Tabs.TabPane, {
269
+ children: [!((loginTypeList === null || loginTypeList === void 0 ? void 0 : loginTypeList.length) > 0 && !loginTypeList.includes('wechat')) && /*#__PURE__*/_jsx(Tabs.TabPane, {
269
270
  tab: /*#__PURE__*/_jsxs(_Fragment, {
270
271
  children: [/*#__PURE__*/_jsx(WechatOutlined, {}), " \u5FAE\u4FE1"]
271
272
  }),
@@ -323,6 +324,7 @@ var Auth = function Auth(_ref) {
323
324
  disabled: !loginTypeList.includes('account-login'),
324
325
  children: /*#__PURE__*/_jsx(AuthLoginReg, {
325
326
  env: env,
327
+ apiUrl: apiUrl,
326
328
  productType: productType,
327
329
  clientUniqueKeyList: clientUniqueKeyList,
328
330
  accountRegDisabled: !loginTypeList.includes('account-reg'),
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
4
  productType: string;
5
+ apiUrl?: string;
5
6
  clientUniqueKeyList: string[];
6
7
  activeKeyDefault?: 'login' | 'reg' | string;
7
8
  accountRegDisabled?: boolean;
@@ -10,6 +10,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  var AuthLoginReg = function AuthLoginReg(_ref) {
11
11
  var env = _ref.env,
12
12
  productType = _ref.productType,
13
+ apiUrl = _ref.apiUrl,
13
14
  clientUniqueKeyList = _ref.clientUniqueKeyList,
14
15
  _ref$activeKeyDefault = _ref.activeKeyDefault,
15
16
  activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
@@ -47,6 +48,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
47
48
  tab: "\u767B\u5F55",
48
49
  children: /*#__PURE__*/_jsx(AuthLogin, {
49
50
  env: env,
51
+ apiUrl: apiUrl,
50
52
  productType: productType,
51
53
  clientUniqueKeyList: clientUniqueKeyList,
52
54
  onSuccess: function onSuccess() {
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
+ apiUrl?: string;
4
5
  productType: string;
5
6
  clientUniqueKeyList: string[];
6
7
  onSuccess: () => void;
@@ -45,6 +45,7 @@ var tailFormItemLayout = {
45
45
  };
46
46
  var AuthReg = function AuthReg(_ref) {
47
47
  var env = _ref.env,
48
+ apiUrl = _ref.apiUrl,
48
49
  productType = _ref.productType,
49
50
  clientUniqueKeyList = _ref.clientUniqueKeyList,
50
51
  _ref$onSuccess = _ref.onSuccess,
@@ -66,7 +67,8 @@ var AuthReg = function AuthReg(_ref) {
66
67
  unbind: unbind,
67
68
  inviteUserId: Tool.getInviteUserId()
68
69
  }), {
69
- env: env
70
+ env: env,
71
+ apiUrl: apiUrl
70
72
  });
71
73
  }, {
72
74
  manual: true,
@@ -322,7 +322,9 @@ var LoginQr = function LoginQr(_ref) {
322
322
  children: [/*#__PURE__*/_jsx(UserOutlined, {}), "\u8D26\u6237"]
323
323
  }),
324
324
  disabled: accountDisabled,
325
- children: /*#__PURE__*/_jsx(AuthLoginReg, {
325
+ children: /*#__PURE__*/_jsx(AuthLoginReg
326
+ // apiUrl={ apiUrl }
327
+ , {
326
328
  productType: productType,
327
329
  clientUniqueKeyList: clientUniqueKeyList,
328
330
  accountRegDisabled: accountRegDisabled,
@@ -6,6 +6,9 @@ interface Props {
6
6
  currentAccountDetail: VideoPublishVideoAccount.List;
7
7
  onMenu: (key: string) => void;
8
8
  disabledDel?: boolean;
9
+ disabledAdd?: boolean;
10
+ disabledAddProxy?: boolean;
11
+ addonButton?: React.ReactNode;
9
12
  onListData: (list: VideoPublishVideoAccount.List[]) => void;
10
13
  onCurrent: (detail: VideoPublishVideoAccount.List) => void;
11
14
  }
@@ -36,6 +36,9 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
36
36
  onListData = _ref$onListData === void 0 ? function () {} : _ref$onListData,
37
37
  currentAccountDetail = _ref.currentAccountDetail,
38
38
  disabledDel = _ref.disabledDel,
39
+ disabledAddProxy = _ref.disabledAddProxy,
40
+ addonButton = _ref.addonButton,
41
+ disabledAdd = _ref.disabledAdd,
39
42
  _ref$onCurrent = _ref.onCurrent,
40
43
  onCurrent = _ref$onCurrent === void 0 ? function () {} : _ref$onCurrent;
41
44
  var _useState = useState(getLocalUserInfo()),
@@ -305,10 +308,13 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
305
308
  });
306
309
  }, []);
307
310
  var addButton = function addButton() {
311
+ if (disabledAdd) {
312
+ return '';
313
+ }
308
314
  return /*#__PURE__*/_jsx("div", {
309
315
  className: "addButton",
310
316
  children: /*#__PURE__*/_jsxs(Space, {
311
- children: [/*#__PURE__*/_jsx(Tooltip, {
317
+ children: [!disabledAddProxy && /*#__PURE__*/_jsx(Tooltip, {
312
318
  title: "\u8BBE\u7F6E\u4EE3\u7406",
313
319
  children: /*#__PURE__*/_jsx(Button, {
314
320
  type: "primary",
@@ -438,7 +444,9 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
438
444
  children: letter
439
445
  }, letter));
440
446
  } else {
441
- shopName.push(letter);
447
+ shopName.push( /*#__PURE__*/_jsx("span", {
448
+ children: letter
449
+ }, letter));
442
450
  }
443
451
  });
444
452
  // 未搜索到
@@ -446,18 +454,21 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
446
454
  return null;
447
455
  }
448
456
  }
449
- return /*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
450
- id: item.id,
451
- className: currentId == item.id ? "active" : '',
452
- index: index,
453
- accountInfo: _objectSpread({}, item),
454
- disabledDel: disabledDel,
455
- onDel: function onDel(id) {
456
- return _onDel(id);
457
- },
458
- onClick: function onClick() {
459
- return onCurrentId(item.id);
460
- }
457
+ return /*#__PURE__*/_jsxs("div", {
458
+ className: "accountManageListItems",
459
+ children: [/*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
460
+ id: item.id,
461
+ className: currentId == item.id ? "active" : '',
462
+ index: index,
463
+ accountInfo: _objectSpread({}, item),
464
+ disabledDel: disabledDel,
465
+ onDel: function onDel(id) {
466
+ return _onDel(id);
467
+ },
468
+ onClick: function onClick() {
469
+ return onCurrentId(item.id);
470
+ }
471
+ }, item.id), addonButton]
461
472
  }, item.id);
462
473
  })
463
474
  }), listData.length == 0 && /*#__PURE__*/_jsxs("div", {
@@ -467,7 +478,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
467
478
  image: Empty.PRESENTED_IMAGE_SIMPLE
468
479
  }), addButton()]
469
480
  })]
470
- }), /*#__PURE__*/_jsxs("div", {
481
+ }), !disabledAdd && /*#__PURE__*/_jsxs("div", {
471
482
  className: "submits",
472
483
  children: [/*#__PURE__*/_jsx("div", {
473
484
  className: "amount",
@@ -26,6 +26,11 @@
26
26
  height: 100%; // calc(100vh - 10px);
27
27
  overflow-y: auto;
28
28
  padding: 10px 0;
29
+ .accountManageListItems{
30
+ position: relative;
31
+ //padding: 0 0 6px 0;
32
+ border-bottom: 1px solid #F0F0F0;
33
+ }
29
34
  &::-webkit-scrollbar {
30
35
  width: 2px; /* 滚动条的宽度 */
31
36
  }
@@ -204,7 +204,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
204
204
  children: /*#__PURE__*/_jsx(InputNumber, {
205
205
  precision: 0,
206
206
  min: 0,
207
- max: 100,
207
+ max: 10000,
208
208
  addonBefore: /*#__PURE__*/_jsxs(Select, {
209
209
  className: "rateSelect",
210
210
  value: createBaseData.normalVideoRateType,
@@ -228,7 +228,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
228
228
  children: /*#__PURE__*/_jsx(InputNumber, {
229
229
  precision: 0,
230
230
  min: 1,
231
- max: 500,
231
+ max: 10000,
232
232
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
233
233
  addonAfter: "\u6761\u89C6\u9891"
234
234
  })
@@ -255,7 +255,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
255
255
  children: /*#__PURE__*/_jsx(InputNumber, {
256
256
  precision: 0,
257
257
  min: 1,
258
- max: 200,
258
+ max: 10000,
259
259
  addonBefore: /*#__PURE__*/_jsxs(Select, {
260
260
  className: "rateSelect",
261
261
  value: createBaseData.salesVideoRateType,
@@ -279,7 +279,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
279
279
  children: /*#__PURE__*/_jsx(InputNumber, {
280
280
  precision: 0,
281
281
  min: 1,
282
- max: 200,
282
+ max: 10000,
283
283
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
284
284
  addonAfter: "\u6761\u89C6\u9891"
285
285
  })
@@ -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));
package/dist/index.d.ts CHANGED
@@ -26,4 +26,5 @@ export { default as soundInfo } from './base/soundInfo';
26
26
  export { default as fileListContent } from './base/fileListContent';
27
27
  export { default as fileList } from './base/fileList';
28
28
  export { default as VideoStudy } from './video-study';
29
+ export { default as HomePageAccountList } from './VideoPublish/account-manage/list';
29
30
  export { default as getWorkServerUploadToken } from './lib/getWorkServerUploadToken';
package/dist/index.js CHANGED
@@ -30,4 +30,5 @@ export { default as soundInfo } from "./base/soundInfo";
30
30
  export { default as fileListContent } from "./base/fileListContent";
31
31
  export { default as fileList } from "./base/fileList";
32
32
  export { default as VideoStudy } from "./video-study";
33
+ export { default as HomePageAccountList } from "./VideoPublish/account-manage/list";
33
34
  export { default as getWorkServerUploadToken } from "./lib/getWorkServerUploadToken";
@@ -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: "success" | "error" | "warning" | "info", 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;
@@ -26,7 +26,7 @@ var requestApi = /*#__PURE__*/function () {
26
26
  api = _args.length > 0 && _args[0] !== undefined ? _args[0] : '';
27
27
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
28
28
  // 要请求的 url
29
- url = getApiUrl(api, options === null || options === void 0 ? void 0 : options.env);
29
+ url = options !== null && options !== void 0 && options.apiUrl ? (options === null || options === void 0 ? void 0 : options.apiUrl) + (api === null || api === void 0 ? void 0 : api.toLocaleLowerCase()) : getApiUrl(api, options === null || options === void 0 ? void 0 : options.env);
30
30
  console.log('makeAjax int 20 url:', url, options);
31
31
 
32
32
  // const params = options.method === 'GET' ? options.data : {};
@@ -72,6 +72,9 @@ var requestApi = /*#__PURE__*/function () {
72
72
  error.name = result.code;
73
73
  error.stack = result.data;
74
74
  if (['staff-not-login', 'not-login'].includes((result === null || result === void 0 ? void 0 : result.code) || '')) {
75
+ if (!(options !== null && options !== void 0 && options.silent)) {
76
+ Tool.toastError(result.message);
77
+ }
75
78
  // 未登录,跳走;
76
79
  goAuth(result.authType);
77
80
  reject(error);
@@ -8,6 +8,7 @@ declare namespace ServicesApi {
8
8
  interface RequestOptions {
9
9
  silent?: boolean;
10
10
  timeout?: number;
11
+ apiUrl?: string;
11
12
  [key: string]: any;
12
13
  }
13
14
  }
@@ -5,6 +5,8 @@ declare namespace ActiveAccountModeSetting {
5
5
  timeAreaRandOffsetPercent: number;
6
6
  publishMaxDay: number;
7
7
  enabled: boolean;
8
+ publishCoverFrom: VideoPublish.PublishCoverFrom;
9
+ whoCanView: VideoPublish.WhoCanView;
8
10
  isPublishFinishDelVideo: boolean;
9
11
  }
10
12
  interface SettingForm {
@@ -13,6 +15,8 @@ declare namespace ActiveAccountModeSetting {
13
15
  timeAreaRandOffsetPercent: number;
14
16
  publishMaxDay: number;
15
17
  enabled: boolean;
18
+ publishCoverFrom: VideoPublish.PublishCoverFrom;
19
+ whoCanView: VideoPublish.WhoCanView;
16
20
  isPublishFinishDelVideo: boolean;
17
21
  }
18
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.7",
3
+ "version": "2.2.9",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",