About.php 828 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace app\home\controller;
  3. use think\Lang;
  4. use think\Cache;
  5. use think\Request;
  6. use think\Controller;
  7. use think\Validate;
  8. /**
  9. * 主页管理类
  10. */
  11. class About extends Common
  12. {
  13. /**
  14. * 构造函数
  15. *
  16. * @access public
  17. */
  18. public function __construct()
  19. {
  20. parent::__construct();
  21. }
  22. /**
  23. * 产品与服务
  24. *
  25. * @access public
  26. * @return array JsonString
  27. */
  28. public function about()
  29. {
  30. $getHomeInformation = model('homeinformation')->getHomeInformation();
  31. $this->assign('information', $getHomeInformation);
  32. return $this->fetch();
  33. }
  34. /**
  35. * 产品与服务详情
  36. *
  37. * @access public
  38. * @return array JsonString
  39. */
  40. public function details()
  41. {
  42. return $this->fetch();
  43. }
  44. }