...
|
...
|
@@ -1449,20 +1449,6 @@ e.on("validate", function () { |
|
|
if (Bll.contentDatas.length == 0 && $("#pcUrl").val() == "" && $("#url").val() == "") {
|
|
|
return "PC链接和APP链接和内容不能同时为空";
|
|
|
}
|
|
|
if ($("#isToHomePage").val() == "1" && $("#homePageImage").attr("value") == "") {
|
|
|
return "第二首页封面图不能为空";
|
|
|
}
|
|
|
if($("#homePageImage").attr("value") != ""){
|
|
|
var imageData = {};
|
|
|
imageData.src = $("#homePageImage").attr("value");
|
|
|
Bll.getPicNaturalSize(imageData);
|
|
|
if(imageData.size > 1024*1024){
|
|
|
return "第二首页封面图必须小于1MB";
|
|
|
}
|
|
|
if(imageData.width != 750 || imageData.height != 750){
|
|
|
return "第二首页封面图尺寸必须是750*750";
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
var imgsTem = "?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90";
|
|
|
/**
|
...
|
...
|
|