|  | @@ -15,6 +15,7 @@ class Human extends MobileBaseController
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      protected function initialize()
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | +        session('mobile.human.open_id','sdfjosijdfoi1');
 | 
	
		
			
				|  |  |          $open_id = session('mobile.human.open_id');
 | 
	
		
			
				|  |  |          if (empty($open_id)) {
 | 
	
		
			
				|  |  |              session('mobile.human.back_url', request()->url(true));
 | 
	
	
		
			
				|  | @@ -145,7 +146,7 @@ class Human extends MobileBaseController
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          $this->_listValidate();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        $cooperate_list = [['text' => '业务范围', 'value' => '']];
 | 
	
		
			
				|  |  | +        $cooperate_list = [['text' => '全部', 'value' => '']];
 | 
	
		
			
				|  |  |          foreach (HumanInstitutionModel::COOPERATE as $cooperate) {
 | 
	
		
			
				|  |  |              $cooperate_list[] = ['text' => $cooperate, 'value' => $cooperate];
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -185,12 +186,18 @@ class Human extends MobileBaseController
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          $this->_listValidate();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        return view();
 | 
	
		
			
				|  |  | +        $cooperate_list = [['text' => '全部', 'value' => '']];
 | 
	
		
			
				|  |  | +        foreach (HumanInstitutionModel::COOPERATE as $cooperate) {
 | 
	
		
			
				|  |  | +            $cooperate_list[] = ['text' => $cooperate, 'value' => $cooperate];
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return view('', [
 | 
	
		
			
				|  |  | +            'cooperate_list' => json_encode($cooperate_list),
 | 
	
		
			
				|  |  | +        ]);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public function listEnterprise()
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -        $where   = $this->dealLikeInput(['name']);
 | 
	
		
			
				|  |  | +        $where   = $this->dealLikeInput(['name', 'cooperate']);
 | 
	
		
			
				|  |  |          $where[] = ['status', '=', HumanEnterpriseModel::STATUS_SHOW];
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          $list = HumanEnterpriseModel::where($where)
 | 
	
	
		
			
				|  | @@ -217,6 +224,7 @@ class Human extends MobileBaseController
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public function center()
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          $this->_listValidate();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return view();
 | 
	
	
		
			
				|  | @@ -229,7 +237,6 @@ class Human extends MobileBaseController
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public function guide()
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -        $this->_listValidate();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return view();
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -319,6 +326,13 @@ class Human extends MobileBaseController
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private function _listValidate()
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        $action = $this->request->action();
 | 
	
		
			
				|  |  | +        if ($action != 'center') {
 | 
	
		
			
				|  |  | +            if (time() < 1730736000) {
 | 
	
		
			
				|  |  | +                jump('11月5日开启,敬请期待','mobile/human/center');
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          $open_id = session('mobile.human.open_id');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          $institution = HumanInstitutionApplyModel::where('open_id', $open_id)->find();
 |