Index.php 557 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\enterprise\controller;
  3. use app\enterprise\common\EnterpriseController;
  4. /**
  5. * Description of Index
  6. *
  7. * @author sgq
  8. */
  9. class Index extends EnterpriseController {
  10. public function index() {
  11. $vars["user"] = [
  12. "name" => $this->user["name"],
  13. "rolename" => $this->user["rolename"],
  14. "avatar" => $this->user["avatar"]
  15. ];
  16. $menus = \app\common\api\MenuApi::getEnterpriseMenuByType($this->user["type"]);
  17. $vars["menus"] = $menus;
  18. return view("", $vars);
  19. }
  20. }