Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-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
刘怀志
pet-business-web
Commits
ced87b42
Commit
ced87b42
authored
Aug 29, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66080 全局,图片加载失败样式调整
parent
fa32c14f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
imgUploadForBanner.vue
src/components/ImageUpload/imgUploadForBanner.vue
+31
-4
No files found.
src/components/ImageUpload/imgUploadForBanner.vue
View file @
ced87b42
...
...
@@ -32,10 +32,26 @@
>
<i
slot=
"default"
class=
"el-icon-plus"
/>
<div
slot=
"file"
slot-scope=
"
{file}" class="customer-upload-area">
<el-image
v-show=
"fileList.length > 0"
:ref=
"file.url"
class=
"el-upload-list__item-thumbnail customer-upload-error"
:src=
"file.url"
:preview-src-list=
"[file.url]"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<div>
加载失败
</div>
<el-image
v-show=
"fileList.length > 0"
:ref=
"file.url"
class=
"el-upload-list__item-thumbnail customer-upload-error"
:src=
"file.url"
:preview-src-list=
"[file.url]"
>
<div
slot=
"error"
class=
"image-slot"
style=
"width: 100%;height: 100%; border: 1px solid #DB4747;border-radius:5px;"
>
<div
class=
"parent-container"
>
<img
class=
"inner_style"
:src=
"baseURL+'/tmt-pic/business/888cc34012a64d40a0cec2974c9b7943-jiazaishibai.png'"
alt=
"加载失败"
>
<div>
加载失败
</div>
</div>
</div>
</el-image>
<label
class=
"el-upload-list__item-status-label"
>
...
...
@@ -115,6 +131,8 @@ export default {
},
data
()
{
return
{
// 图片访问
baseURL
:
process
.
env
.
VUE_APP_TEST_API
,
queryParams
:
{
companyImgUrl
:
''
},
...
...
@@ -385,5 +403,14 @@ export default {
height
:
15px
!
important
;
margin-top
:
0
!
important
;
}
/*加载失败-失败图标和文字位置布局*/
.parent-container
{
padding-top
:
30%
;
/*图片样式*/
.inner_style
{
width
:
22px
;
height
:
22px
;
}
}
</
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