Commit 14def6ae by liuchenxi

update: 删除礼品和优惠券的gif图片上传

parent 101e4f20
......@@ -1071,8 +1071,8 @@ export default {
this.$message.error('请上传小于2MB的图片');
return false;
}
if (file.type !== 'image/jpeg' && file.type !== 'image/png' && file.type !== 'image/jpg' && file.type !== 'image/gif') {
this.$message.error('请上传jpg,png,gif格式的图片');
if (file.type !== 'image/jpeg' && file.type !== 'image/png' && file.type !== 'image/jpg') {
this.$message.error('请上传jpg,png格式的图片');
return false;
}
if (localStorage.getItem('sign')) {
......
......@@ -41,7 +41,7 @@
<i class="el-icon-plus"></i>
</el-upload>
</div>
<p style="font-size: 12px; color: rgb(144, 147, 153);line-height:18px;margin-top:10px;">图片建议尺寸 800*800px,格式 jpg/png/gif,大小 1M 以内,你可以拖拽图片调整顺序,最多上传 5 张。</p>
<p style="font-size: 12px; color: rgb(144, 147, 153);line-height:18px;margin-top:10px;">图片建议尺寸 800*800px,格式 jpg/png,大小 1M 以内,你可以拖拽图片调整顺序,最多上传 5 张。</p>
<el-dialog :visible.sync="dialogVisibleImg">
<img width="100%" :src="dialogEnlargeImageUrl" alt />
</el-dialog>
......@@ -1543,8 +1543,8 @@ export default {
return false;
}
/*eslint-disable*/
if (file.type !== 'image/jpeg' && file.type !== 'image/png' && file.type !== 'image/jpg' && file.type !== 'image/gif') {
this.$message.error('请上传jpg,png,gif格式的图片');
if (file.type !== 'image/jpeg' && file.type !== 'image/png' && file.type !== 'image/jpg') {
this.$message.error('请上传jpg,png格式的图片');
return false;
}
if (localStorage.getItem('sign')) {
......
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