Commit 7dd2b186 authored by youjie's avatar youjie

no message

parent 4a2bd89c
...@@ -457,6 +457,7 @@ ...@@ -457,6 +457,7 @@
this.currentEditItemData = JSON.parse(JSON.stringify(item.plugData)); this.currentEditItemData = JSON.parse(JSON.stringify(item.plugData));
if(!this.currentEditItemData.BottomList) this.$set(this.currentEditItemData,'BottomList',[]) if(!this.currentEditItemData.BottomList) this.$set(this.currentEditItemData,'BottomList',[])
if(!this.currentEditItemData.MBgColor) this.$set(this.currentEditItemData,'MBgColor','') if(!this.currentEditItemData.MBgColor) this.$set(this.currentEditItemData,'MBgColor','')
if(!this.currentEditItemData.MLogo) this.$set(this.currentEditItemData,'MLogo','')
}, },
//获取数据 //获取数据
setSubPlugData() { setSubPlugData() {
......
...@@ -112,13 +112,13 @@ ...@@ -112,13 +112,13 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="Mobile LOGO" style="margin-bottom: 0;"> <el-form-item label="Mobile LOGO" style="margin-bottom: 0;">
<div class="webSliderDiv" style="width: 100px;height:100px;"> <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=""> 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"> <div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i> <i class="web_addImg iconfont icon-img_haha"></i>
<i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;" <i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;"
@click.stop="plugData.MBgColor=''"></i> @click.stop="plugData.MLogo=''"></i>
</div> </div>
</el-upload> </el-upload>
</div> </div>
...@@ -395,10 +395,10 @@ ...@@ -395,10 +395,10 @@
//一级菜单 //一级菜单
this.plugData.MenuList.push(JSON.parse(JSON.stringify(this.MenuList))) this.plugData.MenuList.push(JSON.parse(JSON.stringify(this.MenuList)))
} else if (type == 2) { } else if (type == 2) {
//二级菜单 //二级菜单
this.plugData.MenuList[index].SubMenuList.push(JSON.parse(JSON.stringify(this.SubMenuList))) this.plugData.MenuList[index].SubMenuList.push(JSON.parse(JSON.stringify(this.SubMenuList)))
} else if (type == 3) { } else if (type == 3) {
//底部导航 //底部导航
this.plugData.BottomList.push(JSON.parse(JSON.stringify(this.BottomList))) this.plugData.BottomList.push(JSON.parse(JSON.stringify(this.BottomList)))
} }
}, },
...@@ -411,11 +411,11 @@ ...@@ -411,11 +411,11 @@
if (type == 1) { if (type == 1) {
that.plugData.MenuList.splice(index, 1) that.plugData.MenuList.splice(index, 1)
} }
//二级菜单 //二级菜单
else if (type == 2) { else if (type == 2) {
that.plugData.MenuList[index].SubMenuList.splice(i, 1) that.plugData.MenuList[index].SubMenuList.splice(i, 1)
} }
//底部导航 //底部导航
else if (type == 3) { else if (type == 3) {
that.plugData.BottomList.splice(i, 1) that.plugData.BottomList.splice(i, 1)
} }
...@@ -452,14 +452,14 @@ ...@@ -452,14 +452,14 @@
this.plugData.Logo = imgUrl; this.plugData.Logo = imgUrl;
}); });
}, },
UploadAttachmentMBgColor(file) { UploadAttachmentMLogo(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
var path = "/Upload/WebSite/"; var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath; var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str; 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