component-shipinlv 1.1.16 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ import { VideoPlatform } from "../..";
|
|
6
6
|
import HomePageAccountList from "./list";
|
7
7
|
import Time from "../../UI/Time";
|
8
8
|
import { IeOutlined } from "@ant-design/icons";
|
9
|
+
import Tool from "../../lib/Tool";
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
10
11
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
11
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -89,14 +90,17 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
89
90
|
_useState4 = _slicedToArray(_useState3, 1),
|
90
91
|
openMenuItems = _useState4[0];
|
91
92
|
var onOpen = function onOpen(key) {
|
93
|
+
var _window$getBridge;
|
92
94
|
switch (key) {
|
93
95
|
case 'creator':
|
96
|
+
var url = '';
|
94
97
|
if (accountDetail.platform === 'douyin') {
|
95
|
-
|
96
|
-
(_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 || _window$getBridge.openBrowser(accountDetail.platform, key, accountDetail.accountId);
|
98
|
+
url = 'https://creator.douyin.com/creator-micro/home';
|
97
99
|
}
|
100
|
+
(_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 || _window$getBridge.openVideoAccountBrowser(accountDetail.platform, '', accountDetail.accountId, url);
|
98
101
|
break;
|
99
102
|
}
|
103
|
+
Tool.toast('正在打开浏览器, 请稍等...', 8);
|
100
104
|
};
|
101
105
|
return /*#__PURE__*/_jsxs("div", {
|
102
106
|
className: "videoPublishAccountManageHome",
|
@@ -16,6 +16,7 @@ import { useRequest } from "@umijs/hooks";
|
|
16
16
|
import * as VideoPublishController from "../../service/api/VideoPublishController";
|
17
17
|
import fileSelect from "../../base/fileSelect";
|
18
18
|
import VideoPublishCreateTaskBase from "./base";
|
19
|
+
import dayjs from "dayjs";
|
19
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
20
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
21
22
|
var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
@@ -173,6 +174,8 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
173
174
|
if (data.startTime) {
|
174
175
|
var _values$startTime;
|
175
176
|
data.startTime = values.startTime ? parseInt((((_values$startTime = values.startTime) === null || _values$startTime === void 0 ? void 0 : _values$startTime.valueOf()) * 0.001).toFixed(0)) : 0;
|
177
|
+
} else {
|
178
|
+
data.startTime = Math.floor(Date.now() * 0.001);
|
176
179
|
}
|
177
180
|
if (videoList.length === 0) {
|
178
181
|
Tool.toastError('视频为空,请选择视频');
|
@@ -199,7 +202,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
199
202
|
labelCol: {
|
200
203
|
span: formLabelSpan
|
201
204
|
},
|
202
|
-
initialValues: _objectSpread({}, formData),
|
205
|
+
initialValues: _objectSpread(_objectSpread({}, formData), {}, {
|
206
|
+
startTime: typeof formData.startTime === 'number' ? dayjs(formData.startTime) : null
|
207
|
+
}),
|
203
208
|
disabled: disabled || loadingTask,
|
204
209
|
scrollToFirstError: true,
|
205
210
|
onFinish: onFinish,
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -161,7 +161,7 @@ declare const Tool: {
|
|
161
161
|
OsPathSeparator(): string;
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
h5Pay(query: Pay.H5PayQuery): void;
|
164
|
-
notification(type: "success" | "
|
164
|
+
notification(type: "success" | "error" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
165
165
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
package/dist/window.d.ts
CHANGED
@@ -19,7 +19,7 @@ declare interface Window{
|
|
19
19
|
getChromiumPath: () => string;
|
20
20
|
getClientUniqueKey: () => string;
|
21
21
|
|
22
|
-
|
22
|
+
openVideoAccountBrowser: ( platform: string, subPlatform: string, accountId: string, url: string ) => void;
|
23
23
|
};
|
24
24
|
|
25
25
|
getClientIdentity: () => Promise<string>;
|