From e5b4b948fa723100688196234c66dbf3d21b310c Mon Sep 17 00:00:00 2001
From: anyv <anyu@bronet.cn>
Date: Thu, 30 May 2019 15:05:25 +0800
Subject: [PATCH] 分类

---
 app/portal/controller/ClassifyController.php | 5 +++++
 1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/app/portal/controller/ClassifyController.php b/app/portal/controller/ClassifyController.php
index 35f11ff..1b1e7f3 100644
--- a/app/portal/controller/ClassifyController.php
+++ b/app/portal/controller/ClassifyController.php
@@ -18,8 +18,13 @@ class ClassifyController extends WeChatBaseController{
      */
     public function classify(){
 
+        //所有分类
         $data_classify = Db::name('classification') -> select();
+        //所有标签
         $data_label = Db::name('label') -> select();
+        //获取默认分类商品
+        $data_goods = Db::name('goods') -> where("type = 1 and classify_id =".$data_classify[0]['id']) -> select();
+        dump($data_goods);die;
         $this -> assign('data_label',$data_label);
         $this -> assign('data_classify',$data_classify);
         return $this -> fetch();
--
libgit2 0.24.0