首页滚图和活动招募优化图片上传成功后保存数据
This commit is contained in:
parent
8d5d7df74c
commit
4cda333799
|
|
@ -33,7 +33,10 @@
|
|||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
//同步上传图片,并且将上传图片返回的地址,赋值到pictureUrl对应的隐藏域上
|
||||
uploadFile(false, "pictureUrl");
|
||||
let result = uploadFile(false, "pictureUrl");
|
||||
if (result != web_status.SUCCESS) {
|
||||
return;
|
||||
}
|
||||
$.operate.save(prefix + "/add", $('#form-carousel-add').serialize());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,10 @@
|
|||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
uploadFile(false, "pictureUrl");
|
||||
let result = uploadFile(false, "pictureUrl");
|
||||
if (result != web_status.SUCCESS) {
|
||||
return;
|
||||
}
|
||||
$.operate.save(prefix + "/edit", $('#form-carousel-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,7 +62,10 @@
|
|||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
uploadFile(false, "pictureUrl");
|
||||
let result = uploadFile(false, "pictureUrl");
|
||||
if (result != web_status.SUCCESS) {
|
||||
return;
|
||||
}
|
||||
$.operate.save(prefix + "/add", $('#form-recruitment-add').serialize());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,10 @@
|
|||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
uploadFile(false, "pictureUrl");
|
||||
let result = uploadFile(false, "pictureUrl");
|
||||
if (result != web_status.SUCCESS) {
|
||||
return;
|
||||
}
|
||||
$.operate.save(prefix + "/edit", $('#form-recruitment-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue