Commit c1aec8ae authored by daniel's avatar daniel

fix(index): 首页的弹框位置调整

parent 9f557bc0
......@@ -133,12 +133,8 @@ function cmptBgColorChange() {
function changeLogoImg(imgDomNName, inputDomName, top, left, width, height) {
var reads = new FileReader();
logoFile = document.getElementById(inputDomName).files[0];
if (logoFile.fileSize / 1000 > 500) {
layer.msg('上传的图片文件不能超过500KB。', { icon: 5, time: 1500 });
return;
}
if (logoFile.size / 1000 > 500) {
layer.alert('上传的图片文件不能超过500KB。', { icon: 5 });
layer.alert('上传的图片文件不能超过500KB。', { icon: 5, offset: ['100px', '50%'] });
return;
}
reads.readAsDataURL(logoFile);
......
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