component-shipinlv 0.1.9 → 0.1.11
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/AuthClient/qr/h5-we-public-login.js +5 -16
- package/dist/join-client/index.css.d.ts +5 -0
- package/dist/join-client/index.css.js +6 -0
- package/dist/join-client/index.d.ts +0 -1
- package/dist/join-client/index.js +11 -9
- package/package.json +1 -1
- package/dist/global.less +0 -0
- package/dist/join-client/index.less +0 -15
|
@@ -9,27 +9,16 @@ var h5WePublicLogin = /*#__PURE__*/function () {
|
|
|
9
9
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10
10
|
while (1) switch (_context.prev = _context.next) {
|
|
11
11
|
case 0:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
inviteUserId = Tool.getInviteUserId();
|
|
16
|
-
_context.next = 5;
|
|
17
|
-
return WechatController.h5WePublicLogin({
|
|
18
|
-
redirectUrl: redirectUrl,
|
|
19
|
-
inviteUserId: inviteUserId
|
|
20
|
-
}).catch(function () {});
|
|
21
|
-
case 5:
|
|
12
|
+
document.location.replace("https://auth.shanren.wang/auth/wechat/login?url=".concat(document.location.href));
|
|
13
|
+
return _context.abrupt("return");
|
|
14
|
+
case 7:
|
|
22
15
|
loginResult = _context.sent;
|
|
23
16
|
if (loginResult) {
|
|
24
|
-
_context.next =
|
|
17
|
+
_context.next = 10;
|
|
25
18
|
break;
|
|
26
19
|
}
|
|
27
20
|
return _context.abrupt("return");
|
|
28
|
-
case
|
|
29
|
-
// 因为 微信 会校验跳转域名,所以 用制定 中转;
|
|
30
|
-
|
|
31
|
-
document.location.href = loginResult.redirectUrl;
|
|
32
|
-
case 9:
|
|
21
|
+
case 10:
|
|
33
22
|
case "end":
|
|
34
23
|
return _context.stop();
|
|
35
24
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
div: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
export default {
|
|
5
|
+
div: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :global{\n .clientStatus{\n .loading{\n opacity: 0.7;\n }\n\n .downloading{\n margin-left: 12px;\n }\n\n .working{\n color: green;\n }\n }\n "])))
|
|
6
|
+
};
|
|
@@ -4,10 +4,10 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
5
5
|
import * as SubClientController from "../service/api/SubClientController";
|
|
6
6
|
import { useRequest } from '@umijs/hooks';
|
|
7
|
-
import "./index.less";
|
|
8
7
|
import { CheckCircleFilled, ExclamationCircleFilled, LoadingOutlined, QuestionCircleOutlined, RedoOutlined } from "@ant-design/icons";
|
|
9
8
|
import { Button, Divider, Tooltip } from "antd";
|
|
10
9
|
import Tool from "../lib/Tool";
|
|
10
|
+
import styles from "./index.css";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -197,14 +197,16 @@ var JoinClient = function JoinClient(_ref) {
|
|
|
197
197
|
useEffect(function () {
|
|
198
198
|
onRunStatus(runStatus);
|
|
199
199
|
}, [runStatus]);
|
|
200
|
-
return /*#__PURE__*/
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
return /*#__PURE__*/_jsx(styles.div, {
|
|
201
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
202
|
+
className: "clientStatus",
|
|
203
|
+
children: [$status(), /*#__PURE__*/_jsx(Divider, {
|
|
204
|
+
type: "vertical"
|
|
205
|
+
}), /*#__PURE__*/_jsxs(Tooltip, {
|
|
206
|
+
title: "\u672C\u9875\u9762\u529F\u80FD\u9700\u8981\u4F60\u7684\u7535\u8111\u4E0A\u5B89\u88C5\u4E13\u7528\u5BA2\u6237\u7AEF\u8F6F\u4EF6",
|
|
207
|
+
children: [" ", /*#__PURE__*/_jsx(QuestionCircleOutlined, {})]
|
|
208
|
+
})]
|
|
209
|
+
})
|
|
208
210
|
});
|
|
209
211
|
};
|
|
210
212
|
export default JoinClient;
|
package/package.json
CHANGED
package/dist/global.less
DELETED
|
File without changes
|