Commit 8e9053bd authored by 章建武's avatar 章建武

dep

parent 6d975c09
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<div class="row team_'+j+'" style="padding-left:15px;"> <div class="row team_'+j+'" style="padding-left:15px;">
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label" >图片标题</label> <label class="col-sm-2 control-label" >图片标题</label>
<input class="" name="img_title" maxlength="10" value="{$data.img_title}" required="required" style="width:525px;margin-left:12px;"value="" type="text"/> <input class="" name="img_title" maxlength="50" value="{$data.img_title}" required="required" style="width:525px;margin-left:12px;"value="" type="text"/>
</div> </div>
<div class="form-group" style="padding-left:10px;"> <div class="form-group" style="padding-left:10px;">
<div class="form-group"> <div class="form-group">
......
...@@ -8,14 +8,12 @@ namespace app\common\validate; ...@@ -8,14 +8,12 @@ namespace app\common\validate;
class IndexBannerValidate extends Validate class IndexBannerValidate extends Validate
{ {
protected $rule = [ protected $rule = [
'title|标题' => 'require', 'content|内容' => 'require',
'content|职位' => 'require',
'img_title|图片标题' => 'require', 'img_title|图片标题' => 'require',
]; ];
protected $message = [ protected $message = [
'title.require' => '标题不能为空',
'content.require' => '文章不能为空', 'content.require' => '文章不能为空',
'img_title.require' => '图片标题不能为空', 'img_title.require' => '图片标题不能为空',
......
...@@ -42,7 +42,7 @@ $(document).on('pjax:complete', function (xhr) { ...@@ -42,7 +42,7 @@ $(document).on('pjax:complete', function (xhr) {
}); });
//列表页搜索pjax //列表页搜索pjax
$(document).on('submit', '.searchForm', function (event) { $(document).on('submit', '.searchForm', function (event) {
$.pjax.submit(event, '#pjax-container'); $.pjax.submit(event, '');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment