Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
d4b06b94
Commit
d4b06b94
authored
Sep 29, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改首页会员等级bug'
parent
ab47bcc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
index.tsx
src/pages/home/components/UserCenter/index.tsx
+6
-6
No files found.
src/pages/home/components/UserCenter/index.tsx
View file @
d4b06b94
...
@@ -2,10 +2,10 @@ import React, { useCallback, useMemo, useReducer } from 'react';
...
@@ -2,10 +2,10 @@ import React, { useCallback, useMemo, useReducer } from 'react';
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
Badge
,
message
,
Spin
,
Tooltip
}
from
'antd'
;
import
{
Badge
,
message
,
Spin
,
Tooltip
}
from
'antd'
;
import
level1
from
'@/assets/imgs/level1.png'
;
//
import level1 from '@/assets/imgs/level1.png';
import
level2
from
'@/assets/imgs/level2.png'
;
//
import level2 from '@/assets/imgs/level2.png';
import
level3
from
'@/assets/imgs/level3.png'
;
//
import level3 from '@/assets/imgs/level3.png';
import
level4
from
'@/assets/imgs/level4.png'
;
//
import level4 from '@/assets/imgs/level4.png';
import
{
Link
}
from
'umi'
;
import
{
Link
}
from
'umi'
;
import
{
getAuth
}
from
'@/utils/auth'
;
import
{
getAuth
}
from
'@/utils/auth'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
StatusTag
from
'@/components/StatusTag'
;
...
@@ -21,7 +21,7 @@ import { GlobalConfig } from '@/global/config';
...
@@ -21,7 +21,7 @@ import { GlobalConfig } from '@/global/config';
interface
Iprops
{}
interface
Iprops
{}
const
WEEKDAYS
=
[
"天"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
];
const
WEEKDAYS
=
[
"天"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
];
const
LEVEL_IMAGE
=
[
level1
,
level1
,
level2
,
level3
,
level4
];
//
const LEVEL_IMAGE = [level1, level1, level2, level3, level4];
const
EDIT_USER_URL
=
'/memberCenter/editMySelf'
;
const
EDIT_USER_URL
=
'/memberCenter/editMySelf'
;
const
USER_CENTER_URL
=
'/memberCenter/memberAbility/profile/query'
;
const
USER_CENTER_URL
=
'/memberCenter/memberAbility/profile/query'
;
const
STATUS_COLOR
:
(
"default"
|
"processing"
|
"error"
|
"success"
)[]
=
[
"default"
,
"processing"
,
"error"
,
"success"
,
"error"
]
const
STATUS_COLOR
:
(
"default"
|
"processing"
|
"error"
|
"success"
)[]
=
[
"default"
,
"processing"
,
"error"
,
"success"
,
"error"
]
...
@@ -139,7 +139,7 @@ const UserCenter: React.FC<Iprops> = (props) => {
...
@@ -139,7 +139,7 @@ const UserCenter: React.FC<Iprops> = (props) => {
<
div
className=
{
styles
.
otherValues
}
>
<
div
className=
{
styles
.
otherValues
}
>
<
div
className=
{
styles
.
divider
}
>
<
div
className=
{
styles
.
divider
}
>
<
div
className=
{
styles
.
level
}
>
<
div
className=
{
styles
.
level
}
>
会员等级:
<
img
src=
{
LEVEL_IMAGE
[
userAuth
.
level
]
}
className=
{
styles
.
levelIm
g
}
/>
会员等级:
<
StatusTag
type=
{
'primary'
}
title=
{
userAuth
.
levelTa
g
}
/>
</
div
>
</
div
>
<
div
className=
{
styles
.
score
}
>
<
div
className=
{
styles
.
score
}
>
平台积分:
<
strong
>
{
userAuth
.
score
}
</
strong
>
平台积分:
<
strong
>
{
userAuth
.
score
}
</
strong
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment