| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | <?phpnamespace app\api\controller;use app\common\controller\Api;/** * 首页接口 */class Index extends Api{    protected $noNeedLogin = ['*'];    protected $noNeedRight = ['*'];    public function index()    {        $this->success();    }    /**     * 首页     *     */    public function home(){        //轮播图        $banner = Db::name('banner')->field('id, title, image, url')->where(['status' => 1])->order('weigh', 'desc')->select();        $banner = list_domain_image($banner, ['image']);        //四个顶部分类        //第一个顶部分类,的两个商品        //其他所有分类    }    //吃喝玩乐    //列表    public function chihewanle_list(){    }    //吃喝玩乐    //详情    public function chihewanle_info(){    }}
 |