Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
101c704a
authored
Nov 24, 2024
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能完善】商城: 会员信息的优化
parent
d228df52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
src/views/member/user/detail/UserAccountInfo.vue
+20
-1
src/views/member/user/detail/UserBasicInfo.vue
+21
-2
No files found.
src/views/member/user/detail/UserAccountInfo.vue
View file @
101c704a
<
template
>
<
template
>
<el-descriptions
:column=
"column"
>
<el-descriptions
:c
lass=
"
{ 'kefu-descriptions': column === 1 }" :c
olumn="column">
<el-descriptions-item>
<el-descriptions-item>
<template
#
label
>
<template
#
label
>
<descriptions-item-label
icon=
"svg-icon:member_level"
label=
" 等级 "
/>
<descriptions-item-label
icon=
"svg-icon:member_level"
label=
" 等级 "
/>
...
@@ -62,4 +62,23 @@ withDefaults(defineProps<{ user: UserApi.UserVO; wallet: WalletApi.WalletVO; col
...
@@ -62,4 +62,23 @@ withDefaults(defineProps<{ user: UserApi.UserVO; wallet: WalletApi.WalletVO; col
.cell-item
::after
{
.cell-item
::after
{
content
:
':'
;
content
:
':'
;
}
}
.kefu-descriptions
{
::v-deep(.el-descriptions__cell)
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.el-descriptions__label
{
width
:
120px
;
display
:
block
;
text-align
:
left
;
}
.el-descriptions__content
{
flex
:
1
;
text-align
:
end
;
}
}
}
</
style
>
</
style
>
src/views/member/user/detail/UserBasicInfo.vue
View file @
101c704a
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
</el-row>
</el-row>
<
template
v-if=
"mode === 'kefu'"
>
<
template
v-if=
"mode === 'kefu'"
>
<ElAvatar
:size=
"140"
:src=
"user.avatar || undefined"
shape=
"square"
/>
<ElAvatar
:size=
"140"
:src=
"user.avatar || undefined"
shape=
"square"
/>
<el-descriptions
:column=
"1"
>
<el-descriptions
:column=
"1"
class=
"kefu-descriptions"
>
<el-descriptions-item>
<el-descriptions-item>
<template
#
label
>
<template
#
label
>
<descriptions-item-label
icon=
"ep:user"
label=
"用户名"
/>
<descriptions-item-label
icon=
"ep:user"
label=
"用户名"
/>
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</
template
>
</
template
>
{{ user.nickname }}
{{ user.nickname }}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"手机号"
>
<el-descriptions-item>
<
template
#
label
>
<
template
#
label
>
<descriptions-item-label
icon=
"ep:phone"
label=
"手机号"
/>
<descriptions-item-label
icon=
"ep:phone"
label=
"手机号"
/>
</
template
>
</
template
>
...
@@ -143,4 +143,23 @@ withDefaults(defineProps<{ user: UserApi.UserVO; mode?: string }>(), {
...
@@ -143,4 +143,23 @@ withDefaults(defineProps<{ user: UserApi.UserVO; mode?: string }>(), {
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
}
}
::v-deep
(
.kefu-descriptions
)
{
.el-descriptions__cell
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.el-descriptions__label
{
width
:
120px
;
display
:
block
;
text-align
:
left
;
}
.el-descriptions__content
{
flex
:
1
;
text-align
:
end
;
}
}
}
</
style
>
</
style
>
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