作者 开飞机的舒克

根据活动筛选校区

... ... @@ -54,7 +54,6 @@ class Activity extends Api
* @ApiTitle (项目校区)
* @ApiMethod (POST)
* @ApiParams (name="id", type="interge", required=true, description="活动id")
* @ApiParams (name="page", type="string", required=false, description="分页")
* @ApiReturnParams (name="code", type="integer", required=true, description="状态码")
* @ApiReturnParams (name="msg", type="string", required=true, description="提示语")
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
... ... @@ -72,7 +71,7 @@ class Activity extends Api
->join('school s','s.id = c.school_id')
->field('c.*,a.title as activity_name,s.title as school_name')
->where('c.activity_id',$param['id'])
->paginate(10,false,['page'=>$param['page']]);
->select();
if (empty($data)) {
$this->error('当前还没有校区', ['status' => 2]);
}
... ...
... ... @@ -2312,12 +2312,6 @@
<td></td>
<td>活动id</td>
</tr>
<tr>
<td>page</td>
<td>string</td>
<td></td>
<td>分页</td>
</tr>
</tbody>
</table>
</div>
... ... @@ -2344,10 +2338,6 @@
<label class="control-label" for="id">id</label>
<input type="interge" class="form-control input-sm" id="id" required placeholder="活动id" name="id">
</div>
<div class="form-group">
<label class="control-label" for="page">page</label>
<input type="string" class="form-control input-sm" id="page" placeholder="分页" name="page">
</div>
<div class="form-group form-group-submit">
<button type="submit" class="btn btn-success send" rel="1">提交</button>
<button type="reset" class="btn btn-info" rel="1">重置</button>
... ... @@ -5782,7 +5772,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-29 08:42:53 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-29 09:03:42 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...