From 2e9875466549eb48310f090858cdf13dfb1dc966 Mon Sep 17 00:00:00 2001 From: xiaodong Date: Tue, 1 Sep 2026 12:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/website/1/zh/demo/category.html | 149 ++++++++++---------------- 1 file changed, 59 insertions(+), 90 deletions(-) diff --git a/public/themes/website/1/zh/demo/category.html b/public/themes/website/1/zh/demo/category.html index 3177856..c48352a 100644 --- a/public/themes/website/1/zh/demo/category.html +++ b/public/themes/website/1/zh/demo/category.html @@ -88,14 +88,16 @@ $current_cate_id = $current_cate['id'] ?? '';
-
-
- - {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title" subField="" name="hc_content" limit="100" item="content22" sort="sort asc"} - {/hcTaglib:contentPage2} + {hcTaglib:subcategory pid="333" item="vo" sort="" key="key"} + {php} + $sub_cate_id = $vo['id']; // 获取子分类的ID + // $need_show_sub_content = $vo['need_show_sub_content'] ?? 0; //是否需要展示此分类下的内容列表0=不展示,1=展示 + {/php} - {if !empty($hc_content)} +
+ {hcTaglib:subcategory pid="$sub_cate_id" item="vo_sub" sort="" key="key_sub"} - {volist name="hc_content" id="vo_content"} -
  • {$vo_content.title}--666666666666
  • - {/volist} + + {hcTaglib:contentPage2 cid="$vo_sub.id" mainField="id,category_id,title,sub_title" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc"} + {/hcTaglib:contentPage2} - {/if} + {if !empty($hc_content)} +
    + {volist name="hc_content" id="vo_content"} + + + {/volist} +
    + {else /} + + {/if} + {/hcTaglib:subcategory} +
    + {/hcTaglib:subcategory} + + +
    +