Commit 9b58c74d authored by 黄媛媛's avatar 黄媛媛
parents 67987195 7e8905a3
......@@ -63,10 +63,7 @@
<el-form-item label="导航图标" prop="NavIconImg">
<div>
<el-tooltip class="item" effect="dark" content="建议尺寸:88*88" placement="top-start">
<el-upload class="avatar-uploader" action="" accept="image/jpeg,image/gif,image/png,image/bmp"
:show-file-list="false" :http-request="UploadImage">
<el-button size="small">选择文件</el-button>
</el-upload>
<el-button size="small" @click="choicImg=true">选择文件</el-button>
</el-tooltip>
</div>
<div class="navNavIconImg">
......@@ -189,13 +186,10 @@
}
})
},
//上传图片
UploadImage(file) {
this.UploadFileToTencent(this.FileType().UserNavIconImg, file.file, res => {
if (res.resultCode == 1) {
this.addMsg.NavIconImg = res.FileUrl;
}
})
//选择图片
SelectId(msg) {
this.addMsg.NavIconImg = this.getIconLink(msg.url);
this.choicImg = false;
},
submitform(addMsg) {
//提交创建、修改表单
......
......@@ -194,7 +194,7 @@
},
//选择图片
SelectId(msg) {
this.data.list[this.comImgIndex].picUrl = msg.url;
this.data.list[this.comImgIndex].picUrl = this.getIconLink(msg.url);
this.choicImg = false;
},
//选择链接
......
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