find.php 852 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * 手机app发现tab页中的请求内容
  4. */
  5. defined('InShopNC') or exit('Access Invalid!');
  6. class findControl extends mobileHomeControl
  7. {
  8. public function __construct()
  9. {
  10. parent::__construct();
  11. }
  12. /**
  13. * 发现页面左边栏请求内容
  14. */
  15. public function category_listOp()
  16. {
  17. $category_list = Model()->table('category_item')->where(array('enable'=>'1'))->order('sort asc')->select();
  18. $result = array();
  19. foreach ($category_list as $value) {
  20. $item['id'] = $value['id'];
  21. $item['name'] = $value['name'];
  22. $item['type'] = $value['category_type'];
  23. $item['gc_id'] = $value['gc_id'];
  24. array_push($result, $item);
  25. }
  26. joutput_data(array("category" => $result));
  27. }
  28. }