|
...
|
...
|
@@ -9,6 +9,7 @@ use App\Models\CustomModule\CustomModuleCategory; |
|
|
|
use App\Models\IsCom\ProjectComConfig;
|
|
|
|
use App\Models\News\NewsCategory;
|
|
|
|
use App\Models\Product\Category;
|
|
|
|
use App\Models\Product\ProductType;
|
|
|
|
use App\Models\Project\PageSetting;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Models\Service\Service as ServiceSettingModel;
|
|
...
|
...
|
@@ -777,6 +778,14 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$productCategory = $this->getCategoryList((new Category()),1);
|
|
|
|
$newCategory = $this->getCategoryList((new NewsCategory()));
|
|
|
|
$blogCategory = $this->getCategoryList((new BlogCategory()));
|
|
|
|
$productTypeModel = new ProductType();
|
|
|
|
$productTypeList = $productTypeModel->list(['project_id'=>$this->user['project_id']],'id',['id','name']);
|
|
|
|
if(!empty($productTypeList)){
|
|
|
|
foreach ($productTypeList as $items){
|
|
|
|
$items['id'] = 'product_type_'.$items['id'];
|
|
|
|
$data["products"]["category"][] =$items;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!empty($productCategory)){
|
|
|
|
foreach ($productCategory as $item){$data["products"]["category"][] =$item;}
|
|
|
|
}
|
|
...
|
...
|
@@ -837,6 +846,14 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$values['category'][] = $item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$productTypeModel = new ProductType();
|
|
|
|
$productTypeList = $productTypeModel->list(['project_id'=>$this->user['project_id']],'id',['id','name']);
|
|
|
|
if(!empty($productTypeList)){
|
|
|
|
foreach ($productTypeList as $items){
|
|
|
|
$items['id'] = 'product_type_'.$items['id'];
|
|
|
|
$values['category'][] = $items;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case '新闻':
|
|
|
|
$newCategory = $this->getCategoryList((new NewsCategory()),0,['id','name','pid']);
|
...
|
...
|
|