component-sanzhizhou 1.1.3 → 1.1.7

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.
Files changed (83) hide show
  1. package/dist/Ad/index.js +41 -47
  2. package/dist/Auth/index.js +69 -100
  3. package/dist/AuthClient/index.js +11 -14
  4. package/dist/AuthClient/login-reg.js +47 -55
  5. package/dist/AuthClient/login.js +63 -70
  6. package/dist/AuthClient/qr/index.js +60 -91
  7. package/dist/AuthClient/reg.d.ts +1 -0
  8. package/dist/AuthClient/reg.js +84 -90
  9. package/dist/AuthClient/user-offline.js +19 -31
  10. package/dist/Buy/index.js +5 -7
  11. package/dist/Buy/qr.js +97 -141
  12. package/dist/Buy/trial-member.js +14 -18
  13. package/dist/Client/ClientUpdate/index.js +5 -9
  14. package/dist/Product/dict.js +3 -5
  15. package/dist/UI/DialogDrawer.js +14 -19
  16. package/dist/UI/DialogDrawerFooter.js +7 -15
  17. package/dist/UI/FileSize.d.ts +1 -1
  18. package/dist/UI/FileSize.js +16 -34
  19. package/dist/UI/LayoutContent.js +25 -41
  20. package/dist/UI/LoadError.js +11 -15
  21. package/dist/UI/Money/index.js +15 -29
  22. package/dist/UI/PageContentWarp.js +26 -45
  23. package/dist/UI/PageLoading.d.ts +2 -1
  24. package/dist/UI/PageLoading.js +3 -5
  25. package/dist/UI/Time.js +5 -8
  26. package/dist/UI/copy.d.ts +12 -0
  27. package/dist/UI/copy.js +64 -0
  28. package/dist/UI/copy.module.less +13 -0
  29. package/dist/UI/duration.js +13 -22
  30. package/dist/UI/enabled.js +13 -18
  31. package/dist/UI/id-tag.d.ts +7 -0
  32. package/dist/UI/id-tag.js +14 -0
  33. package/dist/UI/id.module.less +8 -0
  34. package/dist/UI/text-input.js +46 -61
  35. package/dist/VipList/index.js +99 -129
  36. package/dist/active-code/index.js +24 -31
  37. package/dist/active-code/user-vip.d.ts +2 -1
  38. package/dist/active-code/user-vip.js +24 -30
  39. package/dist/base/index.d.ts +2 -1
  40. package/dist/base/index.js +22 -29
  41. package/dist/calculate-price/components/meter.d.ts +3 -0
  42. package/dist/calculate-price/components/meter.js +1024 -0
  43. package/dist/calculate-price/components/meter.less +378 -0
  44. package/dist/calculate-price/index.d.ts +2 -0
  45. package/dist/calculate-price/index.js +5 -0
  46. package/dist/collect-price/index.js +22 -25
  47. package/dist/collect-price/list.js +100 -123
  48. package/dist/component/AccountBan/index.d.ts +1 -1
  49. package/dist/component/AccountBan/index.js +4 -5
  50. package/dist/component/file-select.js +30 -39
  51. package/dist/component/folder-select.js +36 -46
  52. package/dist/component/markdown/index.js +50 -52
  53. package/dist/component/media-show/index.js +17 -22
  54. package/dist/component/media-show/render.js +24 -34
  55. package/dist/component/price-add/index.js +79 -115
  56. package/dist/component/product-dict.js +1 -2
  57. package/dist/component/product-type.js +3 -5
  58. package/dist/component/video-platform/logo.js +12 -15
  59. package/dist/component/videoKindTag/index.js +6 -9
  60. package/dist/config/apiUrls.d.ts +1 -0
  61. package/dist/config/apiUrls.js +6 -3
  62. package/dist/index.d.ts +1 -0
  63. package/dist/index.js +1 -0
  64. package/dist/lib/Tool.d.ts +3 -3
  65. package/dist/lib/Tool.js +11 -14
  66. package/dist/lib/getApiUrl.js +3 -0
  67. package/dist/lib/moneySimple.d.ts +2 -1
  68. package/dist/lib/moneySimple.js +4 -5
  69. package/dist/lib/save-path.js +40 -52
  70. package/dist/pay/alipay-qr.js +53 -73
  71. package/dist/pay/pay-channel.js +20 -25
  72. package/dist/pay/payChannelList.js +3 -4
  73. package/dist/pay/qr-wechat.js +53 -73
  74. package/dist/pay/qr.js +53 -73
  75. package/dist/pay/recharge-moneyAmount-alt.js +11 -18
  76. package/dist/pay/recharge-rule.js +34 -47
  77. package/dist/pay/recharge.js +107 -145
  78. package/dist/pay/vip.js +113 -143
  79. package/dist/service/api/ozon/PricerController.d.ts +10 -0
  80. package/dist/service/api/ozon/PricerController.js +96 -0
  81. package/dist/types/ozon/OzonPricer.d.ts +93 -0
  82. package/dist/types/ozon/OzonPricer.js +0 -0
  83. package/package.json +2 -1
package/dist/Ad/index.js CHANGED
@@ -7,8 +7,6 @@ import React, { useRef, useState } from 'react';
7
7
  import { LoadingOutlined, SoundOutlined, WarningOutlined } from "@ant-design/icons";
8
8
  import "./index.less";
9
9
  import { Image } from 'antd';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
10
  var Ad = function Ad(_ref) {
13
11
  var productType = _ref.productType,
14
12
  from = _ref.from,
@@ -93,51 +91,47 @@ var Ad = function Ad(_ref) {
93
91
  }
94
92
  return false;
95
93
  };
96
- return /*#__PURE__*/_jsxs("div", {
97
- className: "ad",
98
- children: [error ? /*#__PURE__*/_jsxs("a", {
99
- onClick: function onClick() {
100
- return run();
101
- },
102
- children: [/*#__PURE__*/_jsx(WarningOutlined, {
103
- className: "reload"
104
- }), " \u91CD\u8BD5"]
105
- }) : loading ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : currentItem.id > 0 && /*#__PURE__*/_jsx("div", {
106
- className: "adList",
107
- onMouseEnter: function onMouseEnter() {
108
- return clearTimeout(timerRef.current);
109
- },
110
- onMouseLeave: function onMouseLeave() {
111
- return onLoop();
112
- },
113
- children: /*#__PURE__*/_jsxs("a", {
114
- href: currentItem.url,
115
- target: "_blank",
116
- onClick: function onClick(e) {
117
- if (!onOpen(currentItem)) {
118
- e.preventDefault();
119
- e.stopPropagation();
120
- return false;
121
- }
122
- },
123
- children: [/*#__PURE__*/_jsx(SoundOutlined, {
124
- className: "iconSound"
125
- }), " ", currentItem.title]
126
- })
127
- }), /*#__PURE__*/_jsx(Image, {
128
- style: {
129
- display: 'none'
130
- },
131
- src: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?x-oss-process=image/blur,r_50,s_50/quality,q_1/resize,m_mfit,h_200,w_200",
132
- preview: {
133
- visible: imageVisible,
134
- src: imageUrl,
135
- // 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
136
- onVisibleChange: function onVisibleChange(value) {
137
- setImageVisible(value);
138
- }
94
+ return /*#__PURE__*/React.createElement("div", {
95
+ className: "ad"
96
+ }, error ? /*#__PURE__*/React.createElement("a", {
97
+ onClick: function onClick() {
98
+ return run();
99
+ }
100
+ }, /*#__PURE__*/React.createElement(WarningOutlined, {
101
+ className: "reload"
102
+ }), " \u91CD\u8BD5") : loading ? /*#__PURE__*/React.createElement(LoadingOutlined, null) : currentItem.id > 0 && /*#__PURE__*/React.createElement("div", {
103
+ className: "adList",
104
+ onMouseEnter: function onMouseEnter() {
105
+ return clearTimeout(timerRef.current);
106
+ },
107
+ onMouseLeave: function onMouseLeave() {
108
+ return onLoop();
109
+ }
110
+ }, /*#__PURE__*/React.createElement("a", {
111
+ href: currentItem.url,
112
+ target: "_blank",
113
+ onClick: function onClick(e) {
114
+ if (!onOpen(currentItem)) {
115
+ e.preventDefault();
116
+ e.stopPropagation();
117
+ return false;
139
118
  }
140
- })]
141
- });
119
+ }
120
+ }, /*#__PURE__*/React.createElement(SoundOutlined, {
121
+ className: "iconSound"
122
+ }), " ", currentItem.title)), /*#__PURE__*/React.createElement(Image, {
123
+ style: {
124
+ display: 'none'
125
+ },
126
+ src: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?x-oss-process=image/blur,r_50,s_50/quality,q_1/resize,m_mfit,h_200,w_200",
127
+ preview: {
128
+ visible: imageVisible,
129
+ src: imageUrl,
130
+ // 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
131
+ onVisibleChange: function onVisibleChange(value) {
132
+ setImageVisible(value);
133
+ }
134
+ }
135
+ }));
142
136
  };
143
137
  export default Ad;
@@ -17,9 +17,6 @@ import styles from "../AuthClient/qr/index.css";
17
17
  import h5WePublicLogin from "../AuthClient/qr/h5-we-public-login";
18
18
  import Tool from "../lib/Tool";
19
19
  import formatMessage from "../lib/formatMessage";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- import { Fragment as _Fragment } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
20
  var reTryMaxCount = 120;
24
21
  var reTryTimeLoop = 1000; // ms
25
22
  var FromWhere = 'web';
@@ -274,102 +271,74 @@ var Auth = function Auth(_ref) {
274
271
  clearTimeout(timer.current);
275
272
  };
276
273
  }, []);
277
- return /*#__PURE__*/_jsxs(styles.AuthQrLogin, {
278
- children: [/*#__PURE__*/_jsxs(styles.LoginForm, {
279
- children: [/*#__PURE__*/_jsx("div", {
280
- className: "ssz-webTitle",
281
- children: formatMessage('登录/注册')
282
- }), /*#__PURE__*/_jsxs(Tabs, {
283
- activeKey: activeKey,
284
- onChange: function onChange(keyName) {
285
- onTabChange(keyName);
286
- },
287
- children: [!((currentLoginTypeList === null || currentLoginTypeList === void 0 ? void 0 : currentLoginTypeList.length) > 0 && !currentLoginTypeList.includes('wechat')) && /*#__PURE__*/_jsx(Tabs.TabPane, {
288
- tab: /*#__PURE__*/_jsxs(_Fragment, {
289
- children: [/*#__PURE__*/_jsx(WechatOutlined, {}), " ", formatMessage('微信')]
290
- }),
291
- disabled: (currentLoginTypeList === null || currentLoginTypeList === void 0 ? void 0 : currentLoginTypeList.length) > 0 && !currentLoginTypeList.includes('wechat'),
292
- children: /*#__PURE__*/_jsx(PageContentWarp, {
293
- loading: loadingWeLoginQr || loading,
294
- error: errorWeLoginQr,
295
- onReload: function onReload() {
296
- return onRetryWeQr();
297
- },
298
- children: /*#__PURE__*/_jsxs(styles.WeQrUrlBox, {
299
- children: [/*#__PURE__*/_jsxs("div", {
300
- style: {
301
- // backgroundImage: `url('${ weQrUrl }')`,
302
- },
303
- className: "qr wechat ".concat(isNextTry ? '' : 'noTry'),
304
- children: [!isNextTry && /*#__PURE__*/_jsx("div", {
305
- className: "reTry",
306
- onClick: onRetryWeQr,
307
- children: /*#__PURE__*/_jsx("a", {
308
- children: /*#__PURE__*/_jsx(RedoOutlined, {})
309
- })
310
- }), /*#__PURE__*/_jsx("div", {
311
- className: "weQrUrl",
312
- children: /*#__PURE__*/_jsx(QRCode, {
313
- value: weQrUrl,
314
- fgColor: "#0bc160",
315
- size: 230
316
- })
317
- })]
318
- }), Platform.isH5 ? /*#__PURE__*/_jsxs("div", {
319
- className: "altWeb",
320
- children: [/*#__PURE__*/_jsx("div", {
321
- className: "titles",
322
- children: "\u4E0B\u9762\u4EFB\u9009\u4E00\u4E2A\u65B9\u6CD5\u90FD\u53EF\u4EE5\u767B\u5F55\uFF1A"
323
- }), /*#__PURE__*/_jsxs("ul", {
324
- children: [/*#__PURE__*/_jsx("li", {
325
- children: "1\u3001\u628A\u672C\u9875\u7F51\u5740\u590D\u5236\u5230\u5FAE\u4FE1\u91CC\u9762\u6253\u5F00"
326
- }), /*#__PURE__*/_jsx("li", {
327
- children: "2\u3001\u8BF7\u7528\u5FAE\u4FE1\u626B\u7801\u767B\u5F55"
328
- }), /*#__PURE__*/_jsx("li", {
329
- children: "3\u3001\u628A\u672C\u9875\u7F51\u5740\u590D\u5236\u5230\u5FAE\u4FE1\u91CC\u9762\u6253\u5F00"
330
- })]
331
- })]
332
- }) : /*#__PURE__*/_jsx("div", {
333
- className: "alt"
334
- })]
335
- })
336
- })
337
- }, "wechat"), /*#__PURE__*/_jsx(Tabs.TabPane, {
338
- tab: /*#__PURE__*/_jsxs("span", {
339
- className: "tab-icon",
340
- children: [/*#__PURE__*/_jsx(UserOutlined, {}), " ", formatMessage('账户')]
341
- }),
342
- disabled: !currentLoginTypeList.includes('account-login') && !currentLoginTypeList.includes('account'),
343
- children: /*#__PURE__*/_jsx(AuthLoginReg, {
344
- env: env,
345
- apiUrl: apiUrl,
346
- roleType: roleType,
347
- postData: postData,
348
- productType: productType,
349
- disabledFormItemLabel: disabledFormItemLabel,
350
- clientUniqueKeyList: clientUniqueKeyList,
351
- accountRegDisabled: !currentLoginTypeList.includes('account-reg'),
352
- onSuccess: function onSuccess() {
353
- return onLoginSuccess();
354
- }
355
- })
356
- }, "account")]
357
- }), activeKey === 'wechat' && /*#__PURE__*/_jsx("div", {
358
- className: "percent",
359
- children: /*#__PURE__*/_jsx("div", {
360
- className: "warp",
361
- style: {
362
- width: "".concat(reTryCount / reTryMaxCount * 100, "%")
363
- }
364
- })
365
- })]
366
- }), /*#__PURE__*/_jsx("div", {
367
- className: "callWechat",
368
- onClick: onCallWechat
369
- }), /*#__PURE__*/_jsx("div", {
370
- className: "callAccount",
371
- onClick: onCallAccount
372
- })]
373
- });
274
+ return /*#__PURE__*/React.createElement(styles.AuthQrLogin, null, /*#__PURE__*/React.createElement(styles.LoginForm, null, /*#__PURE__*/React.createElement("div", {
275
+ className: "ssz-webTitle"
276
+ }, formatMessage('登录/注册')), /*#__PURE__*/React.createElement(Tabs, {
277
+ activeKey: activeKey,
278
+ onChange: function onChange(keyName) {
279
+ onTabChange(keyName);
280
+ }
281
+ }, !((currentLoginTypeList === null || currentLoginTypeList === void 0 ? void 0 : currentLoginTypeList.length) > 0 && !currentLoginTypeList.includes('wechat')) && /*#__PURE__*/React.createElement(Tabs.TabPane, {
282
+ tab: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WechatOutlined, null), " ", formatMessage('微信')),
283
+ disabled: (currentLoginTypeList === null || currentLoginTypeList === void 0 ? void 0 : currentLoginTypeList.length) > 0 && !currentLoginTypeList.includes('wechat'),
284
+ key: "wechat"
285
+ }, /*#__PURE__*/React.createElement(PageContentWarp, {
286
+ loading: loadingWeLoginQr || loading,
287
+ error: errorWeLoginQr,
288
+ onReload: function onReload() {
289
+ return onRetryWeQr();
290
+ }
291
+ }, /*#__PURE__*/React.createElement(styles.WeQrUrlBox, null, /*#__PURE__*/React.createElement("div", {
292
+ style: {
293
+ // backgroundImage: `url('${ weQrUrl }')`,
294
+ },
295
+ className: "qr wechat ".concat(isNextTry ? '' : 'noTry')
296
+ }, !isNextTry && /*#__PURE__*/React.createElement("div", {
297
+ className: "reTry",
298
+ onClick: onRetryWeQr
299
+ }, /*#__PURE__*/React.createElement("a", null, /*#__PURE__*/React.createElement(RedoOutlined, null))), /*#__PURE__*/React.createElement("div", {
300
+ className: "weQrUrl"
301
+ }, /*#__PURE__*/React.createElement(QRCode, {
302
+ value: weQrUrl,
303
+ fgColor: "#0bc160",
304
+ size: 230
305
+ }))), Platform.isH5 ? /*#__PURE__*/React.createElement("div", {
306
+ className: "altWeb"
307
+ }, /*#__PURE__*/React.createElement("div", {
308
+ className: "titles"
309
+ }, "\u4E0B\u9762\u4EFB\u9009\u4E00\u4E2A\u65B9\u6CD5\u90FD\u53EF\u4EE5\u767B\u5F55\uFF1A"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "1\u3001\u628A\u672C\u9875\u7F51\u5740\u590D\u5236\u5230\u5FAE\u4FE1\u91CC\u9762\u6253\u5F00"), /*#__PURE__*/React.createElement("li", null, "2\u3001\u8BF7\u7528\u5FAE\u4FE1\u626B\u7801\u767B\u5F55"), /*#__PURE__*/React.createElement("li", null, "3\u3001\u628A\u672C\u9875\u7F51\u5740\u590D\u5236\u5230\u5FAE\u4FE1\u91CC\u9762\u6253\u5F00"))) : /*#__PURE__*/React.createElement("div", {
310
+ className: "alt"
311
+ })))), /*#__PURE__*/React.createElement(Tabs.TabPane, {
312
+ tab: /*#__PURE__*/React.createElement("span", {
313
+ className: "tab-icon"
314
+ }, /*#__PURE__*/React.createElement(UserOutlined, null), " ", formatMessage('账户')),
315
+ disabled: !currentLoginTypeList.includes('account-login') && !currentLoginTypeList.includes('account'),
316
+ key: "account"
317
+ }, /*#__PURE__*/React.createElement(AuthLoginReg, {
318
+ env: env,
319
+ apiUrl: apiUrl,
320
+ roleType: roleType,
321
+ postData: postData,
322
+ productType: productType,
323
+ disabledFormItemLabel: disabledFormItemLabel,
324
+ clientUniqueKeyList: clientUniqueKeyList,
325
+ accountRegDisabled: !currentLoginTypeList.includes('account-reg'),
326
+ onSuccess: function onSuccess() {
327
+ return onLoginSuccess();
328
+ }
329
+ }))), activeKey === 'wechat' && /*#__PURE__*/React.createElement("div", {
330
+ className: "percent"
331
+ }, /*#__PURE__*/React.createElement("div", {
332
+ className: "warp",
333
+ style: {
334
+ width: "".concat(reTryCount / reTryMaxCount * 100, "%")
335
+ }
336
+ }))), /*#__PURE__*/React.createElement("div", {
337
+ className: "callWechat",
338
+ onClick: onCallWechat
339
+ }), /*#__PURE__*/React.createElement("div", {
340
+ className: "callAccount",
341
+ onClick: onCallAccount
342
+ }));
374
343
  };
375
344
  export default Auth;
@@ -4,7 +4,6 @@ import LoginQr from "./qr";
4
4
  import Tool from "../lib/Tool";
5
5
  import { ConfigProvider } from 'antd';
6
6
  import getLanguage from "../lib/get-language";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
7
  var Auth = function Auth(_ref) {
9
8
  var productType = _ref.productType,
10
9
  clientUniqueKeyList = _ref.clientUniqueKeyList,
@@ -23,21 +22,19 @@ var Auth = function Auth(_ref) {
23
22
  onSuccess();
24
23
  Tool.pageDialogCloseAll();
25
24
  };
26
- return /*#__PURE__*/_jsx(ConfigProvider, {
25
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
27
26
  locale: antdLocaleLanguage.locale,
28
27
  direction: antdLocaleLanguage.direction
29
28
  // theme={ theme }
30
- ,
31
- children: /*#__PURE__*/_jsx(LoginQr, {
32
- productType: productType,
33
- clientUniqueKeyList: clientUniqueKeyList,
34
- defaultLoginType: defaultLoginType,
35
- wechatDisabled: wechatDisabled,
36
- accountDisabled: accountDisabled,
37
- accountHidden: accountHidden,
38
- accountRegDisabled: accountRegDisabled,
39
- onLoginSuccess: onLoginSuccess
40
- })
41
- });
29
+ }, /*#__PURE__*/React.createElement(LoginQr, {
30
+ productType: productType,
31
+ clientUniqueKeyList: clientUniqueKeyList,
32
+ defaultLoginType: defaultLoginType,
33
+ wechatDisabled: wechatDisabled,
34
+ accountDisabled: accountDisabled,
35
+ accountHidden: accountHidden,
36
+ accountRegDisabled: accountRegDisabled,
37
+ onLoginSuccess: onLoginSuccess
38
+ }));
42
39
  };
