作者 郭鑫
1 个管道 的构建 通过 耗费 0 秒

雇人修改

... ... @@ -22,6 +22,7 @@ class HireValidate extends Validate
'end_time' => 'require',
'address' => 'require',
'else' => 'require',
'people' => 'require',
];
protected $message = [
'select_id.require' => '雇佣事项不为空!',
... ... @@ -31,6 +32,7 @@ class HireValidate extends Validate
'end_time.require' => '工作结束时间不能为空!',
'address.require' => '工作地点不能为空!',
'else.require' => '工作要求不能为空!',
'people.require' => '招聘人数不能为空!',
];
... ...
... ... @@ -353,6 +353,7 @@
var end_time = $('.end').attr('index');
var address = $('.address').val();
var demand = $('.else').val();
var people = $('.people').val();
var isTrue = $(".select").hasClass("icon-yixuanze");
if(isTrue == true){
// console.log('4444444444444444');
... ... @@ -367,6 +368,7 @@
'end_time' : end_time,
'address' : address,
'else' : demand,
'people' : people,
},
success: function (res) {
if(res.code == 1){
... ...