Authored by chaogeng

逛视频优化

... ... @@ -219,25 +219,6 @@
<button class="btn btn-info" type="button" id="TagsSelectBtn">选择标签</button>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">是否推荐到首页:</label>
<div class="col-sm-8" style="padding-top: 6px">
<input type="radio" value="0" name="isToHomePage" checked>
<label></label>
<input type="radio" value="1" name="isToHomePage">
<label></label>
<input type="hidden" id="isToHomePage" value="[[isToHomePage]]" for="radio"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">第二首页封面: </label>
<div class="col-sm-8">
<input type="file" name="homePageImage" id="homePageImage" value="[[homePageImage]]" accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp" placeholder="第二首页封面"/>
</div>
</div>
</div>
</script>
... ...
... ... @@ -51,14 +51,6 @@
</div>
<div class="panel-col">
<select id="isToHomePage" class="form-control">
<option value="-1">是否推荐到首页</option>
<option value="1"></option>
<option value="0"></option>
</select>
</div>
<div class="panel-col">
<select id="appType" class="form-control">
<option value="-1">是否BLK资讯</option>
<option value="1">是BLK</option>
... ...
... ... @@ -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";
/**
... ...