作者 lyh

gx

@@ -5,6 +5,7 @@ namespace App\Http\Logic\Bside\HomeCount; @@ -5,6 +5,7 @@ namespace App\Http\Logic\Bside\HomeCount;
5 5
6 use App\Http\Logic\Bside\BaseLogic; 6 use App\Http\Logic\Bside\BaseLogic;
7 use App\Models\RouteMap\RouteMap; 7 use App\Models\RouteMap\RouteMap;
  8 +use App\Models\Template\BCustomTemplate;
8 use App\Models\Visit\Visit; 9 use App\Models\Visit\Visit;
9 use App\Models\Visit\VisitItem; 10 use App\Models\Visit\VisitItem;
10 use App\Models\HomeCount\Count; 11 use App\Models\HomeCount\Count;
@@ -117,7 +118,7 @@ class CountLogic extends BaseLogic @@ -117,7 +118,7 @@ class CountLogic extends BaseLogic
117 public function with_data_count(){ 118 public function with_data_count(){
118 $product_count = (new Product())->where(['project_id' => $this->user['project_id']])->count(); 119 $product_count = (new Product())->where(['project_id' => $this->user['project_id']])->count();
119 $news_count = (new News())->where(['project_id' => $this->user['project_id']])->count(); 120 $news_count = (new News())->where(['project_id' => $this->user['project_id']])->count();
120 - $page_count = (new RouteMap())->where(['project_id' => $this->user['project_id']])->count(); 121 + $page_count = (new BCustomTemplate())->where(['project_id' => $this->user['project_id'],'status'=>1])->count();
121 $data = [ 122 $data = [
122 'product_count' => $product_count, 123 'product_count' => $product_count,
123 'news_count' => $news_count, 124 'news_count' => $news_count,