Baidumap.php 652 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace app\admin\controller\example;
  3. use app\common\controller\Backend;
  4. /**
  5. * 百度地图
  6. *
  7. * @icon fa fa-map
  8. * @remark 可以搜索百度位置,调用百度地图的相关API
  9. */
  10. class Baidumap extends Backend
  11. {
  12. protected $model = null;
  13. public function _initialize()
  14. {
  15. parent::_initialize();
  16. $this->model = model('AdminLog');
  17. }
  18. /**
  19. * 查找地图
  20. */
  21. public function map()
  22. {
  23. return $this->view->fetch();
  24. }
  25. /**
  26. * 搜索列表
  27. */
  28. public function selectpage()
  29. {
  30. $this->model = model('Area');
  31. return parent::selectpage();
  32. }
  33. }