component-sanzhizhou 1.0.23 → 1.1.0

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 (40) hide show
  1. package/dist/Ad/index.js +1 -1
  2. package/dist/Auth/index.d.ts +1 -0
  3. package/dist/Auth/index.js +4 -1
  4. package/dist/AuthClient/index.js +1 -1
  5. package/dist/AuthClient/login-reg.d.ts +1 -0
  6. package/dist/AuthClient/login-reg.js +4 -1
  7. package/dist/AuthClient/login.d.ts +2 -0
  8. package/dist/AuthClient/login.js +7 -6
  9. package/dist/AuthClient/login.less +7 -0
  10. package/dist/AuthClient/qr/index.css.d.ts +0 -1
  11. package/dist/AuthClient/qr/index.css.js +2 -6
  12. package/dist/AuthClient/qr/index.js +2 -1
  13. package/dist/AuthClient/reg.d.ts +2 -0
  14. package/dist/AuthClient/reg.js +14 -18
  15. package/dist/AuthClient/reg.less +7 -0
  16. package/dist/Buy/qr.js +23 -26
  17. package/dist/Buy/trial-member.js +1 -1
  18. package/dist/UI/FileSize.js +1 -1
  19. package/dist/UI/Money/index.js +1 -1
  20. package/dist/UI/PageContentWarp.js +1 -1
  21. package/dist/UI/duration.js +1 -1
  22. package/dist/UI/text-input.js +2 -2
  23. package/dist/VipList/index.js +1 -1
  24. package/dist/active-code/index.js +1 -1
  25. package/dist/base/index.js +1 -1
  26. package/dist/component/file-select.js +2 -2
  27. package/dist/component/folder-select.js +2 -2
  28. package/dist/lib/Tool.d.ts +1 -1
  29. package/dist/lib/moneySimple.js +1 -1
  30. package/dist/lib/save-path.js +1 -1
  31. package/dist/pay/alipay-qr.js +1 -1
  32. package/dist/pay/pay-channel.js +1 -1
  33. package/dist/pay/qr-wechat.js +1 -1
  34. package/dist/pay/qr.js +1 -1
  35. package/dist/pay/recharge-rule.js +1 -1
  36. package/dist/pay/recharge.js +2 -2
  37. package/dist/pay/vip.js +1 -1
  38. package/package.json +4 -4
  39. package/dist/AuthClient/login.css.d.ts +0 -5
  40. package/dist/AuthClient/login.css.js +0 -7
package/dist/Ad/index.js CHANGED
@@ -6,7 +6,7 @@ import * as AdController from "../service/api/AdController";
6
6
  import React, { useRef, useState } from 'react';
7
7
  import { LoadingOutlined, SoundOutlined, WarningOutlined } from "@ant-design/icons";
8
8
  import "./index.less";
