component-shipinlv 2.2.10 → 2.2.12
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/Auth/index.d.ts +3 -0
- package/dist/Auth/index.js +5 -1
- package/dist/AuthClient/login-reg.d.ts +3 -0
- package/dist/AuthClient/login-reg.js +3 -0
- package/dist/AuthClient/login.d.ts +3 -0
- package/dist/AuthClient/login.js +7 -3
- package/dist/AuthClient/reg.d.ts +3 -0
- package/dist/AuthClient/reg.js +6 -3
- package/dist/asset/image/platform/tiktok.png +0 -0
- package/package.json +1 -1
package/dist/Auth/index.d.ts
CHANGED
package/dist/Auth/index.js
CHANGED
@@ -30,6 +30,7 @@ var Auth = function Auth(_ref) {
|
|
30
30
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
31
31
|
loginTypeList = _ref.loginTypeList,
|
32
32
|
env = _ref.env,
|
33
|
+
postData = _ref.postData,
|
33
34
|
roleType = _ref.roleType,
|
34
35
|
_ref$domain = _ref.domain,
|
35
36
|
domain = _ref$domain === void 0 ? document.location.hostname : _ref$domain,
|
@@ -134,7 +135,9 @@ var Auth = function Auth(_ref) {
|
|
134
135
|
}));
|
135
136
|
onLoginSuccess();
|
136
137
|
Tool.event.run('login-success');
|
137
|
-
Tool.event.run("".concat(roleType || 'user', "-login-success"))
|
138
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"), _objectSpread(_objectSpread({}, userInfo), {}, {
|
139
|
+
isLogin: true
|
140
|
+
}));
|
138
141
|
Tool.toast('登录成功');
|
139
142
|
};
|
140
143
|
var _useRequest = useRequest(function () {
|
@@ -328,6 +331,7 @@ var Auth = function Auth(_ref) {
|
|
328
331
|
env: env,
|
329
332
|
apiUrl: apiUrl,
|
330
333
|
roleType: roleType,
|
334
|
+
postData: postData,
|
331
335
|
productType: productType,
|
332
336
|
clientUniqueKeyList: clientUniqueKeyList,
|
333
337
|
accountRegDisabled: !loginTypeList.includes('account-reg'),
|
@@ -12,6 +12,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
12
12
|
productType = _ref.productType,
|
13
13
|
apiUrl = _ref.apiUrl,
|
14
14
|
roleType = _ref.roleType,
|
15
|
+
postData = _ref.postData,
|
15
16
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
16
17
|
_ref$activeKeyDefault = _ref.activeKeyDefault,
|
17
18
|
activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
|
@@ -51,6 +52,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
51
52
|
roleType: roleType,
|
52
53
|
env: env,
|
53
54
|
apiUrl: apiUrl,
|
55
|
+
postData: postData,
|
54
56
|
productType: productType,
|
55
57
|
clientUniqueKeyList: clientUniqueKeyList,
|
56
58
|
onSuccess: function onSuccess() {
|
@@ -63,6 +65,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
63
65
|
env: env,
|
64
66
|
roleType: roleType,
|
65
67
|
productType: productType,
|
68
|
+
postData: postData,
|
66
69
|
clientUniqueKeyList: clientUniqueKeyList,
|
67
70
|
onSuccess: function onSuccess() {
|
68
71
|
return _onSuccess();
|
package/dist/AuthClient/login.js
CHANGED
@@ -48,6 +48,7 @@ var AuthReg = function AuthReg(_ref) {
|
|
48
48
|
apiUrl = _ref.apiUrl,
|
49
49
|
roleType = _ref.roleType,
|
50
50
|
productType = _ref.productType,
|
51
|
+
postData = _ref.postData,
|
51
52
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
52
53
|
_ref$onSuccess = _ref.onSuccess,
|
53
54
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
|
@@ -60,12 +61,13 @@ var AuthReg = function AuthReg(_ref) {
|
|
60
61
|
form = _Form$useForm2[0];
|
61
62
|
var _useRequest = useRequest(function (data) {
|
62
63
|
var unbind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
63
|
-
return AuthController.login(_objectSpread(_objectSpread({
|
64
|
+
return AuthController.login(_objectSpread(_objectSpread(_objectSpread({
|
64
65
|
productType: productType,
|
65
66
|
clientUniqueKeyList: clientUniqueKeyList,
|
66
67
|
from: "web"
|
67
68
|
}, data), {}, {
|
68
|
-
unbind: unbind
|
69
|
+
unbind: unbind
|
70
|
+
}, postData), {}, {
|
69
71
|
inviteUserId: Tool.getInviteUserId()
|
70
72
|
}), {
|
71
73
|
env: env,
|
@@ -104,7 +106,9 @@ var AuthReg = function AuthReg(_ref) {
|
|
104
106
|
}));
|
105
107
|
Tool.toast('登录成功');
|
106
108
|
Tool.event.run('user-info');
|
107
|
-
Tool.event.run("".concat(roleType || 'user', "-login-success"))
|
109
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"), _objectSpread(_objectSpread({}, data), {}, {
|
110
|
+
isLogin: true
|
111
|
+
}));
|
108
112
|
onSuccess();
|
109
113
|
};
|
110
114
|
var onFinish = /*#__PURE__*/function () {
|
package/dist/AuthClient/reg.d.ts
CHANGED
package/dist/AuthClient/reg.js
CHANGED
@@ -44,6 +44,7 @@ var Reg = function Reg(_ref) {
|
|
44
44
|
var env = _ref.env,
|
45
45
|
roleType = _ref.roleType,
|
46
46
|
productType = _ref.productType,
|
47
|
+
postData = _ref.postData,
|
47
48
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
48
49
|
_ref$onSuccess = _ref.onSuccess,
|
49
50
|
onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
|
@@ -51,10 +52,10 @@ var Reg = function Reg(_ref) {
|
|
51
52
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
52
53
|
form = _Form$useForm2[0];
|
53
54
|
var _useRequest = useRequest(function (data) {
|
54
|
-
return AuthController.reg(_objectSpread(_objectSpread({
|
55
|
+
return AuthController.reg(_objectSpread(_objectSpread(_objectSpread({
|
55
56
|
productType: productType,
|
56
57
|
clientUniqueKeyList: clientUniqueKeyList
|
57
|
-
}, data), {}, {
|
58
|
+
}, data), postData), {}, {
|
58
59
|
inviteUserId: Tool.getInviteUserId()
|
59
60
|
}), {
|
60
61
|
env: env
|
@@ -74,7 +75,9 @@ var Reg = function Reg(_ref) {
|
|
74
75
|
}));
|
75
76
|
Tool.toast('登录成功');
|
76
77
|
Tool.event.run('user-info');
|
77
|
-
Tool.event.run("".concat(roleType || 'user', "-login-success"))
|
78
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"), _objectSpread(_objectSpread({}, data), {}, {
|
79
|
+
isLogin: true
|
80
|
+
}));
|
78
81
|
onSuccess();
|
79
82
|
};
|
80
83
|
var onFinish = /*#__PURE__*/function () {
|
Binary file
|