43
40
  export default Auth;
@@ -6,8 +6,6 @@ import Reg from "./reg";
6
6
  import styles from "./login-reg.css";
7
7
  import AuthLogin from "./login";
8
8
  import formatMessage from "../lib/formatMessage";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
9
  var AuthLoginReg = function AuthLoginReg(_ref) {
12
10
  var env = _ref.env,
13
11
  productType = _ref.productType,
@@ -25,58 +23,52 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
25
23
  _useState2 = _slicedToArray(_useState, 2),
26
24
  activeKey = _useState2[0],
27
25
  setActiveKey = _useState2[1];
28
- return /*#__PURE__*/_jsxs(styles.LoginReg, {
29
- children: [/*#__PURE__*/_jsx("div", {
30
- className: "radioSelectBox",
31
- children: /*#__PURE__*/_jsxs(Radio.Group, {
32
- onChange: function onChange(keyName) {
33
- return setActiveKey(keyName.target.value);
34
- },
35
- value: activeKey,
36
- children: [/*#__PURE__*/_jsxs(Radio.Button, {
37
- value: "login",
38
- children: [/*#__PURE__*/_jsx(UserOutlined, {}), " ", formatMessage('登录')]
39
- }), /*#__PURE__*/_jsxs(Radio.Button, {
40
- value: "reg",
41
- disabled: accountRegDisabled,
42
- children: [/*#__PURE__*/_jsx(UserAddOutlined, {}), " ", formatMessage('注册')]
43
- })]
44
- })
45
- }), /*#__PURE__*/_jsxs(Tabs, {
46
- activeKey: activeKey,
47
- className: "selectTabs",
48
- onChange: function onChange(keyName) {
49
- setActiveKey(keyName);
50
- },
51
- children: [/*#__PURE__*/_jsx(Tabs.TabPane, {
52
- tab: formatMessage('登录'),
53
- children: /*#__PURE__*/_jsx(AuthLogin, {
54
- roleType: roleType,
55
- env: env,
56
- disabledFormItemLabel: disabledFormItemLabel,
57
- apiUrl: apiUrl,
58
- postData: postData,
59
- productType: productType,
60
- clientUniqueKeyList: clientUniqueKeyList,
61
- onSuccess: function onSuccess() {
62
- return _onSuccess();
63
- }
64
- })
65
- }, "login"), /*#__PURE__*/_jsx(Tabs.TabPane, {
66
- tab: formatMessage('注册'),
67
- children: /*#__PURE__*/_jsx(Reg, {
68
- env: env,
69
- roleType: roleType,
70
- productType: productType,
71
- disabledFormItemLabel: disabledFormItemLabel,
72
- postData: postData,
73
- clientUniqueKeyList: clientUniqueKeyList,
74
- onSuccess: function onSuccess() {
75
- return _onSuccess();
76
- }
77
- })
78
- }, "reg")]
79
- })]
80
- });
26
+ return /*#__PURE__*/React.createElement(styles.LoginReg, null, /*#__PURE__*/React.createElement("div", {
27
+ className: "radioSelectBox"
28
+ }, /*#__PURE__*/React.createElement(Radio.Group, {
29
+ onChange: function onChange(keyName) {
30
+ return setActiveKey(keyName.target.value);
31
+ },
32
+ value: activeKey
33
+ }, /*#__PURE__*/React.createElement(Radio.Button, {
34
+ value: "login"
35
+ }, /*#__PURE__*/React.createElement(UserOutlined, null), " ", formatMessage('登录')), /*#__PURE__*/React.createElement(Radio.Button, {
36
+ value: "reg",
37
+ disabled: accountRegDisabled
38
+ }, /*#__PURE__*/React.createElement(UserAddOutlined, null), " ", formatMessage('注册')))), /*#__PURE__*/React.createElement(Tabs, {
39
+ activeKey: activeKey,
40
+ className: "selectTabs",
41
+ onChange: function onChange(keyName) {
42
+ setActiveKey(keyName);
43
+ }
44
+ }, /*#__PURE__*/React.createElement(Tabs.TabPane, {
45
+ tab: formatMessage('登录'),
46
+ key: "login"
47
+ }, /*#__PURE__*/React.createElement(AuthLogin, {
48
+ roleType: roleType,
49
+ env: env,
50
+ disabledFormItemLabel: disabledFormItemLabel,
51
+ apiUrl: apiUrl,
52
+ postData: postData,
53
+ productType: productType,
54
+ clientUniqueKeyList: clientUniqueKeyList,
55
+ onSuccess: function onSuccess() {
56
+ return _onSuccess();
57
+ }
58
+ })), /*#__PURE__*/React.createElement(Tabs.TabPane, {
59
+ tab: formatMessage('注册'),
60
+ key: "reg"
61
+ }, /*#__PURE__*/React.createElement(Reg, {
62
+ env: env,
63
+ roleType: roleType,
64
+ apiUrl: apiUrl,
65
+ productType: productType,
66
+ disabledFormItemLabel: disabledFormItemLabel,
67
+ postData: postData,
68
+ clientUniqueKeyList: clientUniqueKeyList,
69
+ onSuccess: function onSuccess() {
70
+ return _onSuccess();
71
+ }
72
+ }))));
81
73
  };
