文档有说可以在paginate带参数,然后研究了下,大概就是这样的:
$list=Db::name('member') ->where('member_name|member_mobile|sex','like','%'.$info.'%') ->paginate(8,false,['query'=>request()->param() ]); $this->assign('list',$list);