->limit(0,18)
->select();
$this->view->assign("companylist",$companylist);
}elseif ($search["catetype"]=="3"){
//三级
$catelist=$this->filter_by_value ($catecache, "pid", $search["cateid"]);
if(!$catelist){
//如果是4的话,查找三级的pid
$pid=$this->filter_by_value ($catecache, "id", $search["cateid"]);
$pid=$pid[$search["cateid"]]["pid"];
//还是三级
$catelist=$this->filter_by_value ($catecache, "pid", $pid);
$where["cateid3"]=$search["cateid"];
$companylist=Db::name('company')->alias('p')
->join('member m','p.member_id= m.id')
->where(['m.group_id'=>['neq','1'],'p.cateid3'=>$search['cateid']])
->field("p.*,m.username")
->limit(0,18)