...
|
...
|
@@ -149,6 +149,20 @@ |
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr style="height: 60px">
|
|
|
<td>
|
|
|
<label>封面</label> <br>
|
|
|
<div id="coverImageUploadExt" style="float:left;">
|
|
|
</div>
|
|
|
<div>
|
|
|
<div style="float:left;">
|
|
|
<span style=" margin-left: 10px; color: red">1. 请上传 3:4/4:3/1:1 的图片,优质清晰的封面有利于推荐</span></br>
|
|
|
<span style=" margin-left: 10px; color: red">2. 请上传500K以内的图片,请勿上传像素过高的图片</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<!--选择信息流结构-->
|
|
|
<tr style="height: 60px">
|
|
|
<td style="width:100%;">
|
...
|
...
|
@@ -695,6 +709,56 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#coverImageUploadExt").imageUpload({
|
|
|
width: 171,
|
|
|
height: 120,
|
|
|
realInputName: "coverImage",
|
|
|
uploadInputName: "files",
|
|
|
url: serverContextPath + '/fileupload/uploadImgFile',
|
|
|
queryParams: {
|
|
|
bucket: "grassImg"
|
|
|
},
|
|
|
onBeforeSubmit: function () {
|
|
|
debugger;
|
|
|
var oobj = $(this).find("input[type='file']");
|
|
|
var files = oobj[0].files;
|
|
|
|
|
|
for(var i=0; i<files.length;i++){
|
|
|
var obj = files[i];
|
|
|
if(obj!=null && obj!=''){
|
|
|
if(obj.name.substring(obj.name.lastIndexOf(".")).toLowerCase() == '.png'){
|
|
|
$.messager.alert("提示","不允许上传png格式的图片", "info", function(){return false;});
|
|
|
return false;
|
|
|
}
|
|
|
if(obj.type.toLowerCase() == 'image/png'){
|
|
|
$.messager.alert("提示","不允许上传png格式的图片", "info", function(){return false;});
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$.messager.progress({
|
|
|
title: "正在执行",
|
|
|
msg: "正在执行,请稍后...",
|
|
|
interval: 500,
|
|
|
text: ""
|
|
|
});
|
|
|
},
|
|
|
filterFileName: function (data) {
|
|
|
debugger;
|
|
|
if (!data || data.code != 200) {
|
|
|
$.messager.progress("close");
|
|
|
$.messager.alert("错误", data.message);
|
|
|
return "";
|
|
|
}
|
|
|
return data.data;
|
|
|
},
|
|
|
onLoadSuccess: function (data) {
|
|
|
$.messager.progress("close");
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#imageUpload1").imageUpload({
|
|
|
width: 171,
|
|
|
height: 120,
|
...
|
...
|
@@ -784,6 +848,9 @@ |
|
|
$("#flowType").combobox('setValue',data.flowType);
|
|
|
}
|
|
|
|
|
|
//封面图
|
|
|
$("#coverImageUploadExt").imageUpload("setValue",data.coverImg);
|
|
|
|
|
|
|
|
|
var context = data.contentText;
|
|
|
if(context == null || context == '' || context == undefined){
|
...
|
...
|
|