component-sanzhizhou 1.0.23 → 1.1.1
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 +1 -1
- package/dist/Auth/index.d.ts +1 -0
- package/dist/Auth/index.js +4 -1
- package/dist/AuthClient/index.js +1 -1
- package/dist/AuthClient/login-reg.d.ts +1 -0
- package/dist/AuthClient/login-reg.js +4 -1
- package/dist/AuthClient/login.d.ts +2 -0
- package/dist/AuthClient/login.js +7 -6
- package/dist/AuthClient/login.less +7 -0
- package/dist/AuthClient/qr/index.css.d.ts +0 -1
- package/dist/AuthClient/qr/index.css.js +2 -6
- package/dist/AuthClient/qr/index.js +2 -1
- package/dist/AuthClient/reg.d.ts +2 -0
- package/dist/AuthClient/reg.js +14 -18
- package/dist/AuthClient/reg.less +7 -0
- package/dist/Buy/qr.js +23 -26
- package/dist/Buy/trial-member.js +1 -1
- package/dist/UI/FileSize.js +1 -1
- package/dist/UI/Money/index.js +1 -1
- package/dist/UI/PageContentWarp.js +1 -1
- package/dist/UI/duration.js +1 -1
- package/dist/UI/text-input.js +2 -2
- package/dist/VipList/index.js +1 -1
- package/dist/active-code/index.js +1 -1
- package/dist/base/index.js +1 -1
- package/dist/collect-price/index.d.ts +9 -0
- package/dist/collect-price/index.js +48 -0
- package/dist/collect-price/index.less +23 -0
- package/dist/collect-price/list.d.ts +10 -0
- package/dist/collect-price/list.js +165 -0
- package/dist/collect-price/list.less +11 -0
- package/dist/component/file-select.js +2 -2
- package/dist/component/folder-select.js +2 -2
- package/dist/component/price-add/index.d.ts +12 -0
- package/dist/component/price-add/index.js +192 -0
- package/dist/component/price-add/index.less +27 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/moneySimple.js +1 -1
- package/dist/lib/save-path.js +1 -1
- package/dist/pay/alipay-qr.js +1 -1
- package/dist/pay/pay-channel.js +1 -1
- package/dist/pay/qr-wechat.js +1 -1
- package/dist/pay/qr.js +1 -1
- package/dist/pay/recharge-rule.js +1 -1
- package/dist/pay/recharge.js +2 -2
- package/dist/pay/vip.js +1 -1
- package/dist/types/CollectConfigPrice.d.ts +9 -0
- package/dist/types/CollectConfigPrice.js +1 -0
- package/dist/types/PriceAdd.d.ts +15 -0
- package/dist/types/PriceAdd.js +1 -0
- package/package.json +4 -4
- package/dist/AuthClient/login.css.d.ts +0 -5
- 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
|
|
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) {
|
package/dist/Auth/index.d.ts
CHANGED
package/dist/Auth/index.js
CHANGED
|
@@ -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(
|
|
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() {
|
package/dist/AuthClient/index.js
CHANGED
|
@@ -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
|
|
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) {
|
|
@@ -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
|
|
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() {
|
package/dist/AuthClient/login.js
CHANGED
|
@@ -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(
|
|
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
|
};
|
|
@@ -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-
|
|
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(
|
|
262
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
263
|
+
className: "ssz-webTitle",
|
|
263
264
|
children: /*#__PURE__*/_jsx("span", {
|
|
264
265
|
children: formatMessage('登录/注册')
|
|
265
266
|
})
|
package/dist/AuthClient/reg.d.ts
CHANGED
package/dist/AuthClient/reg.js
CHANGED
|
@@ -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(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
};
|
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(
|
|
32
|
-
_useState2 = _slicedToArray(_useState,
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
var _useState5 = useState(
|
|
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
|
-
|
|
48
|
-
orderPayInfo =
|
|
49
|
-
setOrderPayInfo =
|
|
50
|
-
var
|
|
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
|
-
|
|
61
|
-
payOrderInfo =
|
|
62
|
-
setPayOrderInfo =
|
|
63
|
-
var
|
|
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
|
-
|
|
77
|
-
detailData =
|
|
78
|
-
setDetailData =
|
|
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
|
|
264
|
-
|
|
265
|
-
itemsTabs =
|
|
266
|
-
setItemsTabs =
|
|
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 ];
|
package/dist/Buy/trial-member.js
CHANGED
|
@@ -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
|
|
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) {
|
package/dist/UI/FileSize.js
CHANGED
package/dist/UI/Money/index.js
CHANGED
|
@@ -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
|
|
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
|
|
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";
|
package/dist/UI/duration.js
CHANGED
|
@@ -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
|
|
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) {
|
package/dist/UI/text-input.js
CHANGED
|
@@ -45,7 +45,7 @@ var TextInput = function TextInput(_ref) {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
var textAreaProp = {
|
|
48
|
-
|
|
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
|
-
|
|
89
|
+
suffix: /*#__PURE__*/_jsx("a", {
|
|
90
90
|
onClick: onPost,
|
|
91
91
|
children: /*#__PURE__*/_jsx(CheckOutlined, {})
|
|
92
92
|
}),
|
package/dist/VipList/index.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
63
|
+
suffix: /*#__PURE__*/_jsx(Button, {
|
|
64
64
|
htmlType: "submit",
|
|
65
65
|
type: "link",
|
|
66
66
|
icon: /*#__PURE__*/_jsx(CrownOutlined, {}),
|
package/dist/base/index.js
CHANGED
|
@@ -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
|
|
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() {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import { CollectConfigPrice } from "../types/CollectConfigPrice";
|
|
4
|
+
interface Props {
|
|
5
|
+
collectConfigPrice: CollectConfigPrice.ConfigPrice;
|
|
6
|
+
onCollectConfigPrice: (collectConfig: CollectConfigPrice.ConfigPrice) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const CollectConfigPricePage: React.FC<Props>;
|
|
9
|
+
export default CollectConfigPricePage;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import "./index.less";
|
|
5
|
+
import CollectConfigPriceList from "./list";
|
|
6
|
+
import PageContentWarp from "../UI/PageContentWarp";
|
|
7
|
+
import PriceAdd from "../component/price-add";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var CollectConfigPricePage = function CollectConfigPricePage(_ref) {
|
|
11
|
+
var collectConfigPrice = _ref.collectConfigPrice,
|
|
12
|
+
onCollectConfigPrice = _ref.onCollectConfigPrice;
|
|
13
|
+
var FormItemSpan = 4;
|
|
14
|
+
|
|
15
|
+
// 局部操作,更快
|
|
16
|
+
var _useState = useState(_objectSpread({}, collectConfigPrice || {})),
|
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
+
autoConfigPrice = _useState2[0],
|
|
19
|
+
setAutoConfigPrice = _useState2[1];
|
|
20
|
+
var onAutoConfig = function onAutoConfig(autoConfigPrice) {
|
|
21
|
+
setAutoConfigPrice(_objectSpread({}, autoConfigPrice));
|
|
22
|
+
onCollectConfigPrice(autoConfigPrice);
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/_jsxs(PageContentWarp, {
|
|
25
|
+
className: "ssz-auto-config-price",
|
|
26
|
+
children: [/*#__PURE__*/_jsx(CollectConfigPriceList, {
|
|
27
|
+
FormItemSpan: FormItemSpan,
|
|
28
|
+
collectConfigPrice: autoConfigPrice,
|
|
29
|
+
onCollectConfigPrice: onAutoConfig
|
|
30
|
+
}), /*#__PURE__*/_jsx(PriceAdd, {
|
|
31
|
+
label: "\u515C\u5E95\u89C4\u5219",
|
|
32
|
+
FormItemSpan: FormItemSpan,
|
|
33
|
+
disabledReferenceList: ['average', 'lowest'],
|
|
34
|
+
priceAddData: {
|
|
35
|
+
reference: autoConfigPrice.reference,
|
|
36
|
+
workType: autoConfigPrice.workType,
|
|
37
|
+
ratioValue: autoConfigPrice.ratioValue
|
|
38
|
+
},
|
|
39
|
+
onPriceAddData: function onPriceAddData(e) {
|
|
40
|
+
autoConfigPrice.reference = e.reference;
|
|
41
|
+
autoConfigPrice.workType = e.workType;
|
|
42
|
+
autoConfigPrice.ratioValue = e.ratioValue;
|
|
43
|
+
onAutoConfig(autoConfigPrice);
|
|
44
|
+
}
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export default CollectConfigPricePage;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.sailfish-collect-config-price-point{
|
|
2
|
+
display: inline-block;
|
|
3
|
+
margin: 0 16px;
|
|
4
|
+
line-height: 32px;
|
|
5
|
+
font-size: 20px;
|
|
6
|
+
opacity: 0.35;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sailfish-collect-config-price-unit{
|
|
10
|
+
opacity: 0.35;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sailfish-collect-config-price-equal{
|
|
14
|
+
transform: rotate(90deg);
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
line-height: 30px;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sailfish-collect-config-price-label{
|
|
21
|
+
display: inline-block;
|
|
22
|
+
line-height: 32px;
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './list.less';
|
|
3
|
+
import { CollectConfigPrice } from "../types/CollectConfigPrice";
|
|
4
|
+
interface Props {
|
|
5
|
+
FormItemSpan: number;
|
|
6
|
+
collectConfigPrice: CollectConfigPrice.ConfigPrice;
|
|
7
|
+
onCollectConfigPrice: (collectConfig: CollectConfigPrice.ConfigPrice) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const CollectConfigPriceList: React.FC<Props>;
|
|
10
|
+
export default CollectConfigPriceList;
|