提交 053b8b4d authored 作者: 王天霸's avatar 王天霸

图片优化

上级 d076d398
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<i class="el-icon-warning h-warning"></i> <i class="el-icon-warning h-warning"></i>
</span> </span>
</div> </div>
<div style="width:380px;line-height: 24px;padding-top: 6px;"> <div style="width:400px;line-height: 24px;padding-top: 6px;">
<span class="tips-text">图片大小为500KB以内,支持png/jpg,限一张,请确保图片清晰</span></br> <span class="tips-text">图片大小为500KB以内,支持png/jpg,限一张,请确保图片清晰</span></br>
<span class="tips-text">请确保营业执照在有效期内</span> <span class="tips-text">请确保营业执照在有效期内</span>
</div> </div>
...@@ -795,6 +795,11 @@ ...@@ -795,6 +795,11 @@
} }
} }
</script> </script>
<style scoped>
.main-con /deep/ .uploadData .el-upload-list--picture-card .el-upload-list__item{
line-height: 20px !important;
}
</style>
<style lang="scss" type="text/stylus" scoped> <style lang="scss" type="text/stylus" scoped>
.fill-store-inf { .fill-store-inf {
......
...@@ -568,7 +568,11 @@ ...@@ -568,7 +568,11 @@
} // methods end } // methods end
} }
</script> </script>
<style scoped>
.main-con /deep/ .uploadData .el-upload-list--picture-card .el-upload-list__item{
line-height: 20px !important;
}
</style>
<style lang="scss" type="text/stylus" scoped> <style lang="scss" type="text/stylus" scoped>
.fill-store-inf { .fill-store-inf {
font-size : 16px; font-size : 16px;
......
...@@ -49,14 +49,14 @@ export default { ...@@ -49,14 +49,14 @@ export default {
// insertImgFn 是获取图片 url 后,插入到编辑器的方法 // insertImgFn 是获取图片 url 后,插入到编辑器的方法
// 上传图片,返回结果,将图片插入到编辑器中 // 上传图片,返回结果,将图片插入到编辑器中
that.getAllImg(files).then((res) => { that.getAllImg(files).then((res) => {
let data = { data: [] }; let data = { data: [],type:3 };
let imgBase = ""; let imgBase = "";
if (res.length > 0) { if (res.length > 0) {
for (let i = 0; i < res.length; i++) { for (let i = 0; i < res.length; i++) {
imgBase = ""; imgBase = "";
imgBase = res[i].split(",")[1]; imgBase = res[i].split(",")[1];
if (imgBase) { if (imgBase) {
data.data.push({ img_data: imgBase,type:3}); data.data.push({ img_data: imgBase});
} }
} }
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<!-- 新增/修改/详情 --> <!-- 新增/修改/详情 -->
<el-dialog :title="brandTitle" v-if="isOpen" :visible.sync="isOpen" width="70%" class="brandInf-add" center <el-dialog :title="brandTitle" v-if="isOpen" :visible.sync="isOpen" width="70%" class="brandInf-add" center
:close-on-click-modal="false" :before-close="handleCancel"> :close-on-click-modal="false" :before-close="handleCancel">
<el-form :model="brandForm" :rules="brandRules" ref="brandForm" label-width="140px"> <el-form :model="brandForm" :rules="brandRules" class="brandForm" ref="brandForm" label-width="140px">
<el-row v-if="indexBrandId != 0 && brandForm.status != 3"> <el-row v-if="indexBrandId != 0 && brandForm.status != 3">
<p class="brand-status-con"> <p class="brand-status-con">
<span v-if="brandForm.status == 1" class="color-spe-success"><i class="el-icon-success"></i></span> <span v-if="brandForm.status == 1" class="color-spe-success"><i class="el-icon-success"></i></span>
...@@ -1041,7 +1041,11 @@ ...@@ -1041,7 +1041,11 @@
} // methods end } // methods end
} }
</script> </script>
<style scoped>
.brandForm /deep/ .uploadData .el-upload-list--picture-card .el-upload-list__item{
line-height: 20px !important;
}
</style>
<style lang="scss" type="text/stylus" scoped> <style lang="scss" type="text/stylus" scoped>
.brandInf-add { .brandInf-add {
/deep/.el-dialog { /deep/.el-dialog {
......
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
<!--编辑--> <!--编辑-->
<el-dialog title="编辑店铺信息" :visible.sync="isOpen" width="65%" class="shopinf-edit" <el-dialog title="编辑店铺信息" :visible.sync="isOpen" width="65%" class="shopinf-edit"
center :destroy-on-close="true" :close-on-click-modal="false" :before-close="handleCancel"> center :destroy-on-close="true" :close-on-click-modal="false" :before-close="handleCancel">
<el-form v-if="isOpen" ref="editForm" :model="editForm" :rules="editRules" label-width="180px" size="small"> <el-form v-if="isOpen" ref="editForm" class="editForm" :model="editForm" :rules="editRules" label-width="180px" size="small">
<el-form-item label="电商平台经验:" prop="is_business_experience"> <el-form-item label="电商平台经验:" prop="is_business_experience">
<el-radio-group v-model="editForm.is_business_experience"> <el-radio-group v-model="editForm.is_business_experience">
...@@ -937,7 +937,14 @@ ...@@ -937,7 +937,14 @@
} }
} }
</script> </script>
<style scoped>
.box-card /deep/ .uploadData .el-upload-list--picture-card .el-upload-list__item{
line-height: 20px !important;
}
.editForm /deep/ .uploadData .el-upload-list--picture-card .el-upload-list__item{
line-height: 20px !important;
}
</style>
<style lang="scss" type="text/stylus" scoped> <style lang="scss" type="text/stylus" scoped>
.shopinf-edit { .shopinf-edit {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论