9
- import { Image } from "antd";
9
+ import { Image } from 'antd';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
12
12
  var Ad = function Ad(_ref) {
@@ -7,6 +7,7 @@ interface Props {
7
7
  domain?: string;
8
8
  env?: Global.Env;
9
9
  roleType?: UserAuth.RoleType;
10
+ disabledFormItemLabel?: boolean;
10
11
  postData: {
11
12
  [name: string]: any;
12
13
  };
@@ -33,6 +33,7 @@ var Auth = function Auth(_ref) {
33
33
  env = _ref.env,
34
34
  postData = _ref.postData,
35
35
  roleType = _ref.roleType,
36
+ disabledFormItemLabel = _ref.disabledFormItemLabel,
36
37
  _ref$domain = _ref.domain,
37
38
  domain = _ref$domain === void 0 ? document.location.hostname : _ref$domain,
38
39
  _ref$onLoginSuccess = _ref.onLoginSuccess,
@@ -275,7 +276,8 @@ var Auth = function Auth(_ref) {
275
276
  }, []);
276
277
  return /*#__PURE__*/_jsxs(styles.AuthQrLogin, {
277
278
  children: [/*#__PURE__*/_jsxs(styles.LoginForm, {
278
- children: [/*#__PURE__*/_jsx(styles.WebTitle, {
279
+ children: [/*#__PURE__*/_jsx("div", {
280
+ className: "ssz-webTitle",
279
281
  children: formatMessage('登录/注册')
280
282
  }), /*#__PURE__*/_jsxs(Tabs, {
281
283
  activeKey: activeKey,
@@ -344,6 +346,7 @@ var Auth = function Auth(_ref) {
344
346
  roleType: roleType,
345
347
  postData: postData,
346
348
  productType: productType,
349
+ disabledFormItemLabel: disabledFormItemLabel,
347
350
  clientUniqueKeyList: clientUniqueKeyList,
348
351
  accountRegDisabled: !currentLoginTypeList.includes('account-reg'),
349
352
  onSuccess: function onSuccess() {
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import React, { useState } from 'react';
3
3
  import LoginQr from "./qr";
4
4
  import Tool from "../lib/Tool";
5
- import { ConfigProvider } from "antd";
5
+ import { ConfigProvider } from 'antd';
6
6
  import getLanguage from "../lib/get-language";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  var Auth = function Auth(_ref) {
@@ -3,6 +3,7 @@ interface Props {
3
3
  env?: Global.Env;
4
4
  productType: string;
5
5
  apiUrl?: string;
6
+ disabledFormItemLabel?: boolean;
6
7
  roleType?: UserAuth.RoleType;
7
8
  clientUniqueKeyList: string[];
8
9
  activeKeyDefault?: 'login' | 'reg' | string;
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import React, { useState } from 'react';
3
- import { Tabs, Radio } from "antd";
3
+ import { Tabs, Radio } from 'antd';
4
4
  import { UserAddOutlined, UserOutlined } from "@ant-design/icons";
5
5
  import Reg from "./reg";
6
6
  import styles from "./login-reg.css";
@@ -15,6 +15,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
15
15
  roleType = _ref.roleType,
16
16
  postData = _ref.postData,
17
17
  clientUniqueKeyList = _ref.clientUniqueKeyList,
18
+ disabledFormItemLabel = _ref.disabledFormItemLabel,
18
19
  _ref$activeKeyDefault = _ref.activeKeyDefault,
19
20
  activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
20
21
  accountRegDisabled = _ref.accountRegDisabled,
@@ -52,6 +53,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
52
53
  children: /*#__PURE__*/_jsx(AuthLogin, {
53
54
  roleType: roleType,
54
55
  env: env,
56
+ disabledFormItemLabel: disabledFormItemLabel,
55
57
  apiUrl: apiUrl,
56
58
  postData: postData,
57
59
  productType: productType,
@@ -66,6 +68,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
66
68
  env: env,
67
69
  roleType: roleType,
68
70
  productType: productType,
71
+ disabledFormItemLabel: disabledFormItemLabel,
69
72
  postData: postData,
70
73
  clientUniqueKeyList: clientUniqueKeyList,
71
74
  onSuccess: function onSuccess() {
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import './login.less';
2
3
  interface Props {
3
4
  env?: Global.Env;
4
5
  apiUrl?: string;
6
+ disabledFormItemLabel?: boolean;
5
7
  postData?: {
6
8
  [name: string]: any;
7
9
  };
@@ -7,8 +7,7 @@ import { LockOutlined, UserOutlined, EyeTwoTone, EyeInvisibleOutlined } from '@a
7
7
  import { Input, Button, Form } from 'antd';
8
8
  import Tool from "../lib/Tool";
9
9
  import { useRequest } from '@umijs/hooks';
10
-
11
- // import styles from "./reg.scss" ;
10
+ import "./login.less";
12
11
  import * as AuthController from "../service/api/AuthController";
13
12
  import AuthUserOffline from "./user-offline";
14
13
  import formatMessage from "../lib/formatMessage";
@@ -30,6 +29,7 @@ var AuthReg = function AuthReg(_ref) {
30
29
  roleType = _ref.roleType,
31
30
  productType = _ref.productType,
32
31
  postData = _ref.postData,
32
+ disabledFormItemLabel = _ref.disabledFormItemLabel,
33
33
  clientUniqueKeyList = _ref.clientUniqueKeyList,
34
34
  _ref$onSuccess = _ref.onSuccess,
35
35
  onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
@@ -117,7 +117,7 @@ var AuthReg = function AuthReg(_ref) {
117
117
  disabled: loading,
118
118
  autoComplete: "off",
119
119
  children: [/*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({
120
- label: formatMessage('手机号码')
120
+ label: disabledFormItemLabel ? undefined : formatMessage('手机号码')
121
121
  }, formItemLayout), {}, {
122
122
  name: "accountName",
123
123
  rules: [{
@@ -139,7 +139,7 @@ var AuthReg = function AuthReg(_ref) {
139
139
  })
140
140
  })
141
141
  })), /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, formItemLayout), {}, {
142
- label: formatMessage('密码'),
142
+ label: disabledFormItemLabel ? undefined : formatMessage('密码'),
143
143
  name: "password",
144
144
  rules: [{
145
145
  required: true,
@@ -165,7 +165,8 @@ var AuthReg = function AuthReg(_ref) {
165
165
  return visible ? /*#__PURE__*/_jsx(EyeTwoTone, {}) : /*#__PURE__*/_jsx(EyeInvisibleOutlined, {});
166
166
  }
167
167
  })
168
- })), /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, tailFormItemLayout), {}, {
168
+ })), /*#__PURE__*/_jsx("div", {
169
+ className: "auth-submits",
169
170
  children: /*#__PURE__*/_jsx(Button, {
170
171
  type: "primary",
171
172
  loading: loading,
@@ -173,7 +174,7 @@ var AuthReg = function AuthReg(_ref) {
173
174
  icon: /*#__PURE__*/_jsx(UserOutlined, {}),
174
175
  children: formatMessage('登录')
175
176
  })
176
- }))]
177
+ })]
177
178
  })
178
179
  });
179
180
  };
@@ -0,0 +1,7 @@
1
+ .authClientLogin {
2
+
3
+ .auth-submits {
4
+ text-align: center;
5
+ }
6
+
7
+ }
@@ -2,7 +2,6 @@
2
2
  declare const _default: {
3
3
  AuthQrLogin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  LoginForm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- WebTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
5
  WeQrUrlBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
6
  };
8
7
  export default _default;
@@ -3,17 +3,13 @@ export default {
3
3
  AuthQrLogin: styled.div.withConfig({
4
4
  displayName: "AuthQrLogin",
5
5
  componentId: "component-sanzhizhou__sc-55ened-0"
6
- })(["position:relative;.ant-tabs-tab-btn{.anticon{margin-right:6px;}}.weQrUrl{position:absolute;left:50%;transform:translateX(-50%);}.qr{position:relative;display:block;margin:12px auto 0;width:230px;height:230px;background-repeat:no-repeat;background-size:cover;background-position:center;&.qrAlipay{border:3px solid #1677ff;}.reTry{position:absolute;z-index:100;left:0;top:0;width:100%;font-size:80px;background-color:rgba( 255,255,255,0.95 );text-align:center;line-height:210px;height:100%;a{display:block;}}}.alt{padding:10px 0 0;color:#999;text-align:center;}.altWeb{padding:16px 0 0;max-width:300px;margin:0 auto;.titles{text-align:center;font-weight:bold;}ul{margin:0 10px;}}.percent{width:100%;position:absolute;overflow:hidden;left:0;bottom:0;.warp{height:4px;background-color:#1677ff;transition:all 1.6s ease-in-out;-webkit-transition:all 1.6s ease-in-out;}}.callWechat{position:absolute;left:6px;bottom:6px;background:#F6F6F6;width:4px;height:4px;}.callAccount{position:absolute;right:6px;bottom:6px;background:#F6F6F6;width:4px;height:4px;}"]),
6
+ })(["position:relative;.ant-tabs-tab-btn{.anticon{margin-right:6px;}}.weQrUrl{position:absolute;left:50%;transform:translateX(-50%);}.qr{position:relative;display:block;margin:12px auto 0;width:230px;height:230px;background-repeat:no-repeat;background-size:cover;background-position:center;&.qrAlipay{border:3px solid #1677ff;}.reTry{position:absolute;z-index:100;left:0;top:0;width:100%;font-size:80px;background-color:rgba( 255,255,255,0.95 );text-align:center;line-height:210px;height:100%;a{display:block;}}}.alt{padding:10px 0 0;color:#999;text-align:center;}.altWeb{padding:16px 0 0;max-width:300px;margin:0 auto;.titles{text-align:center;font-weight:bold;}ul{margin:0 10px;}}.percent{width:100%;position:absolute;overflow:hidden;left:0;bottom:0;.warp{height:4px;background-color:#1677ff;transition:all 1.6s ease-in-out;-webkit-transition:all 1.6s ease-in-out;}}.callWechat{position:absolute;left:6px;bottom:6px;background:#F6F6F6;width:4px;height:4px;}.callAccount{position:absolute;right:6px;bottom:6px;background:#F6F6F6;width:4px;height:4px;}.ssz-webTitle{font-weight:normal;font-size:26px;text-align:center;padding:6px 0 0 0;line-height:1em;span{display:inline-block;padding-left:5px;font-weight:lighter;font-size:16px;}}"]),
7
7
  LoginForm: styled.div.withConfig({
8
8
  displayName: "LoginForm",
9
9
  componentId: "component-sanzhizhou__sc-55ened-1"
10
10
  })(["margin:0 auto;padding:12px 16px 6px 16px;background-color:rgba(255,255,255,0.9 );border-radius:6px;"]),
11
- WebTitle: styled.div.withConfig({
12
- displayName: "WebTitle",
13
- componentId: "component-sanzhizhou__sc-55ened-2"
14
- })(["font-weight:normal;font-size:26px;text-align:center;padding:6px 0 0 0;line-height:1em;span{display:inline-block;padding-left:5px;font-weight:lighter;font-size:16px;}"]),
15
11
  WeQrUrlBox: styled.div.withConfig({
16
12
  displayName: "WeQrUrlBox",
17
- componentId: "component-sanzhizhou__sc-55ened-3"
13
+ componentId: "component-sanzhizhou__sc-55ened-2"
18
14
  })(["min-height:240px !important;"])
19
15
  };
@@ -259,7 +259,8 @@ var LoginQr = function LoginQr(_ref) {
259
259
  }, []);
260
260
  return /*#__PURE__*/_jsx(styles.AuthQrLogin, {
261
261
  children: /*#__PURE__*/_jsxs(styles.LoginForm, {
262
- children: [/*#__PURE__*/_jsx(styles.WebTitle, {
262
+ children: [/*#__PURE__*/_jsx("div", {
263
+ className: "ssz-webTitle",
263
264
  children: /*#__PURE__*/_jsx("span", {
264
265
  children: formatMessage('登录/注册')
265
266
  })
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+ import './reg.less';
2
3
  interface Props {
3
4
  env?: Global.Env;
4
5
  roleType?: UserAuth.RoleType;
5
6
  productType: string;
7
+ disabledFormItemLabel?: boolean;
6
8
  postData?: {
7
9
  [name: string]: any;
8
10
  };
@@ -6,6 +6,7 @@ import React from 'react';
6
6
  import { LockOutlined, UserOutlined, EyeTwoTone, EyeInvisibleOutlined } from '@ant-design/icons';
7
7
  import { Input, Button, Form } from 'antd';
8
8
  import Tool from "../lib/Tool";
9
+ import "./reg.less";
9
10
  import { useRequest } from "@umijs/hooks";
10
11
  import * as AuthController from "../service/api/AuthController";
11
12
  import formatMessage from "../lib/formatMessage";
@@ -16,15 +17,11 @@ var formItemLayout = {
16
17
  span: 8
17
18
  }
18
19
  };
19
- var tailFormItemLayout = {
20
- wrapperCol: {
21
- offset: formItemLayout.labelCol.span
22
- }
23
- };
24
20
  var Reg = function Reg(_ref) {
25
21
  var env = _ref.env,
26
22
  roleType = _ref.roleType,
27
23
  productType = _ref.productType,
24
+ disabledFormItemLabel = _ref.disabledFormItemLabel,
28
25
  postData = _ref.postData,
29
26
  clientUniqueKeyList = _ref.clientUniqueKeyList,
30
27
  _ref$onSuccess = _ref.onSuccess,
@@ -87,7 +84,7 @@ var Reg = function Reg(_ref) {
87
84
  onFinish: onFinish,
88
85
  autoComplete: "off",
89
86
  children: [/*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({
90
- label: formatMessage('手机号码')
87
+ label: disabledFormItemLabel ? undefined : formatMessage('手机号码')
91
88
  }, formItemLayout), {}, {
92
89
  name: "accountName",
93
90
  rules: [{
@@ -106,7 +103,7 @@ var Reg = function Reg(_ref) {
106
103
  })
107
104
  })
108
105
  })), /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, formItemLayout), {}, {
109
- label: formatMessage('密码'),
106
+ label: disabledFormItemLabel ? undefined : formatMessage('密码'),
110
107
  name: "password",
111
108
  rules: [{
112
109
  required: true,
@@ -133,7 +130,7 @@ var Reg = function Reg(_ref) {
133
130
  }
134
131
  })
135
132
  })), /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, formItemLayout), {}, {
136
- label: formatMessage('确认密码'),
133
+ label: disabledFormItemLabel ? undefined : formatMessage('确认密码'),
137
134
  name: "inviteId",
138
135
  rules: [{
139
136
  required: true,
@@ -156,17 +153,16 @@ var Reg = function Reg(_ref) {
156
153
  }),
157
154
  placeholder: formatMessage('再次密码')
158
155
  })
159
- })), /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, tailFormItemLayout), {}, {
160
- children: /*#__PURE__*/_jsx("div", {
161
- children: /*#__PURE__*/_jsx(Button, {
162
- type: "primary",
163
- loading: loading,
164
- htmlType: "submit",
165
- icon: /*#__PURE__*/_jsx(UserOutlined, {}),
166
- children: formatMessage('注册')
167
- })
156
+ })), /*#__PURE__*/_jsx("div", {
157
+ className: "auth-submits",
158
+ children: /*#__PURE__*/_jsx(Button, {
159
+ type: "primary",
160
+ loading: loading,
161
+ htmlType: "submit",
162
+ icon: /*#__PURE__*/_jsx(UserOutlined, {}),
163
+ children: formatMessage('注册')
168
164
  })
169
- }))]
165
+ })]
170
166
  })
171
167
  });
172
168
  };
@@ -0,0 +1,7 @@
1
+ .authClientReg {
2
+
3
+ .auth-submits {
4
+ text-align: center;
5
+ }
6
+
7
+ }
package/dist/Buy/qr.js CHANGED
@@ -28,26 +28,23 @@ var VipQr = function VipQr(_ref) {
28
28
  payMethod = _ref$payMethod === void 0 ? ['wepay', 'alipay'] : _ref$payMethod,
29
29
  _ref$onHandlePaySucce = _ref.onHandlePaySuccess,
30
30
  onHandlePaySuccess = _ref$onHandlePaySucce === void 0 ? function () {} : _ref$onHandlePaySucce;
31
- var _useState = useState(Tool.getLocalUserInfo()),
32
- _useState2 = _slicedToArray(_useState, 1),
33
- userInfo = _useState2[0];
34
- var _useState3 = useState(payMethod === null || payMethod === void 0 ? void 0 : payMethod[0]),
31
+ var _useState = useState(payMethod === null || payMethod === void 0 ? void 0 : payMethod[0]),
32
+ _useState2 = _slicedToArray(_useState, 2),
33
+ payChannel = _useState2[0],
34
+ setPayChannel = _useState2[1];
35
+ var _useState3 = useState(false),
35
36
  _useState4 = _slicedToArray(_useState3, 2),
36
- payChannel = _useState4[0],
37
- setPayChannel = _useState4[1];
38
- var _useState5 = useState(false),
39
- _useState6 = _slicedToArray(_useState5, 2),
40
- payResult = _useState6[0],
41
- setPayResult = _useState6[1];
42
- var _useState7 = useState({
37
+ payResult = _useState4[0],
38
+ setPayResult = _useState4[1];
39
+ var _useState5 = useState({
43
40
  codeUrl: '',
44
41
  mWebUrl: '',
45
42
  payChannel: payChannel
46
43
  }),
47
- _useState8 = _slicedToArray(_useState7, 2),
48
- orderPayInfo = _useState8[0],
49
- setOrderPayInfo = _useState8[1];
50
- var _useState9 = useState({
44
+ _useState6 = _slicedToArray(_useState5, 2),
45
+ orderPayInfo = _useState6[0],
46
+ setOrderPayInfo = _useState6[1];
47
+ var _useState7 = useState({
51
48
  wepay: {
52
49
  message: '',
53
50
  qrUrl: ''
@@ -57,10 +54,10 @@ var VipQr = function VipQr(_ref) {
57
54
  qrUrl: ''
58
55
  }
59
56
  }),
60
- _useState10 = _slicedToArray(_useState9, 2),
61
- payOrderInfo = _useState10[0],
62
- setPayOrderInfo = _useState10[1];
63
- var _useState11 = useState({
57
+ _useState8 = _slicedToArray(_useState7, 2),
58
+ payOrderInfo = _useState8[0],
59
+ setPayOrderInfo = _useState8[1];
60
+ var _useState9 = useState({
64
61
  id: 0,
65
62
  marketPrice: 0,
66
63
  month: 0,
@@ -73,9 +70,9 @@ var VipQr = function VipQr(_ref) {
73
70
  alt: '',
74
71
  recommend: 0
75
72
  }),
76
- _useState12 = _slicedToArray(_useState11, 2),
77
- detailData = _useState12[0],
78
- setDetailData = _useState12[1];
73
+ _useState10 = _slicedToArray(_useState9, 2),
74
+ detailData = _useState10[0],
75
+ setDetailData = _useState10[1];
79
76
  // 允许帮别人支付,只认码; 不认支付的小程序
80
77
 
81
78
  var _useRequest = useRequest(function () {
@@ -260,10 +257,10 @@ var VipQr = function VipQr(_ref) {
260
257
  });
261
258
  return itemsTabs;
262
259
  };
263
- var _useState13 = useState(getItemsTabs()),
264
- _useState14 = _slicedToArray(_useState13, 2),
265
- itemsTabs = _useState14[0],
266
- setItemsTabs = _useState14[1];
260
+ var _useState11 = useState(getItemsTabs()),
261
+ _useState12 = _slicedToArray(_useState11, 2),
262
+ itemsTabs = _useState12[0],
263
+ setItemsTabs = _useState12[1];
267
264
  var onInit = function onInit() {
268
265
  // payMethod?.forEach( payMethod => {
269
266
  // const itemData = PayMethodList[ payMethod ];
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import styles from "./trial-member.css";
3
3
  import { useRequest } from "@umijs/hooks";
4
4
  import * as UserVipController from "../service/api/UserVipController";
5
- import { Button, Result } from "antd";
5
+ import { Button, Result } from 'antd';
6
6
  import PageContentWarp from "../UI/PageContentWarp";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  var BuyTrialMember = function BuyTrialMember(_ref) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Tooltip } from "antd";
2
+ import { Tooltip } from 'antd';
3
3
  import styles from "./FileSize.css";
4
4
  import { Fragment as _Fragment } from "react/jsx-runtime";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import styles from "./index.css";
2
2
  import React from "react";
3
3
  import moneySimple from "../../lib/moneySimple";
4
- import { Tooltip } from "antd";
4
+ import { Tooltip } from 'antd';
5
5
  import formatMessage from "../../lib/formatMessage";
6
6
  import { Fragment as _Fragment } from "react/jsx-runtime";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import "./PageContentWarp.less";
3
3
  import LoadError from "./LoadError";
4
4
  import { LoadingOutlined } from '@ant-design/icons';
5
- import { Space } from "antd";
5
+ import { Space } from 'antd';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import styles from "./duration.css";
3
3
  import React, { useEffect, useState } from "react";
4
4
  import Tool from "../lib/Tool";
5
- import { Tooltip } from "antd";
5
+ import { Tooltip } from 'antd';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  var Duration = function Duration(_ref) {
@@ -45,7 +45,7 @@ var TextInput = function TextInput(_ref) {
45
45
  }
46
46
  };
47
47
  var textAreaProp = {
48
- addonAfter: /*#__PURE__*/_jsx("a", {
48
+ suffix: /*#__PURE__*/_jsx("a", {
49
49
  onClick: onPost,
50
50
  children: /*#__PURE__*/_jsx(CheckOutlined, {})
51
51
  })
@@ -86,7 +86,7 @@ var TextInput = function TextInput(_ref) {
86
86
  onChange: function onChange(e) {
87
87
  return onInput(e.target.value);
88
88
  },
89
- addonAfter: /*#__PURE__*/_jsx("a", {
89
+ suffix: /*#__PURE__*/_jsx("a", {
90
90
  onClick: onPost,
91
91
  children: /*#__PURE__*/_jsx(CheckOutlined, {})
92
92
  }),
@@ -5,7 +5,7 @@ import { useRequest } from "@umijs/hooks";
5
5
  import React, { useState } from "react";
6
6
  import styles from "./index.css";
7
7
  import { Buy } from "./..";
8
- import { Button, ConfigProvider, Table } from "antd";
8
+ import { Button, ConfigProvider, Table } from 'antd';
9
9
  import { CheckCircleFilled, CloseCircleFilled, ShoppingCartOutlined, XFilled } from "@ant-design/icons";
10
10
  import Tool from "../lib/Tool";
11
11
  import PageContentWarp from "../UI/PageContentWarp";
@@ -60,7 +60,7 @@ var UserProfileVipCard = function UserProfileVipCard(_ref) {
60
60
  message: '类似:AI-AAAA-BBBB-CCCC'
61
61
  }],
62
62
  children: /*#__PURE__*/_jsx(Input, {
63
- addonAfter: /*#__PURE__*/_jsx(Button, {
63
+ suffix: /*#__PURE__*/_jsx(Button, {
64
64
  htmlType: "submit",
65
65
  type: "link",
66
66
  icon: /*#__PURE__*/_jsx(CrownOutlined, {}),
@@ -2,7 +2,7 @@ import fileSelect from "./fileSelect";
2
2
  import folderOpen from "./folderOpen";
3
3
  import folderSelect from "./folderSelect";
4
4
  import openInFolder from "./openInFolder";
5
- import { Button, Space } from "antd";
5
+ import { Button, Space } from 'antd';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  var Base = function Base() {
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import React, { useEffect, useState } from 'react';
5
5
  import Tool from "../lib/Tool";
6
6
  import "./file-select.less";
7
- import { Button, Input, Space } from "antd";
7
+ import { Button, Input, Space } from 'antd';
8
8
  import { FolderOutlined } from "@ant-design/icons";
9
9
  import { fileSelect } from "./..";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -132,7 +132,7 @@ var FileSelect = function FileSelect(_ref) {
132
132
  value: /^\d+$/g.test(filePath) ? '[已选择 - 文件空间文件]' : filePath,
133
133
  allowClear: allowClear,
134
134
  disabled: disabled,
135
- addonBefore: label,
135
+ prefix: label,
136
136
  placeholder: placeholder,
137
137
  size: size,
138
138
  onChange: function onChange(e) {
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import React, { useEffect, useState } from 'react';
5
5
  import Tool from "../lib/Tool";
6
- import { Button, Input, Space } from "antd";
6
+ import { Button, Input, Space } from 'antd';
7
7
  import { FolderOpenOutlined, FolderOutlined } from "@ant-design/icons";
8
8
  import { folderSelect, folderOpen } from "./..";
9
9
  import folderCreate from "../base/folderCreate";
@@ -179,7 +179,7 @@ var FolderSelect = function FolderSelect(_ref) {
179
179
  value: /^\d+$/g.test(folderPath) ? '[已选择 - 文件空间文件夹]' : folderPath,
180
180
  allowClear: allowClear,
181
181
  disabled: disabled,
182
- addonBefore: label,
182
+ prefix: label,
183
183
  placeholder: placeholder,
184
184
  size: size,
185
185
  onChange: function onChange(e) {
@@ -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: "info" | "error" | "warning" | "success", message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
165
+ notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
166
166
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
167
167
  notificationError(message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
168
168
  notificationWarning(message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
@@ -1,4 +1,4 @@
1
- import { Tooltip } from "antd";
1
+ import { Tooltip } from 'antd';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  var moneySimple = function moneySimple() {
4
4
  var money = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -135,7 +135,7 @@ var SavePath = function SavePath(_ref) {
135
135
  ,
136
136
  allowClear: true,
137
137
  disabled: disabled,
138
- addonBefore: label,
138
+ prefix: label,
139
139
  placeholder: placeholder,
140
140
  onChange: function onChange(e) {
141
141
  var inputPath = e.target.value;
@@ -45,7 +45,7 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
45
45
  return /*#__PURE__*/_jsxs("div", {
46
46
  className: "ssz-payQr",
47
47
  children: [/*#__PURE__*/_jsxs(Divider, {
48
- orientation: "center",
48
+ titlePlacement: "center",
49
49
  className: "ssz-altBox",
50
50
  children: ["\u626B\u7801\u652F\u4ED8", /*#__PURE__*/_jsxs("span", {
51
51
  className: "ssz-qr-moneyAmountBox",
@@ -1,5 +1,5 @@
1
1
  import PayChannelList from "./payChannelList";
2
- import { Radio, Tag } from "antd";
2
+ import { Radio, Tag } from 'antd';
3
3
  import formatMessage from "../lib/formatMessage";
4
4
  import React from "react";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -76,7 +76,7 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
76
76
  return /*#__PURE__*/_jsxs("div", {
77
77
  className: "ssz-payQr",
78
78
  children: [/*#__PURE__*/_jsxs(Divider, {
79
- orientation: "center",
79
+ titlePlacement: "center",
80
80
  className: "ssz-altBox",
81
81
  children: [formatMessage('扫码支付'), /*#__PURE__*/_jsxs("span", {
82
82
  className: "ssz-qr-moneyAmountBox",
package/dist/pay/qr.js CHANGED
@@ -126,7 +126,7 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
126
126
  return /*#__PURE__*/_jsxs("div", {
127
127
  className: "ssz-payQr",
128
128
  children: [/*#__PURE__*/_jsxs(Divider, {
129
- orientation: "center",
129
+ titlePlacement: "center",
130
130
  className: "ssz-altBox",
131
131
  children: [formatMessage('扫码支付'), /*#__PURE__*/_jsxs("span", {
132
132
  className: "ssz-qr-moneyAmountBox",
@@ -5,7 +5,7 @@ import "./recharge-rule.less";
5
5
  import PageContentWarp from "../UI/PageContentWarp";
6
6
  import { useRequest } from "@umijs/hooks";
7
7
  import * as RechargeRuleController from "../service/api/RechargeRuleController";
8
- import { Card, Form } from "antd";
8
+ import { Card, Form } from 'antd';
9
9
  import Money from "../UI/Money";
10
10
  import formatMessage from "../lib/formatMessage";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -144,10 +144,10 @@ var PayRecharge = function PayRecharge(_ref) {
144
144
  })]
145
145
  }),
146
146
  children: /*#__PURE__*/_jsx(InputNumber, {
147
- addonBefore: /*#__PURE__*/_jsx(_Fragment, {
147
+ prefix: /*#__PURE__*/_jsx(_Fragment, {
148
148
  children: "\xA5"
149
149
  }),
150
- addonAfter: /*#__PURE__*/_jsx(PayRechargeMoneyAmountAlt, {
150
+ suffix: /*#__PURE__*/_jsx(PayRechargeMoneyAmountAlt, {
151
151
  moneyAmount: formData.moneyAmount,
152
152
  rechargeRuleList: rechargeRuleList
153
153
  }),
package/dist/pay/vip.js CHANGED
@@ -128,7 +128,7 @@ var PayVip = function PayVip(_ref) {
128
128
  style: {
129
129
  width: 160
130
130
  },
131
- addonAfter: "\u4E2A",
131
+ suffix: "\u4E2A",
132
132
  precision: 0,
133
133
  step: 1,
134
134
  min: minProductCount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.0.23",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "peerDependencies": {
43
- "antd": "^5.28",
43
+ "antd": "^6.x",
44
44
  "react": ">=18.x",
45
45
  "react-dom": ">=18.x"
46
46
  },
@@ -65,8 +65,8 @@
65
65
  "stylelint": "^14.9.1"
66
66
  },
67
67
  "dependencies": {
68
- "@ant-design/icons": "^5.x",
69
- "@ant-design/plots": "^2.3.3",
68
+ "@ant-design/icons": "^6.x",
69
+ "@ant-design/plots": "^2.6.8",
70
70
  "@babel/runtime": "^7.23.6",
71
71
  "@umijs/hooks": "^1.9.3",
72
72
  "dayjs": "^1.11.12",
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- AuthClientLogin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
- };
5
- export default _default;
@@ -1,7 +0,0 @@
1
- import styled from 'styled-components';
2
- export default {
3
- AuthClientLogin: styled.div.withConfig({
4
- displayName: "AuthClientLogin",
5
- componentId: "component-sanzhizhou__sc-edoyoj-0"
6
- })(["background:no-repeat left bottom #FFF;background-size:cover;.webTitle{font-weight:normal;font-size:22px;text-align:right;margin:0 0 -10px 0;line-height:1em;span{display:inline-block;padding-left:5px;font-weight:lighter;font-size:16px;};}.loginMain{margin:0 auto 20px;.loginForm{margin:0 auto;padding:0 0 5px 0;background-color:rgba(255,255,255,0.75 );border-radius:6px;}}.storePass{cursor:pointer;}.login-success{position:relative;cursor:pointer;width:220px;height:220px;margin:10px auto;background-color:#EEE;font-size:40px;color:#999;text-align:center;.anticon{line-height:1em;color:#52c41a;}.icon-warp{position:relative;z-index:10;opacity:1;margin-top:70px;width:80px;height:80px;padding:10px;background-color:#FFF;display:inline-block;border-radius:100px;}}.otherInfo{position:relative;.forgetPass{position:absolute;right:0;top:0;padding:6px 0 0 0;font-size:13px;}}"])
7
- };