82
74
  export default AuthLoginReg;
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
3
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
@@ -11,8 +12,6 @@ import "./login.less";
11
12
  import * as AuthController from "../service/api/AuthController";
12
13
  import AuthUserOffline from "./user-offline";
13
14
  import formatMessage from "../lib/formatMessage";
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
16
15
  var formItemLayout = {
17
16
  labelCol: {
18
17
  span: 8
@@ -63,7 +62,7 @@ var AuthReg = function AuthReg(_ref) {
63
62
  if (err.name === 'user-offline') {
64
63
  var dialog = Tool.pageDialog({
65
64
  title: '此账号已经在其他电脑登录',
66
- content: /*#__PURE__*/_jsx(AuthUserOffline, {
65
+ content: /*#__PURE__*/React.createElement(AuthUserOffline, {
67
66
  message: err.message,
68
67
  onConfirm: function onConfirm() {
69
68
  run(form.getFieldsValue(), true);
@@ -109,73 +108,67 @@ var AuthReg = function AuthReg(_ref) {
109
108
  return _ref2.apply(this, arguments);
110
109
  };
111
110
  }();
112
- return /*#__PURE__*/_jsx("section", {
113
- className: "authClientLogin",
114
- children: /*#__PURE__*/_jsxs(Form, {
115
- form: form,
116
- onFinish: onFinish,
117
- disabled: loading,
118
- autoComplete: "off",
119
- children: [/*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({
120
- label: disabledFormItemLabel ? undefined : formatMessage('手机号码')
121
- }, formItemLayout), {}, {
122
- name: "accountName",
123
- rules: [{
124
- required: true,
125
- message: formatMessage('请输入')
126
- },
127
- // {
128
- // pattern: /^([a-z0-9]+[_\-.]?)*[a-z0-9]+@([a-z0-9]+[_\-.]?)*[a-z0-9]+\.[a-z]{2,10}$/i,
129
- // message: '这似乎不是一个电子邮箱'
130
- // },
131
- {
132
- pattern: /^\s*1\d{2}\s*\d{4}\s*\d{4}\s*$/,
133
- message: "".concat(formatMessage('这似乎不是中国大陆手机号码'), "\uFF1F")
134
- }],
135
- children: /*#__PURE__*/_jsx(Input, {
136
- placeholder: formatMessage('手机号码'),
137
- prefix: /*#__PURE__*/_jsx(UserOutlined, {
138
- className: "input-prefix-icon"
139
- })
140
- })
141
- })), /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, formItemLayout), {}, {
142
- label: disabledFormItemLabel ? undefined : formatMessage('密码'),
143
- name: "password",
144
- rules: [{
145
- required: true,
146
- message: formatMessage('请输入')
147
- }, {
148
- min: 6,
149
- message: formatMessage('最少{maxCount}个字符', {
150
- maxCount: 6
151
- })
152
- }, {
153
- max: 60,
154
- message: formatMessage('最多{maxCount}个字符', {
155
- maxCount: 60
156
- })
157
- }],
158
- children: /*#__PURE__*/_jsx(Input.Password, {
159
- prefix: /*#__PURE__*/_jsx(LockOutlined, {
160
- className: "input-prefix-icon"
161
- }),
162
- type: "password",
163
- placeholder: formatMessage('请输入'),
164
- iconRender: function iconRender(visible) {
165
- return visible ? /*#__PURE__*/_jsx(EyeTwoTone, {}) : /*#__PURE__*/_jsx(EyeInvisibleOutlined, {});
166
- }
167
- })
168
- })), /*#__PURE__*/_jsx("div", {
169
- className: "auth-submits",
170
- children: /*#__PURE__*/_jsx(Button, {
171
- type: "primary",
172
- loading: loading,
173
- htmlType: "submit",
174
- icon: /*#__PURE__*/_jsx(UserOutlined, {}),
175
- children: formatMessage('登录')
176
- })
177
- })]
111
+ return /*#__PURE__*/React.createElement("section", {
112
+ className: "authClientLogin"
113
+ }, /*#__PURE__*/React.createElement(Form, {
114
+ form: form,
115
+ onFinish: onFinish,
116
+ disabled: loading,
117
+ autoComplete: "off"
118
+ }, /*#__PURE__*/React.createElement(Form.Item, _extends({
119
+ label: disabledFormItemLabel ? undefined : formatMessage('手机号码')
120
+ }, formItemLayout, {
121
+ name: "accountName",
122
+ rules: [{
123
+ required: true,
124
+ message: formatMessage('请输入')
125
+ },
126
+ // {
127
+ // pattern: /^([a-z0-9]+[_\-.]?)*[a-z0-9]+@([a-z0-9]+[_\-.]?)*[a-z0-9]+\.[a-z]{2,10}$/i,
128
+ // message: '这似乎不是一个电子邮箱'
129
+ // },
130
+ {
131
+ pattern: /^\s*1\d{2}\s*\d{4}\s*\d{4}\s*$/,
132
+ message: "".concat(formatMessage('这似乎不是中国大陆手机号码'), "\uFF1F")
133
+ }]
134
+ }), /*#__PURE__*/React.createElement(Input, {
135
+ placeholder: formatMessage('手机号码'),
136
+ prefix: /*#__PURE__*/React.createElement(UserOutlined, {
137
+ className: "input-prefix-icon"
178
138
  })
179
- });
139
+ })), /*#__PURE__*/React.createElement(Form.Item, _extends({}, formItemLayout, {
140
+ label: disabledFormItemLabel ? undefined : formatMessage('密码'),
141
+ name: "password",
142
+ rules: [{
143
+ required: true,
144
+ message: formatMessage('请输入')
145
+ }, {
146
+ min: 6,
147
+ message: formatMessage('最少{maxCount}个字符', {
148
+ maxCount: 6
149
+ })
150
+ }, {
151
+ max: 60,
152
+ message: formatMessage('最多{maxCount}个字符', {
153
+ maxCount: 60
154
+ })
155
+ }]
156
+ }), /*#__PURE__*/React.createElement(Input.Password, {
157
+ prefix: /*#__PURE__*/React.createElement(LockOutlined, {
158
+ className: "input-prefix-icon"
159
+ }),
160
+ type: "password",
161
+ placeholder: formatMessage('请输入'),
162
+ iconRender: function iconRender(visible) {
163
+ return visible ? /*#__PURE__*/React.createElement(EyeTwoTone, null) : /*#__PURE__*/React.createElement(EyeInvisibleOutlined, null);
164
+ }
165
+ })), /*#__PURE__*/React.createElement("div", {
166
+ className: "auth-submits"
167
+ }, /*#__PURE__*/React.createElement(Button, {
168
+ type: "primary",
169
+ loading: loading,
170
+ htmlType: "submit",
171
+ icon: /*#__PURE__*/React.createElement(UserOutlined, null)
172
+ }, formatMessage('登录')))));
180
173
  };
181
174
  export default AuthReg;