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
shenshaokai
jinfa-platform
Commits
eba467fd
Commit
eba467fd
authored
Apr 26, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整会员详情头部右侧渲染内容
parent
d4dac337
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
25 deletions
+28
-25
Item.tsx
src/pages/member/components/Bookmark/Item.tsx
+14
-12
index.less
src/pages/member/components/Bookmark/index.less
+12
-11
index.tsx
src/pages/member/memberMaintain/detailed/index.tsx
+1
-1
index.tsx
src/pages/member/memberQuery/detailed/index.tsx
+1
-1
No files found.
src/pages/member/components/Bookmark/Item.tsx
View file @
eba467fd
...
@@ -44,19 +44,21 @@ const BookmarkItem: React.FC<IProps> = (props: IProps) => {
...
@@ -44,19 +44,21 @@ const BookmarkItem: React.FC<IProps> = (props: IProps) => {
};
};
return
(
return
(
<
li
<
li
className=
{
styles
[
'bookmark-itemWrap'
]
}
>
className=
{
classNames
(
styles
[
'bookmark-item'
],
{
<
div
[
styles
[
'bookmark-item-active'
]]:
value
===
bookmarkContext
.
value
,
className=
{
classNames
(
styles
[
'bookmark-item'
],
{
})
}
[
styles
[
'bookmark-item-active'
]]:
value
===
bookmarkContext
.
value
,
onClick=
{
handleClick
}
})
}
>
onClick=
{
handleClick
}
{
icon
?
(
>
<
div
className=
{
styles
[
'bookmark-item-left'
]
}
>
{
icon
?
(
{
icon
}
<
div
className=
{
styles
[
'bookmark-item-left'
]
}
>
{
icon
}
</
div
>
)
:
null
}
<
div
className=
{
styles
[
'bookmark-item-center'
]
}
>
{
title
}
</
div
>
</
div
>
)
:
null
}
<
div
className=
{
styles
[
'bookmark-item-center'
]
}
>
{
title
}
</
div
>
</
div
>
</
li
>
</
li
>
);
);
...
...
src/pages/member/components/Bookmark/index.less
View file @
eba467fd
@import '~antd/es/style/themes/default.less';
@import '~antd/es/style/themes/default.less';
.bookmark {
.bookmark {
display: flex;
display:
inline-
flex;
align-items: center;
align-items: center;
border: 1px solid #E4E6EB;
list-style: none;
list-style: none;
padding: 0;
padding: 0;
margin: 0;
margin: -@padding-xss;
&-itemWrap {
padding: @padding-xss;
}
&-item {
&-item {
padding: @padding-xs @padding-md;
padding: @padding-xs @padding-md;
display: flex;
display: flex;
align-items: center;
align-items: center;
background-color:
#FFFFFF
;
background-color:
@background-color-light
;
color:
#6B778C
;
color:
@text-color-secondary
;
cursor: pointer;
cursor: pointer;
border-radius: 4px;
&:not(:last-child) {
border-right: 1px solid #E4E6EB;
}
&-left {
&-left {
flex-shrink: 0;
flex-shrink: 0;
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
&-active,
&-active,
&:hover {
&:hover {
background-color:
#6B778C
;
background-color:
@background-color-base
;
color:
#FFFFFF
;
color:
@primary-color
;
}
}
}
}
}
}
\ No newline at end of file
src/pages/member/memberMaintain/detailed/index.tsx
View file @
eba467fd
...
@@ -117,7 +117,7 @@ const MemberMaintainDetailed: React.FC<IProps> = props => {
...
@@ -117,7 +117,7 @@ const MemberMaintainDetailed: React.FC<IProps> = props => {
)
}
)
}
onBack=
{
()
=>
history
.
push
(
`/memberCenter/memberAbility/manage/maintain`
)
}
onBack=
{
()
=>
history
.
push
(
`/memberCenter/memberAbility/manage/maintain`
)
}
anchors=
{
anchors
}
anchors=
{
anchors
}
extra
=
{
(
desc
=
{
(
<
Bookmark
value=
{
getBookmarkKey
()
}
onChange=
{
handleBookmarkChange
}
>
<
Bookmark
value=
{
getBookmarkKey
()
}
onChange=
{
handleBookmarkChange
}
>
<
Bookmark
.
Item
value=
"basicInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.basic'
})
}
icon=
{
<
UnorderedListOutlined
/>
}
/>
<
Bookmark
.
Item
value=
"basicInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.basic'
})
}
icon=
{
<
UnorderedListOutlined
/>
}
/>
<
Bookmark
.
Item
value=
"archiveInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.detail.archivalInfo'
})
}
icon=
{
<
FolderOutlined
/>
}
/>
<
Bookmark
.
Item
value=
"archiveInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.detail.archivalInfo'
})
}
icon=
{
<
FolderOutlined
/>
}
/>
...
...
src/pages/member/memberQuery/detailed/index.tsx
View file @
eba467fd
...
@@ -109,7 +109,7 @@ const MemberQueryDetailed: React.FC<IProps> = props => {
...
@@ -109,7 +109,7 @@ const MemberQueryDetailed: React.FC<IProps> = props => {
)
}
)
}
onBack=
{
()
=>
history
.
push
(
`/memberCenter/memberAbility/profile/query`
)
}
onBack=
{
()
=>
history
.
push
(
`/memberCenter/memberAbility/profile/query`
)
}
anchors=
{
anchors
}
anchors=
{
anchors
}
extra
=
{
(
desc
=
{
(
<
Bookmark
value=
{
getBookmarkKey
()
}
onChange=
{
handleBookmarkChange
}
>
<
Bookmark
value=
{
getBookmarkKey
()
}
onChange=
{
handleBookmarkChange
}
>
<
Bookmark
.
Item
value=
"basicInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.basic'
})
}
icon=
{
<
UnorderedListOutlined
/>
}
/>
<
Bookmark
.
Item
value=
"basicInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.basic'
})
}
icon=
{
<
UnorderedListOutlined
/>
}
/>
<
Bookmark
.
Item
value=
"archiveInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.detail.archivalInfo'
})
}
icon=
{
<
FolderOutlined
/>
}
/>
<
Bookmark
.
Item
value=
"archiveInfo"
title=
{
intl
.
formatMessage
({
id
:
'member.management.maintain.detail.archivalInfo'
})
}
icon=
{
<
FolderOutlined
/>
}
/>
...
...
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