Commit 5f1e7230 authored by youjie's avatar youjie

no message

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