component-shipinlv 1.1.25 → 1.1.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,7 +90,7 @@ var VideoPublish = function VideoPublish(_ref) {
90
90
  key: 'task-list',
91
91
  icon: /*#__PURE__*/_jsx(ClockCircleOutlined, {}),
92
92
  label: '发布列表',
93
- disabled: !canPublish,
93
+ // disabled: ! canPublish,
94
94
  children: /*#__PURE__*/_jsx(VideoPublishTaskList, {
95
95
  disabled: disabled,
96
96
  env: env
@@ -99,13 +99,13 @@ var VideoPublish = function VideoPublish(_ref) {
99
99
  key: 'setting',
100
100
  icon: /*#__PURE__*/_jsx(SettingOutlined, {}),
101
101
  label: '配置',
102
- disabled: !canPublish,
102
+ // disabled: ! canPublish,
103
103
  children: /*#__PURE__*/_jsx(VideoPublishAccountManageSettingPage, {})
104
104
  }, {
105
105
  key: 'publish-log',
106
106
  icon: /*#__PURE__*/_jsx(FileSearchOutlined, {}),
107
107
  label: '发布日志',
108
- disabled: !canPublish,
108
+ // disabled: ! canPublish,
109
109
  forceRender: canPublish,
110
110
  children: /*#__PURE__*/_jsx(VideoPublishLog, {
111
111
  env: env,
@@ -177,6 +177,7 @@ var VideoPublish = function VideoPublish(_ref) {
177
177
  })
178
178
  })]
179
179
  }), /*#__PURE__*/_jsx(VideoPublishPublishVideoPlan, {
180
+ disabled: disabled,
180
181
  env: env,
181
182
  clientIdentity: clientIdentity
182
183
  })]
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import './index.less';
3
3
  interface Props {
4
4
  env?: Global.Env;
5
+ disabled?: boolean;
5
6
  clientIdentity: string;
6
7
  }
7
8
  declare const VideoPublishPublishVideoPlan: React.FC<Props>;
@@ -3,9 +3,13 @@ import "./index.less";
3
3
  import PublishTaskPlanClass from "./tool";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  var VideoPublishPublishVideoPlan = function VideoPublishPublishVideoPlan(_ref) {
6
- var env = _ref.env,
6
+ var disabled = _ref.disabled,
7
+ env = _ref.env,
7
8
  clientIdentity = _ref.clientIdentity;
8
9
  useEffect(function () {
10
+ if (disabled) {
11
+ return;
12
+ }
9
13
  var publishTaskPlan = new PublishTaskPlanClass(env, clientIdentity);
10
14
  publishTaskPlan.onInit();
11
15
  }, []);
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
+ env?: Global.Env | '';
3
4
  onActive: () => void;
4
5
  }
5
6
  declare const UserProfileVipCard: React.FC<Props>;
@@ -8,13 +8,16 @@ import updateUserInfo from "../lib/updateUserInfo";
8
8
  import Tool from "../lib/Tool";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  var UserProfileVipCard = function UserProfileVipCard(_ref) {
11
- var onActive = _ref.onActive;
11
+ var env = _ref.env,
12
+ onActive = _ref.onActive;
12
13
  var _Form$useForm = Form.useForm(),
13
14
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
14
15
  form = _Form$useForm2[0];
15
16
  var _useRequest = useRequest(function (vipCardCode) {
16
17
  return VipCardController.activate({
17
18
  vipCardCode: vipCardCode
19
+ }, {
20
+ env: env
18
21
  });
19
22
  }, {
20
23
  manual: true,
@@ -51,7 +54,7 @@ var UserProfileVipCard = function UserProfileVipCard(_ref) {
51
54
  required: true,
52
55
  message: '请输入'
53
56
  }, {
54
- pattern: /^\s*(AI\d-)?[A-Z0-9-]{14,}\s*$/i,
57
+ pattern: /^\s*([a-z0-9]+-)?[A-Z0-9-]{14,}\s*$/i,
55
58
  message: '类似:AI-AAAA-BBBB-CCCC'
56
59
  }],
57
60
  children: /*#__PURE__*/_jsx(Input, {
@@ -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: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
+ notification(type: "info" | "error" | "success" | "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;
@@ -8,7 +8,9 @@ var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
8
8
  return data;
9
9
  }
10
10
  var chromePath = (_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.call(_window).getChromiumPath();
11
- console.log('AccountManageSettingConfig get:', chromePath);
11
+
12
+ // console.log('AccountManageSettingConfig get:', chromePath );
13
+
12
14
  var storeData = store.get(AccountManageSettingConfigKey);
13
15
  var outData = _objectSpread(_objectSpread({
14
16
  isChromeOpen: false,
@@ -1,2 +1,2 @@
1
- declare const renewalVip: (productName: string) => Promise<unknown>;
1
+ declare const renewalVip: (productName: string, env?: Global.Env | '') => Promise<unknown>;
2
2
  export default renewalVip;
@@ -8,7 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
9
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  var renewalVip = /*#__PURE__*/function () {
11
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(productName) {
11
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(productName, env) {
12
12
  var _userInfo$userVip;
13
13
  var siteInfo, userInfo, userVip, isVip, localSiteInfo;
14
14
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -20,7 +20,8 @@ var renewalVip = /*#__PURE__*/function () {
20
20
  isVip = !!(userVip !== null && userVip !== void 0 && userVip.isVip);
21
21
  localSiteInfo = Tool.getLocalSiteInfo();
22
22
  return _context.abrupt("return", new Promise(function (resolve, reject) {
23
- if (siteInfo.disabledOnlineBuy.includes(productName)) {
23
+ var _siteInfo$disabledOnl;
24
+ if ((_siteInfo$disabledOnl = siteInfo.disabledOnlineBuy) !== null && _siteInfo$disabledOnl !== void 0 && _siteInfo$disabledOnl.includes(productName)) {
24
25
  // 激活码
25
26
  var dialog = Tool.drawer({
26
27
  title: /*#__PURE__*/_jsxs(_Fragment, {
@@ -32,6 +33,7 @@ var renewalVip = /*#__PURE__*/function () {
32
33
  })]
33
34
  }),
34
35
  content: /*#__PURE__*/_jsx(UserProfileVipCard, {
36
+ env: env,
35
37
  onActive: function onActive() {
36
38
  resolve(true);
37
39
  dialog.destroy();
@@ -44,7 +46,7 @@ var renewalVip = /*#__PURE__*/function () {
44
46
  Tool.pageDialog({
45
47
  title: '价格表',
46
48
  content: /*#__PURE__*/_jsx(VipList, {
47
- env: getApiEnv(),
49
+ env: env || getApiEnv(),
48
50
  tableScrollY: "60vh",
49
51
  productType: productName,
50
52
  applyDemoWechatUrl: localSiteInfo.domainUserWeContactQrUrl || localSiteInfo.dealerWeContactQrUrl || localSiteInfo.adminWechatQr,
@@ -68,7 +70,7 @@ var renewalVip = /*#__PURE__*/function () {
68
70
  }
69
71
  }, _callee);
70
72
  }));
71
- return function renewalVip(_x) {
73
+ return function renewalVip(_x, _x2) {
72
74
  return _ref.apply(this, arguments);
73
75
  };
74
76
  }();
@@ -25,6 +25,7 @@ declare namespace PublishTaskPlan {
25
25
  kindTagValue: string;
26
26
  videoUrl: string;
27
27
  publishCoverUrl: string;
28
+ goodsTitle: string;
28
29
  publishTime: number;
29
30
  }
30
31
  interface TaskDetailComment {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.1.25",
3
+ "version": "1.1.27",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",