|
@@ -4,21 +4,18 @@
|
|
@endsection
|
|
@endsection
|
|
@section('content')
|
|
@section('content')
|
|
|
|
|
|
- @if(check_auth('admin/regiment_active/add'))
|
|
|
|
|
|
+ @if(check_auth('admin/recruitment_active/add'))
|
|
<div class="page-header">
|
|
<div class="page-header">
|
|
- <a href="{{url('admin/regiment_active/add')}}" class="btn btn-primary">新增</a>
|
|
|
|
|
|
+ <a href="{{url('admin/recruitment_active/add')}}" class="btn btn-primary">新增</a>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
<form action="" method="get" class="form-horizontal form-line">
|
|
<form action="" method="get" class="form-horizontal form-line">
|
|
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
|
|
|
|
- <input type="text" class="form-control" name="code" value="{{request('code','')}}" placeholder="请输入活动编码" />
|
|
|
|
- </div>
|
|
|
|
<div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
|
|
<div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
|
|
<input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入活动名称查询" />
|
|
<input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入活动名称查询" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
|
|
<div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
|
|
- <input type="text" class="form-control" name="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
|
|
|
|
|
|
+ <input type="text" class="form-control" name="id_code" value="{{request('id_code','')}}" placeholder="请输入活动编码查询" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group col col-md-1" style="margin-right: 2px;">
|
|
<div class="form-group col col-md-1" style="margin-right: 2px;">
|
|
<select name="status" class="form-control">
|
|
<select name="status" class="form-control">
|
|
@@ -35,7 +32,7 @@
|
|
<input type="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
|
|
<input type="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
|
|
</div>
|
|
</div>
|
|
<input type="submit" class="btn btn-sm btn-primary" value="查询"/>
|
|
<input type="submit" class="btn btn-sm btn-primary" value="查询"/>
|
|
- <a href="{{url('admin/regiment_active/index')}}" class="btn btn-sm btn-default" >重置</a>
|
|
|
|
|
|
+ <a href="{{url('admin/recruitment_active/index')}}" class="btn btn-sm btn-default" >重置</a>
|
|
</form>
|
|
</form>
|
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -44,16 +41,15 @@
|
|
<table class="table table-striped table-bordered table-hover">
|
|
<table class="table table-striped table-bordered table-hover">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
- <th>活动编码</th>
|
|
|
|
|
|
+ <th>活动ID</th>
|
|
<th>活动名称</th>
|
|
<th>活动名称</th>
|
|
- <th>产品名称</th>
|
|
|
|
- <th>拼团人数(人)</th>
|
|
|
|
- <th>活动价格(元)</th>
|
|
|
|
- <th>拼团有效期</th>
|
|
|
|
- <th>商业公司</th>
|
|
|
|
- <th>状态</th>
|
|
|
|
- <th>活动时间</th>
|
|
|
|
- <th>创建时间</th>
|
|
|
|
|
|
+ <th>活动城市</th>
|
|
|
|
+ <th>标签范围</th>
|
|
|
|
+ <th>开始时间</th>
|
|
|
|
+ <th>结束时间</th>
|
|
|
|
+ <th>内部跳转</th>
|
|
|
|
+ <th>宣发链接</th>
|
|
|
|
+ <th>活动状态</th>
|
|
<th>修改时间</th>
|
|
<th>修改时间</th>
|
|
<th>操作</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</tr>
|
|
@@ -62,15 +58,16 @@
|
|
<tbody>
|
|
<tbody>
|
|
@foreach ($list as $a)
|
|
@foreach ($list as $a)
|
|
<tr>
|
|
<tr>
|
|
- <th>{{$a['code']}}</th>
|
|
|
|
- <td style="white-space:pre">{{$a['name']}}</td>
|
|
|
|
- <td>{{$a['product_name']}}</td>
|
|
|
|
- <td>{{$a['number']}}</td>
|
|
|
|
- <td>{{$a['regiment_price']}}</td>
|
|
|
|
- <td>{{$a['expiration']}}</td>
|
|
|
|
- <td>{{$a['business_name']}}</td>
|
|
|
|
|
|
+ <th>{{$a['id_code']}}</th>
|
|
|
|
+ <td>{{$a['name']}}</td>
|
|
|
|
+ <td>{{$a['city_ids']}}</td>
|
|
|
|
+ <td>{{$a['tag_scope']}}</td>
|
|
|
|
+ <td>{{date('Y/m/d H:i:s',$a['start_time'])}}</td>
|
|
|
|
+ <td>{{date('Y/m/d H:i:s',$a['end_time'])}}</td>
|
|
|
|
+ <td>/pages/recruitment/index?id={{$a['id']}}</td>
|
|
|
|
+ <td>{{$a['mp_urllink']}}</td>
|
|
<td>
|
|
<td>
|
|
- @if( $a['status'] === 2)
|
|
|
|
|
|
+ @if( $a['status'] )
|
|
停用
|
|
停用
|
|
@else
|
|
@else
|
|
@if( $a['start_time'] <= time() && $a['end_time'] <= time() )
|
|
@if( $a['start_time'] <= time() && $a['end_time'] <= time() )
|
|
@@ -84,23 +81,24 @@
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</td>
|
|
- <td>{{date('Y/m/d H:i:s',$a['start_time'])}}<br/>{{date('Y/m/d H:i:s',$a['end_time'])}}</td>
|
|
|
|
- <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
|
|
|
|
<td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
|
|
<td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
|
|
<td>
|
|
<td>
|
|
- @if(check_auth('admin/regiment_active/edit'))
|
|
|
|
- <a href="{{url('admin/regiment_active/edit?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-warning" >编辑</a>
|
|
|
|
|
|
+ @if(check_auth('admin/recruitment_active_prize/edit'))
|
|
|
|
+ <a href="{{url('admin/recruitment_active_prize/edit?'.http_build_query(['active_id'=>$a['id']]))}}" class="btn btn-sm btn-primary" >奖励配置</a>
|
|
@endif
|
|
@endif
|
|
- @if(check_auth('admin/regiment_active/copy'))
|
|
|
|
- <a href="{{url('admin/regiment_active/copy?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-success" >复制</a>
|
|
|
|
|
|
+ @if(check_auth('admin/recruitment_active/edit'))
|
|
|
|
+ <a href="{{url('admin/recruitment_active/edit?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-warning" >编辑</a>
|
|
@endif
|
|
@endif
|
|
- @if(check_auth('admin/regiment_active/set_status'))
|
|
|
|
- @if($a['status'] === 2)
|
|
|
|
- <a data-url="{{url('admin/regiment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>1]))}}" class="set_status btn btn-sm btn-success" >启用</a>
|
|
|
|
|
|
+ @if(check_auth('admin/recruitment_active/set_status'))
|
|
|
|
+ @if($a['status'])
|
|
|
|
+ <a data-url="{{url('admin/recruitment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>0]))}}" class="set_status btn btn-sm btn-success" >启用</a>
|
|
@else
|
|
@else
|
|
- <a data-url="{{url('admin/regiment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>2]))}}" class="set_status btn btn-sm btn-danger" >停用</a>
|
|
|
|
|
|
+ <a data-url="{{url('admin/recruitment_active/set_status?'.http_build_query(['id'=>$a['id'],'status'=>1]))}}" class="set_status btn btn-sm btn-danger" >停用</a>
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
|
|
+ @if(check_auth('admin/recruitment_active/get_poster'))
|
|
|
|
+ <a href="{{url('admin/recruitment_active/get_poster?'.http_build_query(['id'=>$a['id']]))}}" class="btn btn-sm btn-success" >海报</a>
|
|
|
|
+ @endif
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@endforeach
|
|
@endforeach
|