Commit 5f1e7230 authored by youjie's avatar youjie

no message

parent 8417dbaa
......@@ -460,6 +460,7 @@
this.commonTitle = item.plugData.Title;
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','')
},
//获取数据
setSubPlugData() {
......
......@@ -76,8 +76,8 @@
</el-form-item>
</el-col>
</el-row> -->
<el-row class="rowSbAc">
<el-form-item label="LOGO" style="margin-bottom: 0;">
<el-row class="rowSbAc" style="margin-bottom: 10px;">
<el-form-item label="Web LOGO" style="margin-bottom: 0;">
<div class="webSliderDiv" style="width: 100px;height: 100px;">
<el-upload :http-request="UploadAttachmentLogo" :multiple="true"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
......@@ -89,16 +89,31 @@
</el-upload>
</div>
</el-form-item>
<el-form-item :label="$t('objFill.v101.zhubiaoti')" style="margin-bottom: 0;">
<el-input type="text" v-model="plugData.Title"></el-input>
</el-form-item>
<el-form-item :label="$t('objFill.fubiaoti')" style="margin-bottom: 0;">
<el-input type="text" v-model="plugData.SubTitle"></el-input>
<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"
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="" />
<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>
</div>
</el-upload>
</div>
</el-form-item>
<el-form-item :label="$t('objFill.v101.beijinse')" style="margin-bottom: 0;flex: 1;flex-shrink: 0;">
<el-color-picker style='vertical-align: middle;' v-model="plugData.BgColor"></el-color-picker>
</el-form-item>
</el-row>
<el-row class="rowSbAc">
<el-form-item :label="$t('objFill.v101.zhubiaoti')" style="margin-bottom: 0;flex: 1;flex-shrink: 0;">
<el-input type="text" v-model="plugData.Title"></el-input>
</el-form-item>
<el-form-item :label="$t('objFill.fubiaoti')" style="margin-bottom: 0;flex: 1;flex-shrink: 0;">
<el-input type="text" v-model="plugData.SubTitle"></el-input>
</el-form-item>
</el-row>
<tbody>
<tr>
<td class="caidantext">
......@@ -376,6 +391,17 @@
this.plugData.Logo = imgUrl;
});
},
UploadAttachmentMBgColor(file) {
let newArr = [];
newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str;
this.plugData.MBgColor = imgUrl;
});
},
},
mounted() {}
};
......
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