index.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | index 登录后的主页
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. #->fetch('.name', '<{Maze::load("/config-one#name", 1)}>')
  9. ->fetch('.name@style', 'display:none;')
  10. ->fetch('.company', '<{Maze::load("company/info.company#name")}>')
  11. ->fetch('.welcome', '<{Maze::load("company/info.user#username")}>,您好!')
  12. ->fetch('.user-out-btn@href', '<{Maze::url("company/user.quit")}>')
  13. ->fetch('.welcome@style', 'display:none;')
  14. ->fetch('.user-btn@style', 'display:none;')
  15. ->fetch('.user-setting-btn@href', '<{Maze::url("my/set")}>')
  16. ->fetch
  17. (
  18. '.service-list a',
  19. 'company/info.service',
  20. array
  21. (
  22. 'self' => array
  23. (
  24. 'html' => '<{$v.name}>',
  25. 'href' => '<{$v.link}>',
  26. 'class' => 'service-item index-<{$v.key}>',
  27. ),
  28. )
  29. )
  30. ->fetch
  31. (
  32. '.device-list a',
  33. 'company/info.park',
  34. array
  35. (
  36. 'self' => array
  37. (
  38. 'html' => '<{$v.name}>',
  39. 'href' => '<{Maze::load("company/info.park_url", $v)}>',
  40. 'class' => 'device-item <{$v.type == 4 ? "index-two" : "index-three"}>',
  41. //'target' => '_blank',
  42. ),
  43. )
  44. )
  45. ->fetch('.prompt', 'company/info.notice')
  46. ->fetch('.prompt@style', '<{Maze::load("company/info.notice") ? "" : "border:0px;height:auto;"}>')
  47. ->fetch('.area select', 'company/info.farm#option')
  48. ->fetch('.area .weather', 'company/info.farm#weather')
  49. ->fetch('.area select@maze-change', '<{Maze::url("index?farm=", "main")}>')
  50. ->fetch('.area select@class', 'maze-change')
  51. ->fetch('.area select@maze-value', '<{Maze::input("farm")}>');
  52. include('inc/common.php');