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.
- package/dist/Ad/index.js +41 -47
- package/dist/Auth/index.js +69 -100
- package/dist/AuthClient/index.js +11 -14
- package/dist/AuthClient/login-reg.js +47 -55
- package/dist/AuthClient/login.js +63 -70
- package/dist/AuthClient/qr/index.js +60 -91
- package/dist/AuthClient/reg.d.ts +1 -0
- package/dist/AuthClient/reg.js +84 -90
- package/dist/AuthClient/user-offline.js +19 -31
- package/dist/Buy/index.js +5 -7
- package/dist/Buy/qr.js +97 -141
- package/dist/Buy/trial-member.js +14 -18
- package/dist/Client/ClientUpdate/index.js +5 -9
- package/dist/Product/dict.js +3 -5
- package/dist/UI/DialogDrawer.js +14 -19
- package/dist/UI/DialogDrawerFooter.js +7 -15
- package/dist/UI/FileSize.d.ts +1 -1
- package/dist/UI/FileSize.js +16 -34
- package/dist/UI/LayoutContent.js +25 -41
- package/dist/UI/LoadError.js +11 -15
- package/dist/UI/Money/index.js +15 -29
- package/dist/UI/PageContentWarp.js +26 -45
- package/dist/UI/PageLoading.d.ts +2 -1
- package/dist/UI/PageLoading.js +3 -5
- package/dist/UI/Time.js +5 -8
- package/dist/UI/copy.d.ts +12 -0
- package/dist/UI/copy.js +64 -0
- package/dist/UI/copy.module.less +13 -0
- package/dist/UI/duration.js +13 -22
- package/dist/UI/enabled.js +13 -18
- package/dist/UI/id-tag.d.ts +7 -0
- package/dist/UI/id-tag.js +14 -0
- package/dist/UI/id.module.less +8 -0
- package/dist/UI/text-input.js +46 -61
- package/dist/VipList/index.js +99 -129
- package/dist/active-code/index.js +24 -31
- package/dist/active-code/user-vip.d.ts +2 -1
- package/dist/active-code/user-vip.js +24 -30
- package/dist/base/index.d.ts +2 -1
- package/dist/base/index.js +22 -29
- package/dist/calculate-price/components/meter.d.ts +3 -0
- package/dist/calculate-price/components/meter.js +1024 -0
- package/dist/calculate-price/components/meter.less +378 -0
- package/dist/calculate-price/index.d.ts +2 -0
- package/dist/calculate-price/index.js +5 -0
- package/dist/collect-price/index.js +22 -25
- package/dist/collect-price/list.js +100 -123
- package/dist/component/AccountBan/index.d.ts +1 -1
- package/dist/component/AccountBan/index.js +4 -5
- package/dist/component/file-select.js +30 -39
- package/dist/component/folder-select.js +36 -46
- package/dist/component/markdown/index.js +50 -52
- package/dist/component/media-show/index.js +17 -22
- package/dist/component/media-show/render.js +24 -34
- package/dist/component/price-add/index.js +79 -115
- package/dist/component/product-dict.js +1 -2
- package/dist/component/product-type.js +3 -5
- package/dist/component/video-platform/logo.js +12 -15
- package/dist/component/videoKindTag/index.js +6 -9
- package/dist/config/apiUrls.d.ts +1 -0
- package/dist/config/apiUrls.js +6 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/Tool.d.ts +3 -3
- package/dist/lib/Tool.js +11 -14
- package/dist/lib/getApiUrl.js +3 -0
- package/dist/lib/moneySimple.d.ts +2 -1
- package/dist/lib/moneySimple.js +4 -5
- package/dist/lib/save-path.js +40 -52
- package/dist/pay/alipay-qr.js +53 -73
- package/dist/pay/pay-channel.js +20 -25
- package/dist/pay/payChannelList.js +3 -4
- package/dist/pay/qr-wechat.js +53 -73
- package/dist/pay/qr.js +53 -73
- package/dist/pay/recharge-moneyAmount-alt.js +11 -18
- package/dist/pay/recharge-rule.js +34 -47
- package/dist/pay/recharge.js +107 -145
- package/dist/pay/vip.js +113 -143
- package/dist/service/api/ozon/PricerController.d.ts +10 -0
- package/dist/service/api/ozon/PricerController.js +96 -0
- package/dist/types/ozon/OzonPricer.d.ts +93 -0
- package/dist/types/ozon/OzonPricer.js +0 -0
- 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__*/
|
|
97
|
-
className: "ad"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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;
|
package/dist/Auth/index.js
CHANGED
|
@@ -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__*/
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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;
|
package/dist/AuthClient/index.js
CHANGED
|
@@ -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__*/
|
|
25
|
+
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
27
26
|
locale: antdLocaleLanguage.locale,
|
|
28
27
|
direction: antdLocaleLanguage.direction
|
|
29
28
|
// theme={ theme }
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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__*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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;
|
package/dist/AuthClient/login.js
CHANGED
|
@@ -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__*/
|
|
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__*/
|
|
113
|
-
className: "authClientLogin"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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;
|