1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * 手机app发现tab页中的请求内容
- */
- defined('InShopNC') or exit('Access Invalid!');
- class findControl extends mobileHomeControl
- {
- public function __construct()
- {
- parent::__construct();
- }
- /**
- * 发现页面左边栏请求内容
- */
- public function category_listOp()
- {
- $category_list = Model()->table('category_item')->where(array('enable'=>'1'))->order('sort asc')->select();
- $result = array();
- foreach ($category_list as $value) {
- $item['id'] = $value['id'];
- $item['name'] = $value['name'];
- $item['type'] = $value['category_type'];
- $item['gc_id'] = $value['gc_id'];
- array_push($result, $item);
- }
- joutput_data(array("category" => $result));
- }
- }
|