Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
Project
Project
Details
Activity
Releases
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
张伯涛
cust_web
Commits
aea6e751
Commit
aea6e751
authored
Mar 05, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认图片
parent
64165af3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
index.vue
src/views/operationsManagement/article/index.vue
+16
-9
index.vue
src/views/operationsManagement/member/info/index.vue
+1
-0
No files found.
src/views/operationsManagement/article/index.vue
View file @
aea6e751
...
...
@@ -142,7 +142,8 @@
<el-form
ref=
"deviceFormRef"
:model=
"form"
label-position=
"right"
label-width=
"auto"
>
<div
class=
"item"
>
<div>
<img
class=
"avatarSize"
:src=
"form.avatarImg"
alt=
"Avatar"
mode=
"aspectFill"
>
<img
v-if=
"form.avatarImg"
class=
"avatarSize"
:src=
"form.avatarImg"
alt=
""
mode=
"aspectFill"
>
<img
v-else
class=
"avatarSize"
src=
"http://192.168.1.8/static/images/user/defaultAvatar.png'"
alt=
""
>
</div>
<div
class=
"center"
>
<
template
>
...
...
@@ -202,7 +203,8 @@
<div
v-if=
"index !== null"
style=
"border-top: 1px solid #dadada; margin: 5px 0 7px;"
/>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
class=
"commentHeader"
>
<div
style=
"display: flex; align-items: center;padding-bottom: 10px"
>
<img
style=
"margin-top: -40px"
:src=
"comment.avatarUrl"
alt=
""
class=
"avatarSize"
>
<img
v-if=
"comment.avatarUrl"
style=
"margin-top: -40px"
:src=
"comment.avatarUrl"
alt=
""
class=
"avatarSize"
>
<img
v-else
class=
"avatarSize"
style=
"margin-top: -40px"
src=
"http://192.168.1.8/static/images/user/defaultAvatar.png'"
alt=
""
>
<div
style=
"padding-left: 10px"
>
<span
style=
"font-size: 15px;font-weight: bold"
>
{{ comment.memCode }}:
</span>
<div
style=
"flex: 1;margin-top: 10px "
>
...
...
@@ -222,7 +224,8 @@
<div
v-if=
"replyIndex !== null"
style=
"border-top: 1px solid #dadada; margin: 5px 0 7px;"
/>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
class=
"commentHeader"
>
<div
style=
"display: flex; align-items: center;"
>
<img
style=
"margin-top: -40px"
:src=
"reply.avatarUrl"
alt=
""
class=
"avatarSize"
>
<img
v-if=
"reply.avatarUrl"
style=
"margin-top: -40px"
:src=
"reply.avatarUrl"
alt=
""
class=
"avatarSize"
>
<img
v-else
class=
"avatarSize"
style=
"margin-top: -40px"
src=
"http://192.168.1.8/static/images/user/defaultAvatar.png'"
alt=
""
>
<div
style=
"padding-left: 10px"
>
<span
style=
"font-size: 15px;font-weight: bold"
>
{{ reply.memCode }}:
</span>
<div
style=
"flex: 1;margin-top: 10px "
>
...
...
@@ -461,15 +464,19 @@ export default {
// 处理评论的头像
if
(
this
.
form
.
articleCommentVOList
!=
null
&&
this
.
form
.
articleCommentVOList
.
length
>
0
)
{
this
.
form
.
articleCommentVOList
.
forEach
(
item
=>
{
if
(
item
.
avatarId
!==
''
&&
item
.
avatarId
!==
null
)
{
getOssUrl
(
item
.
avatarId
).
then
(
res
=>
{
item
.
avatarUrl
=
res
.
data
})
}
// 处理子评论头像
if
(
item
.
childrenCommentList
.
length
>
0
)
{
item
.
childrenCommentList
.
forEach
(
children
=>
{
if
(
children
.
avatarId
!==
''
&&
children
.
avatarId
!==
null
)
{
getOssUrl
(
children
.
avatarId
).
then
(
resp
=>
{
children
.
avatarUrl
=
resp
.
data
})
}
})
}
})
...
...
src/views/operationsManagement/member/info/index.vue
View file @
aea6e751
...
...
@@ -23,6 +23,7 @@
:auto-upload=
"true"
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
class=
"avatar"
alt=
""
>
<img
v-else
class=
"avatar"
src=
"http://192.168.1.8/static/images/user/defaultAvatar.png'"
alt=
""
>
</el-upload>
<div
style=
"margin-left: 20px"
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 0"
:src=
"form.pictureUrls[0]"
style=
"width: 80px;height: 80px"
alt=
""
>
...
...
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