component-sanzhizhou 1.0.19 → 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.
- 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/index.d.ts +1 -0
- package/dist/Buy/index.js +2 -0
- package/dist/Buy/qr.d.ts +1 -0
- package/dist/Buy/qr.js +25 -26
- package/dist/Buy/trial-member.js +1 -1
- package/dist/UI/FileSize.js +1 -1
- package/dist/UI/Money/index.d.ts +1 -1
- package/dist/UI/Money/index.js +10 -5
- 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 +2 -1
- package/dist/active-code/index.js +1 -1
- package/dist/base/index.js +1 -1
- package/dist/component/file-select.js +2 -2
- package/dist/component/folder-select.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -3
- package/dist/lib/moneySimple.js +1 -1
- package/dist/lib/save-path.js +1 -1
- package/dist/locales/zh-CN.json +3 -1
- package/dist/pay/alipay-qr.js +1 -1
- package/dist/pay/pay-channel.d.ts +8 -0
- package/dist/pay/pay-channel.js +43 -0
- package/dist/pay/payChannelList.d.ts +2 -0
- package/dist/pay/payChannelList.js +30 -0
- package/dist/pay/qr-wechat.js +1 -1
- package/dist/pay/qr.d.ts +1 -3
- package/dist/pay/qr.js +45 -53
- package/dist/pay/recharge-rule.js +1 -1
- package/dist/pay/recharge.js +17 -38
- package/dist/pay/vip.d.ts +20 -0
- package/dist/pay/vip.js +249 -0
- package/dist/pay/vip.less +29 -0
- package/dist/service/api/WechatMinAppController.d.ts +1 -5
- package/dist/types/Pay.d.ts +6 -1
- package/dist/types/Trade.d.ts +5 -0
- package/dist/types/WechatMinApp.d.ts +7 -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/index.d.ts
CHANGED
package/dist/Buy/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var Buy = function Buy(_ref) {
|
|
|
17
17
|
_ref$productCount = _ref.productCount,
|
|
18
18
|
productCount = _ref$productCount === void 0 ? 1 : _ref$productCount,
|
|
19
19
|
payMethod = _ref.payMethod,
|
|
20
|
+
couponCode = _ref.couponCode,
|
|
20
21
|
_ref$disabled = _ref.disabled,
|
|
21
22
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
22
23
|
showPrice = _ref.showPrice,
|
|
@@ -99,6 +100,7 @@ var Buy = function Buy(_ref) {
|
|
|
99
100
|
vipId: vipId,
|
|
100
101
|
productCount: productCount,
|
|
101
102
|
payMethod: payMethod,
|
|
103
|
+
couponCode: couponCode,
|
|
102
104
|
onHandlePaySuccess: function onHandlePaySuccess() {
|
|
103
105
|
onBuySuccess();
|
|
104
106
|
dialog.destroy();
|
package/dist/Buy/qr.d.ts
CHANGED
package/dist/Buy/qr.js
CHANGED
|
@@ -23,30 +23,28 @@ var VipQr = function VipQr(_ref) {
|
|
|
23
23
|
productCount = _ref$productCount === void 0 ? 1 : _ref$productCount,
|
|
24
24
|
_ref$vipId = _ref.vipId,
|
|
25
25
|
vipId = _ref$vipId === void 0 ? 0 : _ref$vipId,
|
|
26
|
+
couponCode = _ref.couponCode,
|
|
26
27
|
_ref$payMethod = _ref.payMethod,
|
|
27
28
|
payMethod = _ref$payMethod === void 0 ? ['wepay', 'alipay'] : _ref$payMethod,
|
|
28
29
|
_ref$onHandlePaySucce = _ref.onHandlePaySuccess,
|
|
29
30
|
onHandlePaySuccess = _ref$onHandlePaySucce === void 0 ? function () {} : _ref$onHandlePaySucce;
|
|
30
|
-
var _useState = useState(
|
|
31
|
-
_useState2 = _slicedToArray(_useState,
|
|
32
|
-
|
|
33
|
-
|
|
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),
|
|
34
36
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var _useState5 = useState(
|
|
38
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
39
|
-
payResult = _useState6[0],
|
|
40
|
-
setPayResult = _useState6[1];
|
|
41
|
-
var _useState7 = useState({
|
|
37
|
+
payResult = _useState4[0],
|
|
38
|
+
setPayResult = _useState4[1];
|
|
39
|
+
var _useState5 = useState({
|
|
42
40
|
codeUrl: '',
|
|
43
41
|
mWebUrl: '',
|
|
44
42
|
payChannel: payChannel
|
|
45
43
|
}),
|
|
46
|
-
|
|
47
|
-
orderPayInfo =
|
|
48
|
-
setOrderPayInfo =
|
|
49
|
-
var
|
|
44
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
45
|
+
orderPayInfo = _useState6[0],
|
|
46
|
+
setOrderPayInfo = _useState6[1];
|
|
47
|
+
var _useState7 = useState({
|
|
50
48
|
wepay: {
|
|
51
49
|
message: '',
|
|
52
50
|
qrUrl: ''
|
|
@@ -56,10 +54,10 @@ var VipQr = function VipQr(_ref) {
|
|
|
56
54
|
qrUrl: ''
|
|
57
55
|
}
|
|
58
56
|
}),
|
|
59
|
-
|
|
60
|
-
payOrderInfo =
|
|
61
|
-
setPayOrderInfo =
|
|
62
|
-
var
|
|
57
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
58
|
+
payOrderInfo = _useState8[0],
|
|
59
|
+
setPayOrderInfo = _useState8[1];
|
|
60
|
+
var _useState9 = useState({
|
|
63
61
|
id: 0,
|
|
64
62
|
marketPrice: 0,
|
|
65
63
|
month: 0,
|
|
@@ -72,14 +70,15 @@ var VipQr = function VipQr(_ref) {
|
|
|
72
70
|
alt: '',
|
|
73
71
|
recommend: 0
|
|
74
72
|
}),
|
|
75
|
-
|
|
76
|
-
detailData =
|
|
77
|
-
setDetailData =
|
|
73
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
74
|
+
detailData = _useState10[0],
|
|
75
|
+
setDetailData = _useState10[1];
|
|
78
76
|
// 允许帮别人支付,只认码; 不认支付的小程序
|
|
79
77
|
|
|
80
78
|
var _useRequest = useRequest(function () {
|
|
81
79
|
var channel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : payChannel;
|
|
82
80
|
return TradeController.create({
|
|
81
|
+
couponCode: couponCode,
|
|
83
82
|
productKind: productKind,
|
|
84
83
|
productTypeId: vipId,
|
|
85
84
|
productCount: productCount,
|
|
@@ -258,10 +257,10 @@ var VipQr = function VipQr(_ref) {
|
|
|
258
257
|
});
|
|
259
258
|
return itemsTabs;
|
|
260
259
|
};
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
itemsTabs =
|
|
264
|
-
setItemsTabs =
|
|
260
|
+
var _useState11 = useState(getItemsTabs()),
|
|
261
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
262
|
+
itemsTabs = _useState12[0],
|
|
263
|
+
setItemsTabs = _useState12[1];
|
|
265
264
|
var onInit = function onInit() {
|
|
266
265
|
// payMethod?.forEach( payMethod => {
|
|
267
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.d.ts
CHANGED
package/dist/UI/Money/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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
|
+
import formatMessage from "../../lib/formatMessage";
|
|
5
6
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -11,7 +12,7 @@ var Money = function Money(_ref) {
|
|
|
11
12
|
children: "\xA5"
|
|
12
13
|
}) : _ref$pre,
|
|
13
14
|
_ref$end = _ref.end,
|
|
14
|
-
end = _ref$end === void 0 ? '元' : _ref$end,
|
|
15
|
+
end = _ref$end === void 0 ? formatMessage('元') : _ref$end,
|
|
15
16
|
value = _ref.value,
|
|
16
17
|
_ref$precision = _ref.precision,
|
|
17
18
|
precision = _ref$precision === void 0 ? 2 : _ref$precision,
|
|
@@ -28,13 +29,17 @@ var Money = function Money(_ref) {
|
|
|
28
29
|
className: className,
|
|
29
30
|
children: [/*#__PURE__*/_jsx("span", {
|
|
30
31
|
className: "yen",
|
|
31
|
-
children:
|
|
32
|
+
children: /*#__PURE__*/_jsx("small", {
|
|
33
|
+
children: pre
|
|
34
|
+
})
|
|
32
35
|
}), /*#__PURE__*/_jsx("span", {
|
|
33
36
|
className: "value ".concat(value === 0 ? 'zero' : '', " "),
|
|
34
|
-
children: typeof value === 'number' ? disabledMoneySimple ? parseFloat(value.toFixed(precision)) : moneySimple(value, false, precision) :
|
|
37
|
+
children: typeof value === 'number' ? disabledMoneySimple ? parseFloat(value.toFixed(precision)) : moneySimple(value, false, precision) : value
|
|
35
38
|
}), /*#__PURE__*/_jsx("span", {
|
|
36
39
|
className: "yen",
|
|
37
|
-
children:
|
|
40
|
+
children: /*#__PURE__*/_jsx("small", {
|
|
41
|
+
children: end
|
|
42
|
+
})
|
|
38
43
|
})]
|
|
39
44
|
})
|
|
40
45
|
});
|
|
@@ -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";
|
|
@@ -372,6 +372,7 @@ var VipList = function VipList(_ref) {
|
|
|
372
372
|
productKind: "vip",
|
|
373
373
|
vipId: (item === null || item === void 0 ? void 0 : item.id) || 0,
|
|
374
374
|
productCount: 1,
|
|
375
|
+
couponCode: "",
|
|
375
376
|
payMethod: payMethod,
|
|
376
377
|
showPrice: item === null || item === void 0 ? void 0 : item.price,
|
|
377
378
|
onBuySuccess: onBuySuccess,
|
|
@@ -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() {
|
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
182
|
+
prefix: label,
|
|
183
183
|
placeholder: placeholder,
|
|
184
184
|
size: size,
|
|
185
185
|
onChange: function onChange(e) {
|
package/dist/index.d.ts
CHANGED
|
@@ -14,3 +14,6 @@ export { default as fileListContent } from './base/fileListContent';
|
|
|
14
14
|
export { default as fileList } from './base/fileList';
|
|
15
15
|
export { default as Ad } from './Ad';
|
|
16
16
|
export { default as PayRecharge } from './pay/recharge';
|
|
17
|
+
export { default as PayVip } from './pay/vip';
|
|
18
|
+
export { default as PayQr } from './pay/qr';
|
|
19
|
+
export { default as PayChannel } from './pay/pay-channel';
|