正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
| @@ -9,6 +9,7 @@ use App\Models\CustomModule\CustomModuleCategory; | @@ -9,6 +9,7 @@ use App\Models\CustomModule\CustomModuleCategory; | ||
| 9 | use App\Models\IsCom\ProjectComConfig; | 9 | use App\Models\IsCom\ProjectComConfig; |
| 10 | use App\Models\News\NewsCategory; | 10 | use App\Models\News\NewsCategory; |
| 11 | use App\Models\Product\Category; | 11 | use App\Models\Product\Category; |
| 12 | +use App\Models\Product\ProductType; | ||
| 12 | use App\Models\Project\PageSetting; | 13 | use App\Models\Project\PageSetting; |
| 13 | use App\Models\RouteMap\RouteMap; | 14 | use App\Models\RouteMap\RouteMap; |
| 14 | use App\Models\Service\Service as ServiceSettingModel; | 15 | use App\Models\Service\Service as ServiceSettingModel; |
| @@ -837,6 +838,13 @@ class BTemplateLogic extends BaseLogic | @@ -837,6 +838,13 @@ class BTemplateLogic extends BaseLogic | ||
| 837 | $values['category'][] = $item; | 838 | $values['category'][] = $item; |
| 838 | } | 839 | } |
| 839 | } | 840 | } |
| 841 | + $productType = $this->getCategoryList((new ProductType()),1,['id','name']); | ||
| 842 | + if(!empty($productType)){ | ||
| 843 | + foreach ($productCategory as $item){ | ||
| 844 | + $item['id'] = 'product_type_'.$item['id']; | ||
| 845 | + $values['category'][] = $item; | ||
| 846 | + } | ||
| 847 | + } | ||
| 840 | break; | 848 | break; |
| 841 | case '新闻': | 849 | case '新闻': |
| 842 | $newCategory = $this->getCategoryList((new NewsCategory()),0,['id','name','pid']); | 850 | $newCategory = $this->getCategoryList((new NewsCategory()),0,['id','name','pid']); |
-
请 注册 或 登录 后发表评论