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

fix: 图片地址修复

parent a75f9001
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
title: '上传成功', title: '上传成功',
desc: '', desc: '',
}); });
this.img = config.qiniuHost + res.hash; this.img = config.qiniuHost + '/' + res.hash;
this.$emit('input', this.img); this.$emit('input', this.img);
this.$emit('change', this.img); this.$emit('change', this.img);
// this.url = config.qiniuHost + res.hash; // this.url = config.qiniuHost + res.hash;
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
margin-bottom: 10px; margin-bottom: 10px;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
&-img { &-img {
display: inline-block; display: inline-block;
width: 60px; width: 60px;
...@@ -129,12 +130,14 @@ ...@@ -129,12 +130,14 @@
overflow: hidden; overflow: hidden;
background: #fff; background: #fff;
position: relative; position: relative;
box-shadow: 0 1px 1px rgba(0,0,0,.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
margin-right: 4px; margin-right: 4px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
&-cover { &-cover {
display: none; display: none;
position: absolute; position: absolute;
...@@ -142,7 +145,8 @@ ...@@ -142,7 +145,8 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
background: rgba(0,0,0,.6); background: rgba(0, 0, 0, 0.6);
i { i {
margin: 0 2px; margin: 0 2px;
color: #fff; color: #fff;
...@@ -150,6 +154,7 @@ ...@@ -150,6 +154,7 @@
cursor: pointer; cursor: pointer;
} }
} }
&:hover { &:hover {
.upload-img-cover { .upload-img-cover {
display: block; display: block;
...@@ -163,9 +168,11 @@ ...@@ -163,9 +168,11 @@
width: 56px; width: 56px;
height: 56px; height: 56px;
line-height: 56px; line-height: 56px;
#upload_pic { #upload_pic {
} }
/deep/ .ivu-progress { /deep/ .ivu-progress {
box-sizing: content-box; box-sizing: content-box;
height: 50px; 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