public function index()
{
$param = I('');
//搜索条件
$param['job'] ? $where['job'] = ['like', '%' . trim($param['job'] . '%')] : '';
//月薪范围
$monthly_pay = explode('至', $param['monthly_pay']);
switch ($param['monthly_pay']) {
case '2':
$where['monthly_pay2'] = ['lt', 3];
break;
case '2-5':
$where['monthly_pay2'] = ['gt', 2];
break;
case '5-10':
$where['monthly_pay2'] = ['gt', 5];
tp3 搜索 分页一套
![](https://img-home.csdnimg.cn/images/20240711042549.png)