Commit 7f02c92a authored by 郭志伟's avatar 郭志伟

fix: 图片地址修复

parent a75f9001
......@@ -70,7 +70,7 @@
title: '上传成功',
desc: '',
});
this.img = config.qiniuHost + res.hash;
this.img = config.qiniuHost + '/' + res.hash;
this.$emit('input', this.img);
this.$emit('change', this.img);
// this.url = config.qiniuHost + res.hash;
......@@ -118,43 +118,48 @@
margin-bottom: 10px;
width: 100%;
overflow: hidden;
&-img {
display: inline-block;
width: 60px;
height: 60px;
text-align: center;
line-height: 60px;
border: 1px solid transparent;
border-radius: 4px;
overflow: hidden;
background: #fff;
position: relative;
box-shadow: 0 1px 1px rgba(0,0,0,.2);
margin-right: 4px;
img {
width: 100%;
height: 100%;
}
&-cover {
display: none;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,.6);
i {
margin: 0 2px;
color: #fff;
font-size: 20px;
cursor: pointer;
}
display: inline-block;
width: 60px;
height: 60px;
text-align: center;
line-height: 60px;
border: 1px solid transparent;
border-radius: 4px;
overflow: hidden;
background: #fff;
position: relative;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
margin-right: 4px;
img {
width: 100%;
height: 100%;
}
&-cover {
display: none;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
i {
margin: 0 2px;
color: #fff;
font-size: 20px;
cursor: pointer;
}
&:hover {
.upload-img-cover {
display: block;
}
}
&:hover {
.upload-img-cover {
display: block;
}
}
}
&-container {
......@@ -163,9 +168,11 @@
width: 56px;
height: 56px;
line-height: 56px;
#upload_pic {
}
/deep/ .ivu-progress {
box-sizing: content-box;
height: 50px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment