Commit 7dd2b186 authored by youjie's avatar youjie

no message

parent 4a2bd89c
......@@ -457,6 +457,7 @@
this.currentEditItemData = JSON.parse(JSON.stringify(item.plugData));
if(!this.currentEditItemData.BottomList) this.$set(this.currentEditItemData,'BottomList',[])
if(!this.currentEditItemData.MBgColor) this.$set(this.currentEditItemData,'MBgColor','')
if(!this.currentEditItemData.MLogo) this.$set(this.currentEditItemData,'MLogo','')
},
//获取数据
setSubPlugData() {
......
......@@ -112,13 +112,13 @@
<el-col :span="8">
<el-form-item label="Mobile LOGO" style="margin-bottom: 0;">
<div class="webSliderDiv" style="width: 100px;height:100px;">
<el-upload :http-request="UploadAttachmentMBgColor" :multiple="true"
<el-upload :http-request="UploadAttachmentMLogo" :multiple="true"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<img v-if="plugData.MBgColor" :src="plugData.MBgColor" class="web_imgUrl" alt="" />
<img v-if="plugData.MLogo" :src="plugData.MLogo" class="web_imgUrl" alt="" />
<div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i>
<i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;"
@click.stop="plugData.MBgColor=''"></i>
@click.stop="plugData.MLogo=''"></i>
</div>
</el-upload>
</div>
......@@ -452,14 +452,14 @@
this.plugData.Logo = imgUrl;
});
},
UploadAttachmentMBgColor(file) {
UploadAttachmentMLogo(file) {
let newArr = [];
newArr.push(file.file);
var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str;
this.plugData.MBgColor = imgUrl;
this.plugData.MLogo = imgUrl;
});
},
//显示菜单弹窗
......
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