123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * 品牌获取
- */
- defined('InShopNC') or exit('Access Invalid!');
- require_once(BASE_ROOT_PATH . '/helper/brand_helper.php');
- class brandControl extends mobileHomeControl
- {
- public function __construct() {
- parent::__construct();
- }
- public function homeOp()
- {
- $blocks = [];
- $brands = brand_helper::instance()->brandex();
- $blocks[] = $brands['block'];
- return self::outsuccess(array("special_list" => $blocks,'mobile_page' => mobile_page(1)));
- }
- public function alpha_listOp()
- {
- $brands = brand_helper::instance()->alpha_list();
- return self::outsuccess(array("brands" => $brands,'mobile_page' => mobile_page(1)));
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- public function indexOp()
- {
- $brands = brand_helper::brands();
- return self::outsuccess(array("brands" => $brands));
- }
- }
|