From 36cd83c72988f21c273fbe1b246ced9b20634cac Mon Sep 17 00:00:00 2001 From: xiaodong Date: Wed, 22 Jul 2026 20:58:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/website/1/zh/dongya-web/common/nav.html | 10 ++++++-- public/themes/website/1/zh/dongya-web/index.html | 30 ++++++++++++---------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/public/themes/website/1/zh/dongya-web/common/nav.html b/public/themes/website/1/zh/dongya-web/common/nav.html index 3832193..0d96076 100644 --- a/public/themes/website/1/zh/dongya-web/common/nav.html +++ b/public/themes/website/1/zh/dongya-web/common/nav.html @@ -34,7 +34,7 @@ // var_dump($current_cate);exit; $onFlag = -1; if($vo['category_id']==($current_cate['id'] ?? 0) || $vo['category_id'] == ($current_cate['parent_id'] ?? 0) ){ - $onFlag = 1; + $onFlag = 1; } {/php}
  • @@ -44,7 +44,13 @@
    {volist name="$vo.children" id="vv" } -
    {$vv.title}
    + {php} + $onSubFlag = 0; + if(($vv['category']['id'] ?? -1) != ($current_cate['id'] ?? 0)){ + $onSubFlag = 1; + } + {/php} +
    {$vv.title}
    {/volist}
    diff --git a/public/themes/website/1/zh/dongya-web/index.html b/public/themes/website/1/zh/dongya-web/index.html index c6bac94..415d7ad 100644 --- a/public/themes/website/1/zh/dongya-web/index.html +++ b/public/themes/website/1/zh/dongya-web/index.html @@ -267,8 +267,8 @@
    - - {hcTaglib:contentPage2 cid="187" mainField="*" subField="*" name="hc_content" limit="10" item="vo" sort="sort asc"} + + {hcTaglib:contentListByTagName tagStr="首页显示公司通知" moduleId="1" limit="30" mainField="id,title,sub_title,category_id,thumbnail,cover,create_time" sort="sort asc,id asc" item="vo"} {php} $detailUrl = hcUrl('detail/index',['id'=>$vo['id'] ?? 0,'cid'=>$vo['category_id'] ?? 0]); $thumbnailUrl = $vo['thumbnail']['url'] ?? ''; @@ -287,7 +287,7 @@
    - {/hcTaglib:contentPage2} + {/hcTaglib:contentListByTagName}
    @@ -298,8 +298,8 @@
    - - {hcTaglib:contentPage2 cid="188" mainField="*" subField="*" name="hc_content" limit="10" item="vo" sort="sort asc"} + + {hcTaglib:contentListByTagName tagStr="首页显示公司活动" moduleId="1" limit="30" mainField="id,title,sub_title,category_id,thumbnail,cover,create_time" sort="sort asc,id asc" item="vo"} {php} $detailUrl = hcUrl('detail/index',['id'=>$vo['id'] ?? 0,'cid'=>$vo['category_id'] ?? 0]); $thumbnailUrl = $vo['thumbnail']['url'] ?? ''; @@ -318,7 +318,7 @@
    - {/hcTaglib:contentPage2} + {/hcTaglib:contentListByTagName}
    @@ -329,7 +329,8 @@
    - {hcTaglib:contentPage2 cid="189" mainField="*" subField="*" name="hc_content" limit="10" item="vo" sort="sort asc"} + + {hcTaglib:contentListByTagName tagStr="首页显示市场热点" moduleId="1" limit="30" mainField="id,title,sub_title,category_id,thumbnail,cover,create_time" sort="sort asc,id asc" item="vo"} {php} $detailUrl = hcUrl('detail/index',['id'=>$vo['id'] ?? 0,'cid'=>$vo['category_id'] ?? 0]); $thumbnailUrl = $vo['thumbnail']['url'] ?? ''; @@ -348,7 +349,7 @@
    - {/hcTaglib:contentPage2} + {/hcTaglib:contentListByTagName}
    @@ -359,7 +360,8 @@
    - {hcTaglib:contentPage2 cid="190" mainField="*" subField="*" name="hc_content" limit="10" item="vo" sort="sort asc"} + + {hcTaglib:contentListByTagName tagStr="首页显示交易所公告" moduleId="1" limit="30" mainField="id,title,sub_title,category_id,thumbnail,cover,create_time" sort="sort asc,id asc" item="vo"} {php} $detailUrl = hcUrl('detail/index',['id'=>$vo['id'] ?? 0,'cid'=>$vo['category_id'] ?? 0]); $thumbnailUrl = $vo['thumbnail']['url'] ?? ''; @@ -378,17 +380,19 @@
    - {/hcTaglib:contentPage2} + {/hcTaglib:contentListByTagName} +
    - +
    - {hcTaglib:contentPage2 cid="191" mainField="*" subField="*" name="hc_content" limit="10" item="vo" sort="sort asc"} + + {hcTaglib:contentListByTagName tagStr="首页显示每日提示" moduleId="1" limit="30" mainField="id,title,sub_title,category_id,thumbnail,cover,create_time" sort="sort asc,id asc" item="vo"} {php} $detailUrl = hcUrl('detail/index',['id'=>$vo['id'] ?? 0,'cid'=>$vo['category_id'] ?? 0]); $thumbnailUrl = $vo['thumbnail']['url'] ?? ''; @@ -407,7 +411,7 @@
    - {/hcTaglib:contentPage2} + {/hcTaglib:contentListByTagName}