发单页面的校验完善
This commit is contained in:
parent
82f8a40f87
commit
59a662d56a
|
|
@ -204,7 +204,7 @@
|
|||
<label class="col-sm-2 control-label is-required">图片上传:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="imageUrl" value="" hidden>
|
||||
<input type="file" name="imageUrlStr" id="imageUrlStr" multiple class="file" />
|
||||
<input type="file" name="imageUrlStr" id="imageUrlStr" multiple class="file" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -549,14 +549,20 @@
|
|||
// 类目
|
||||
let categoryIds = categoryCascader.getCheckedByID();
|
||||
if (!categoryIds || categoryIds.length === 0) {
|
||||
$.modal.msgError("请录入完整必填信息")
|
||||
$.modal.msgError("服务类目不能为空")
|
||||
return false;
|
||||
}
|
||||
|
||||
// 图片是否上传
|
||||
if (!$('input[name=imageUrl]').val()) {
|
||||
$.modal.msgError("图片未上传")
|
||||
return false;
|
||||
}
|
||||
|
||||
// 地区
|
||||
let checkedAreaPathList = areaCascader.getCheckedPaths();
|
||||
if (!checkedAreaPathList || checkedAreaPathList.length === 0) {
|
||||
$.modal.msgError("请录入完整必填信息")
|
||||
$.modal.msgError("服务地址不能为空")
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue