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
3fb09f60
Commit
3fb09f60
authored
Nov 25, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改商城首页用户信息显示
parent
21abe57a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
index.less
src/pages/lxMall/components/TopBar/index.less
+3
-2
index.tsx
src/pages/lxMall/components/TopBar/index.tsx
+21
-11
No files found.
src/pages/lxMall/components/TopBar/index.less
View file @
3fb09f60
...
...
@@ -146,19 +146,20 @@
text-align: center;
&:hover {
cursor: pointer;
span {
color: var(--mall_main_color);
}
}
&>
img {
img {
display: block;
margin: 0 auto;
width: 40px;
height: 40px;
}
&>
span {
span {
line-height: 12px;
margin-top: 12px;
}
...
...
src/pages/lxMall/components/TopBar/index.tsx
View file @
3fb09f60
...
...
@@ -74,27 +74,35 @@ const TopBar: React.FC<TopBarPropsType> = (props) => {
<
div
className=
{
styles
.
userInfo_card_header
}
>
<
ImageBox
width=
{
64
}
height=
{
64
}
circle=
{
true
}
direction=
"column"
imgUrl=
{
defaultAvatar
}
/>
<
div
className=
{
styles
.
userInfo_card_column
}
>
<
div
className=
{
styles
.
credit_count
}
>
信用积分:
<
span
>
{
numFormat
(
1278
)
}
</
span
></
div
>
<
div
className=
{
styles
.
user_type
}
>
VIP会员
</
div
>
<
div
className=
{
styles
.
credit_count
}
>
信用积分:
<
span
>
{
numFormat
(
userInfo
.
score
||
0
)
}
</
span
></
div
>
<
div
className=
{
styles
.
user_type
}
>
{
userInfo
.
levelTag
}
</
div
>
</
div
>
<
div
className=
{
styles
.
sign_out_btn
}
onClick=
{
handleSignOut
}
>
退出账号
</
div
>
</
div
>
<
div
className=
{
styles
.
nav_list
}
>
<
div
className=
{
styles
.
nav_list_item
}
>
<
img
src=
{
AccountSafeIcon
}
/>
<
span
>
账户安全
</
span
>
<
Link
to=
"/memberCenter/systemSetting/accountSetting"
>
<
img
src=
{
AccountSafeIcon
}
/>
<
span
>
账户安全
</
span
>
</
Link
>
</
div
>
<
div
className=
{
styles
.
nav_list_item
}
>
<
img
src=
{
memberInfoIcon
}
/>
<
span
>
会员信息
</
span
>
<
Link
to=
"/memberCenter/memberAbility/query"
>
<
img
src=
{
memberInfoIcon
}
/>
<
span
>
会员信息
</
span
>
</
Link
>
</
div
>
<
div
className=
{
styles
.
nav_list_item
}
>
<
img
src=
{
capitalAccountIcon
}
/>
<
span
>
资金账户
</
span
>
<
Link
to=
"/memberCenter/payandSettle/capitalAccounts/accountLists"
>
<
img
src=
{
capitalAccountIcon
}
/>
<
span
>
资金账户
</
span
>
</
Link
>
</
div
>
<
div
className=
{
styles
.
nav_list_item
}
>
<
img
src=
{
memberBenefitsIcon
}
/>
<
span
>
会员权益
</
span
>
<
Link
to=
"/memberCenter/memberAbility/query"
>
<
img
src=
{
memberBenefitsIcon
}
/>
<
span
>
会员权益
</
span
>
</
Link
>
</
div
>
</
div
>
</
div
>
...
...
@@ -111,7 +119,9 @@ const TopBar: React.FC<TopBarPropsType> = (props) => {
<
li
className=
{
styles
.
topbar_menu_item
}
>
<
Link
to=
"/memberCenter/home"
>
会员中心
</
Link
>
</
li
>
<
li
className=
{
styles
.
topbar_menu_item
}
>
我的消息
</
li
>
<
li
className=
{
styles
.
topbar_menu_item
}
>
<
Link
to=
"/memberCenter/systemSetting/message"
>
我的消息
</
Link
>
</
li
>
<
li
className=
{
styles
.
topbar_menu_item
}
>
客户服务
</
li
>
...
...
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