Skip to content

Commit ec44fb0

Browse files
feat: add login source (#25)
1 parent b14284c commit ec44fb0

File tree

7 files changed

+44
-5
lines changed

7 files changed

+44
-5
lines changed

src/iconfont/iconfont.css

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@font-face {
22
font-family: "iconfont"; /* Project id 3325204 */
3-
src: url('iconfont.woff2?t=1660890049058') format('woff2'),
4-
url('iconfont.woff?t=1660890049058') format('woff'),
5-
url('iconfont.ttf?t=1660890049058') format('truetype');
3+
src: url('iconfont.woff2?t=1662088373384') format('woff2'),
4+
url('iconfont.woff?t=1662088373384') format('woff'),
5+
url('iconfont.ttf?t=1662088373384') format('truetype');
66
}
77

88
.iconfont {
@@ -13,6 +13,38 @@
1313
-moz-osx-font-smoothing: grayscale;
1414
}
1515

16+
.icon-reject:before {
17+
content: "\e775";
18+
}
19+
20+
.icon-pending:before {
21+
content: "\e776";
22+
}
23+
24+
.icon-wait:before {
25+
content: "\e777";
26+
}
27+
28+
.icon-withdraw:before {
29+
content: "\e778";
30+
}
31+
32+
.icon-connect-sdk:before {
33+
content: "\e773";
34+
}
35+
36+
.icon-setting:before {
37+
content: "\e774";
38+
}
39+
40+
.icon-filter:before {
41+
content: "\e772";
42+
}
43+
44+
.icon-info:before {
45+
content: "\e771";
46+
}
47+
1648
.icon-back:before {
1749
content: "\e770";
1850
}

src/iconfont/iconfont.ttf

2.45 KB
Binary file not shown.

src/iconfont/iconfont.woff

1.43 KB
Binary file not shown.

src/iconfont/iconfont.woff2

1.23 KB
Binary file not shown.

src/pages/login/demoLogin.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ const DemoLogin = () => {
3838
}, [history]);
3939

4040
const onSubmit = useCallback(async (params) => {
41-
const res = await demoLogin<IUserInfo>(params);
41+
const res = await demoLogin<IUserInfo>({
42+
source: 'platform',
43+
...params
44+
});
4245
const { success, data } = res;
4346
if (success && data) {
4447
localStorage.setItem('token', data.token);

src/pages/login/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ const Login = () => {
3838
}, [history]);
3939

4040
const onSubmit = useCallback(async (params) => {
41-
const res = await login<IUserInfo>(params);
41+
const res = await login<IUserInfo>({
42+
source: 'platform',
43+
...params
44+
});
4245
const { success, data } = res;
4346
if (success && data) {
4447
localStorage.setItem('token', data.token);

src/services/user.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ApplicationJson } from 'constants/api/contentType';
55
interface ILoginParams {
66
account: string;
77
password: string;
8+
source?: string;
89
}
910

1011
export const getUserInfo = async<T> () => {

0 commit comments

Comments
 (0)