component-shipinlv 2.2.8 → 2.2.10
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/dist/ActiveAccountMode/setting.js +18 -2
- package/dist/ActiveAccountMode/task/index.js +6 -2
- package/dist/Auth/index.d.ts +1 -0
- package/dist/Auth/index.js +3 -0
- package/dist/AuthClient/login-reg.d.ts +1 -0
- package/dist/AuthClient/login-reg.js +3 -0
- package/dist/AuthClient/login.d.ts +1 -0
- package/dist/AuthClient/login.js +2 -0
- package/dist/AuthClient/reg.d.ts +1 -0
- package/dist/AuthClient/reg.js +2 -0
- package/dist/VideoPublish/create-task/index.js +10 -3
- package/dist/VideoPublish/create-task/task-list.js +6 -2
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/types/AutoMakeTaskSetting.d.ts +4 -2
- package/dist/types/VideoPublish.d.ts +8 -0
- package/dist/typings/User.d.ts +1 -0
- package/package.json +1 -1
@@ -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
|
package/dist/Auth/index.d.ts
CHANGED
package/dist/Auth/index.js
CHANGED
@@ -30,6 +30,7 @@ var Auth = function Auth(_ref) {
|
|
30
30
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
31
31
|
loginTypeList = _ref.loginTypeList,
|
32
32
|
env = _ref.env,
|
33
|
+
roleType = _ref.roleType,
|
33
34
|
_ref$domain = _ref.domain,
|
34
35
|
domain = _ref$domain === void 0 ? document.location.hostname : _ref$domain,
|
35
36
|
_ref$onLoginSuccess = _ref.onLoginSuccess,
|
@@ -133,6 +134,7 @@ var Auth = function Auth(_ref) {
|
|
133
134
|
}));
|
134
135
|
onLoginSuccess();
|
135
136
|
Tool.event.run('login-success');
|
137
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"));
|
136
138
|
Tool.toast('登录成功');
|
137
139
|
};
|
138
140
|
var _useRequest = useRequest(function () {
|
@@ -325,6 +327,7 @@ var Auth = function Auth(_ref) {
|
|
325
327
|
children: /*#__PURE__*/_jsx(AuthLoginReg, {
|
326
328
|
env: env,
|
327
329
|
apiUrl: apiUrl,
|
330
|
+
roleType: roleType,
|
328
331
|
productType: productType,
|
329
332
|
clientUniqueKeyList: clientUniqueKeyList,
|
330
333
|
accountRegDisabled: !loginTypeList.includes('account-reg'),
|
@@ -11,6 +11,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
11
11
|
var env = _ref.env,
|
12
12
|
productType = _ref.productType,
|
13
13
|
apiUrl = _ref.apiUrl,
|
14
|
+
roleType = _ref.roleType,
|
14
15
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
15
16
|
_ref$activeKeyDefault = _ref.activeKeyDefault,
|
16
17
|
activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
|
@@ -47,6 +48,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
47
48
|
children: [/*#__PURE__*/_jsx(Tabs.TabPane, {
|
48
49
|
tab: "\u767B\u5F55",
|
49
50
|
children: /*#__PURE__*/_jsx(AuthLogin, {
|
51
|
+
roleType: roleType,
|
50
52
|
env: env,
|
51
53
|
apiUrl: apiUrl,
|
52
54
|
productType: productType,
|
@@ -59,6 +61,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
59
61
|
tab: "\u6CE8\u518C",
|
60
62
|
children: /*#__PURE__*/_jsx(Reg, {
|
61
63
|
env: env,
|
64
|
+
roleType: roleType,
|
62
65
|
productType: productType,
|
63
66
|
clientUniqueKeyList: clientUniqueKeyList,
|
64
67
|
onSuccess: function onSuccess() {
|
package/dist/AuthClient/login.js
CHANGED
@@ -46,6 +46,7 @@ var tailFormItemLayout = {
|
|
46
46
|
var AuthReg = function AuthReg(_ref) {
|
47
47
|
var env = _ref.env,
|
48
48
|
apiUrl = _ref.apiUrl,
|
49
|
+
roleType = _ref.roleType,
|
49
50
|
productType = _ref.productType,
|
50
51
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
51
52
|
_ref$onSuccess = _ref.onSuccess,
|
@@ -103,6 +104,7 @@ var AuthReg = function AuthReg(_ref) {
|
|
103
104
|
}));
|
104
105
|
Tool.toast('登录成功');
|
105
106
|
Tool.event.run('user-info');
|
107
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"));
|
106
108
|
onSuccess();
|
107
109
|
};
|
108
110
|
var onFinish = /*#__PURE__*/function () {
|
package/dist/AuthClient/reg.d.ts
CHANGED
package/dist/AuthClient/reg.js
CHANGED
@@ -42,6 +42,7 @@ var tailFormItemLayout = {
|
|
42
42
|
};
|
43
43
|
var Reg = function Reg(_ref) {
|
44
44
|
var env = _ref.env,
|
45
|
+
roleType = _ref.roleType,
|
45
46
|
productType = _ref.productType,
|
46
47
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
47
48
|
_ref$onSuccess = _ref.onSuccess,
|
@@ -73,6 +74,7 @@ var Reg = function Reg(_ref) {
|
|
73
74
|
}));
|
74
75
|
Tool.toast('登录成功');
|
75
76
|
Tool.event.run('user-info');
|
77
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"));
|
76
78
|
onSuccess();
|
77
79
|
};
|
78
80
|
var onFinish = /*#__PURE__*/function () {
|
@@ -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/lib/Tool.d.ts
CHANGED
@@ -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: "
|
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:
|
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:
|
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/dist/typings/User.d.ts
CHANGED