下载中心
-最新企业介绍及产品相关资料
+{$current_cate.title}
+{$current_cate.description}
diff --git a/app/common.php b/app/common.php index 0a6aee1..a8350f1 100644 --- a/app/common.php +++ b/app/common.php @@ -1600,3 +1600,17 @@ if (!function_exists('getMixContentBySolutionName')) { } } +if (!function_exists('getCategoryChildrenCount')) { + + /** + * 获取子栏目数量(支持无限级) + * @param int $id 栏目ID + * @param array $data 栏目数据(一维数组) + * @return int 子栏目数量 + */ + function getCategoryChildrenCount($id) + { + $categoryModel = new \app\model\Category(); + return $categoryModel->where('parent_id', $id)->count(); + } +} \ No newline at end of file diff --git a/public/themes/website/1/zh/demo/download.html b/public/themes/website/1/zh/demo/download.html index f225b49..8b7617e 100644 --- a/public/themes/website/1/zh/demo/download.html +++ b/public/themes/website/1/zh/demo/download.html @@ -43,48 +43,47 @@ integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> - - - - + + + +
{include file="components/header"} -最新企业介绍及产品相关资料
+{$current_cate.description}