From 6e63885967f4512571d1797a5e7fe2c5a30e7fe3 Mon Sep 17 00:00:00 2001 From: xiaodong Date: Sat, 5 Sep 2026 15:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E6=96=87=E6=A8=A1=E6=9D=BF=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/website/1/en/demo/about.html | 333 ++++++ public/themes/website/1/en/demo/announce.html | 131 +++ public/themes/website/1/en/demo/category.html | 227 ++++ .../themes/website/1/en/demo/components/empty.html | 8 + .../website/1/en/demo/components/footer.html | 174 +-- .../website/1/en/demo/components/header.html | 665 +++++++++-- .../themes/website/1/en/demo/components/mask.html | 202 ++++ public/themes/website/1/en/demo/contact.html | 252 +++++ public/themes/website/1/en/demo/download.html | 149 +++ public/themes/website/1/en/demo/faq.html | 126 +++ public/themes/website/1/en/demo/favicon.ico | Bin 0 -> 10462 bytes public/themes/website/1/en/demo/investment.html | 280 +++++ public/themes/website/1/en/demo/news-detail.html | 218 ++++ public/themes/website/1/en/demo/news.html | 239 ++++ public/themes/website/1/en/demo/product.html | 482 ++++++++ public/themes/website/1/en/demo/search.html | 192 ++++ public/themes/website/1/en/demo/single_index.html | 1172 ++++++++++++++++---- public/themes/website/1/en/demo/single_search.html | 368 ++++-- public/themes/website/1/en/demo/solution.html | 259 +++++ public/themes/website/1/en/demo/solution2.html | 280 +++++ public/themes/website/1/en/demo/video.html | 147 +++ 21 files changed, 5388 insertions(+), 516 deletions(-) create mode 100644 public/themes/website/1/en/demo/about.html create mode 100644 public/themes/website/1/en/demo/announce.html create mode 100644 public/themes/website/1/en/demo/category.html create mode 100644 public/themes/website/1/en/demo/components/empty.html create mode 100644 public/themes/website/1/en/demo/components/mask.html create mode 100644 public/themes/website/1/en/demo/contact.html create mode 100644 public/themes/website/1/en/demo/download.html create mode 100644 public/themes/website/1/en/demo/faq.html create mode 100644 public/themes/website/1/en/demo/favicon.ico create mode 100644 public/themes/website/1/en/demo/investment.html create mode 100644 public/themes/website/1/en/demo/news-detail.html create mode 100644 public/themes/website/1/en/demo/news.html create mode 100644 public/themes/website/1/en/demo/product.html create mode 100644 public/themes/website/1/en/demo/search.html create mode 100644 public/themes/website/1/en/demo/solution.html create mode 100644 public/themes/website/1/en/demo/solution2.html create mode 100644 public/themes/website/1/en/demo/video.html diff --git a/public/themes/website/1/en/demo/about.html b/public/themes/website/1/en/demo/about.html new file mode 100644 index 0000000..9d9bce8 --- /dev/null +++ b/public/themes/website/1/en/demo/about.html @@ -0,0 +1,333 @@ + + + + + + + 关于我们 - 睿能科技 + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+
+
+

+ {$current_cate.content|raw} +

+
+ +
+ {hcTaglib:category id="372" item="vo" field="*"} +
+

{$vo.title}

+
+
+

{:nl2br($vo.description)}

+
+ {php} + $stats_raw = explode(',', $vo['desc']); + $stats_list = []; + foreach ($stats_raw as $item) { + $parts = explode(';', $item); + if (count($parts) === 3) { + $stats_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'text' => $parts[2]]; + } + } + {/php} +
    + {volist name="stats_list" id="stat"} +
  • + {$stat.num}{$stat.unit} + {$stat.text} +
  • + {/volist} +
+
+
+ {/hcTaglib:category} + + + {hcTaglib:category id="373" item="vo" field="*"} +
+
+

{$vo.title}

+
+ + +
+
+
+
+ {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="10" mainField="id,title,sub_title,content,thumbnail" sort="sort desc" subField="" onlyData="2"} +
+ + +

{$case_top.title}

+

{$case_top.content|strip_tags}

+
+ +
+
+ {/hcTaglib:content} +
+
+
+
+ + +
+
+
+ {/hcTaglib:category} + {hcTaglib:category id="374" item="vo" field="*"} +
+ +
+

{$vo.title}

+ {php} + $culture_raw = explode('#', $vo['description']); + $culture_list = []; + foreach ($culture_raw as $item) { + $parts = explode(';', $item); + if (count($parts) === 3) { + $culture_list[] = ['zh' => $parts[0], 'en' => $parts[1], 'text' => $parts[2]]; + } + } + {/php} +
+ {volist name="culture_list" id="culture"} +
+
+ {$culture.zh} + {$culture.en} +
+

{$culture.text|raw}

+
+ {/volist} +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="375" item="vo" field="*"} +
+

{$vo.title}

+ {php} + $global_raw = explode(',', $vo['description']); + $global_list = []; + foreach ($global_raw as $item) { + $parts = explode(';', $item, 3); + if (count($parts) >= 2) { + $desc = isset($parts[2]) ? str_replace(';', '
', $parts[2]) : ''; + $global_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'desc' => $desc]; + } + } + $global_left = array_slice($global_list, 0, 3); + $global_right = array_slice($global_list, 3); + {/php} +
+
    + {volist name="global_left" id="item"} +
  • + {$item.num}{$item.unit} + {if $item.desc}{$item.desc|raw}{/if} +
  • + {/volist} +
+
+ +
+
    + {volist name="global_right" id="item"} +
  • + {$item.num}{$item.unit} + {if $item.desc}{$item.desc|raw}{/if} +
  • + {/volist} +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="376" item="vo" field="*"} +
+ +
+

{$vo.title}

+
+
+ {php}$member_idx = 0;{/php} + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="10" mainField="id,url,title,sub_title,content,thumbnail" sort="sort desc" subField="" onlyData="2"} +
+
+
+

{$case_top.title}

+

+ {$case_top.content|strip_tags} +

+
+ 探索更多 +
+
+ {php}$member_idx++;{/php} + {/hcTaglib:content} +
+ +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="377" item="vo" field="*"} +
+
+

{$vo.title}

+

{$vo.description}

+
+
+
    + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="10" mainField="id,url,title,sub_title,content,thumbnail" sort="sort desc" subField="" onlyData="2"} +
  • + {$case_top.title} + + + + + + + + + 查看证书 + + +
  • + {/hcTaglib:content} +
+ +
+
+ {/hcTaglib:category} + + {hcTaglib:category id="378" item="vo" field="*"} +
+ +
+

{$vo.title}

+
+

+ {$vo.description} +

+ 社会责任报告 +
+
+
+ {/hcTaglib:category} +
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/1/en/demo/announce.html b/public/themes/website/1/en/demo/announce.html new file mode 100644 index 0000000..4ecfcc4 --- /dev/null +++ b/public/themes/website/1/en/demo/announce.html @@ -0,0 +1,131 @@ + + + + + + + 产品公告 - 睿能科技 + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+
+ + +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="8" item="vo"} + + +

{$vo.title}

+ + 探索更多 + + + + + +
+ {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关公告'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/category.html b/public/themes/website/1/en/demo/category.html new file mode 100644 index 0000000..229ead0 --- /dev/null +++ b/public/themes/website/1/en/demo/category.html @@ -0,0 +1,227 @@ + + +{php} +// var_dump($current_cate); +$current_cate_id = $current_cate['id'] ?? ''; +//exit(); +{/php} + + + + + 工业控制产品 - 睿能科技 + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+ + +
+ + +
+ {hcTaglib:subcategory pid="333" item="vo" sort="" key="key_top"} + {php} + $sub_cate_id = $vo['id']; + $need_show_sub_content = (int)($vo['need_show_sub_content'] ?? 0); + {/php} + {hcTaglib:subcategory pid="$sub_cate_id" onlyData="1"} + {/hcTaglib:subcategory} + {php} + $level2_list = $hc_subcategory ?? []; + $has_level2 = !empty($level2_list); + {/php} + +
+
+ {if $has_level2} + {volist name="level2_list" id="vo_sub" key="key_sub"} + {hcTaglib:contentPage2 cid="$vo_sub.id" mainField="id,category_id,title,sub_title,thumbnail" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc"} + {/hcTaglib:contentPage2} + {volist name="hc_content" id="vo_content"} + + {/volist} + {/volist} + {else /} + + {hcTaglib:contentPage2 cid="$vo.id" mainField="id,category_id,title,sub_title,thumbnail" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc"} + {/hcTaglib:contentPage2} + {volist name="hc_content" id="vo_content"} + + {/volist} + {/if} +
+ + +
+ + {/hcTaglib:subcategory} + +
+
+
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/components/empty.html b/public/themes/website/1/en/demo/components/empty.html new file mode 100644 index 0000000..84b80ab --- /dev/null +++ b/public/themes/website/1/en/demo/components/empty.html @@ -0,0 +1,8 @@ +{php} +if (!isset($empty_text) || $empty_text === '') { + $empty_text = '暂无相关内容'; +} +{/php} +
+

{$empty_text}

+
diff --git a/public/themes/website/1/en/demo/components/footer.html b/public/themes/website/1/en/demo/components/footer.html index 2a7d84f..081ab56 100644 --- a/public/themes/website/1/en/demo/components/footer.html +++ b/public/themes/website/1/en/demo/components/footer.html @@ -1,128 +1,60 @@ -
-
+ \ No newline at end of file diff --git a/public/themes/website/1/en/demo/components/header.html b/public/themes/website/1/en/demo/components/header.html index 39cb396..dc7c863 100644 --- a/public/themes/website/1/en/demo/components/header.html +++ b/public/themes/website/1/en/demo/components/header.html @@ -1,93 +1,580 @@ -
-
- -
-
-
- -
+ diff --git a/public/themes/website/1/en/demo/components/mask.html b/public/themes/website/1/en/demo/components/mask.html new file mode 100644 index 0000000..b2251bb --- /dev/null +++ b/public/themes/website/1/en/demo/components/mask.html @@ -0,0 +1,202 @@ +
+
+ +
+ + + + + + + +
+
+
+ +
+
\ No newline at end of file diff --git a/public/themes/website/1/en/demo/contact.html b/public/themes/website/1/en/demo/contact.html new file mode 100644 index 0000000..7430c8b --- /dev/null +++ b/public/themes/website/1/en/demo/contact.html @@ -0,0 +1,252 @@ + + + + + + + 联系我们 - 睿能科技 + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+

+ {$current_cate.sub_title}
{$current_cate.desc}
+

+
+
+ + 客服热线 +
+ {hcTaglib:setting name="company_phone" type="1" /} +

{$current_cate.description}

+
+
+ +
+ + +
+ +
+

+ 填写以下信息我们 + 第一时间回复 +

+ +
+
+ + + + + + + +
+ + + + +
+
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/download.html b/public/themes/website/1/en/demo/download.html new file mode 100644 index 0000000..dd57ec3 --- /dev/null +++ b/public/themes/website/1/en/demo/download.html @@ -0,0 +1,149 @@ + + + +{php}$download_keywords = input('keywords', '');{/php} + + + + + 下载中心 - 睿能科技 + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+
+
+ {php} + $download_cid = (string)input('cid', ''); + if ($download_cid === '') { + $download_cid = (string)($current_cate['id'] ?? ''); + } + $download_all_id = (string)($current_cate['id'] ?? ''); + {/php} + + {volist name="sub_cates" id="vo"} + {php} + $count = getCategoryChildrenCount($vo['id']); + $vo_id = (string)($vo['id'] ?? ''); + {/php} + {if $count > 0} +
+ + +
+ {else} + + {/if} + {/volist} +
+ +
+
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} + +
+ + {$vo.title} +
+ + + 立即下载 + +
+ {/hcTaglib:contentPage} + +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关资料'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/1/en/demo/faq.html b/public/themes/website/1/en/demo/faq.html new file mode 100644 index 0000000..9fa8691 --- /dev/null +++ b/public/themes/website/1/en/demo/faq.html @@ -0,0 +1,126 @@ + + + + + + + 常见问题 - 睿能科技 + + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+
+ + {volist name="sub_cates" id="vo"} + + {/volist} +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="10" item="vo"} +
+ +
+

+ {$vo.content|strip_tags} +

+
+
+ {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关问题'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/favicon.ico b/public/themes/website/1/en/demo/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..008a811756d371d51f86380b7afca05d5a13a68a GIT binary patch literal 10462 zcmeI2Pl%OO7{<>~X<&v?L{ST2s!_y$_y1VVobz26gQ8lr$Tk_ZDB1)SZ3=80LHj#I zNP|O*2yIGSMUbF5MKM~GWMD<0(?F%popY`xVkNiVbH49Nvv=X*%<$ZEzW2Q6J@50r z&-rE+*O(rDOC`hSQZu#8n466;3Kc(m>Kc(m>Kc z(m>Kc(m>Kc(m>Kc(m>L{<|S-VrUtxZ)sXKF4yg)K0?1hj6dfblK-#_CzytYzOCK>UN)&tN-L#kcDG z%W-cO{$acbIt9)$YJCgic${m0e*Qk5&w#_AqntTsvEmc+aJ?Bijm+Gy>4tysSp+l8F3pJe>3;PG1I zVP`Y)CvWB6GG*rFoX0Nq?UgTiT+crBP4z!ebN)a+53}UC4z7RltUet_V+&UoT>70~ zB|mbwGw)G&yar!vCo1Tv4$#?EJWm()8TD4cCNAQ!Te>YfKh|I`XZ=VGmb3mv!Q)lt z>hFHW5%L?MzFXO|LNz7V53uiv+IC^5>czgJ;4bXnQ5;iH(-vI*2{QQ6I@@6!3#h3}(`QD4Mc z&HOBD?`Vzjc)aV;-}gmZwEG4cABV3>QNejbZD&%z4kC-U>#9qw~a1s!rXKG#{YbC;_i);qqVvhY#v z4{!B?JD~m$=lkfNg(>wf>L3fh5$jMf*SqMi?%uLhFF4Ddya!viA8+ROy!EVjC=Tc; zz+LgLz)PCHsQl39`WU+z`mxP)W8)(|oG+fa!~Sm7TZmf9$EDr%s3q0f`Qd1bItzW5 z_PDSt+MTa4Zq!`o!+FmtVxcMCl0OKC_BAg zkNw=`_#2dBr2l1-29gGn29gGn29gGn29gGn29gGn29gGn29gE}4KN(kcjB(-amhgM zxP8Ew8*cA?*WPbT@Awm=8>aZK-?lGD?Y+iaJ2ko4T4QdR+&sKtlJEXazdk(VSf9CW Nfo+;Ao?o~A{{gq$qCx-w literal 0 HcmV?d00001 diff --git a/public/themes/website/1/en/demo/investment.html b/public/themes/website/1/en/demo/investment.html new file mode 100644 index 0000000..6f49b25 --- /dev/null +++ b/public/themes/website/1/en/demo/investment.html @@ -0,0 +1,280 @@ + + + + + + + 投资者关系 - 睿能科技 + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+
+

+ {$current_cate.content|raw} +

+
+ +
+ {hcTaglib:category id="366" item="vo" field="*"} + {php} + $descStr = $vo['description'] ?? ''; + $infoList = []; + $pairs = explode('#', $descStr); + foreach ($pairs as $pair) { + $parts = explode(';', $pair, 2); + if (count($parts) === 2) { + $infoList[] = ['label' => trim($parts[0]), 'value' => trim($parts[1])]; + } + } + {/php} +
+

{$vo.title}

+
+ {volist name="infoList" id="info" key="k"} +
+ {$info.label} + {$info.value} +
+ {/volist} +
+
+ {/hcTaglib:category} + {hcTaglib:category id="367" item="vo" field="*"} +
+
+

{$vo.title}

+
+ + +
+
+
+
+ {hcTaglib:contentPage cid="367" mainField="*" subField="*" name="hc_content" limit="12" item="vo"} + + {/hcTaglib:contentPage} +
+
+
+
+ + +
+
+
+ {/hcTaglib:category} + +
+

股票信息

+
+
+

股票代码:603933

+
+ 20.98 + + +0.37  +1.75% +
+
    +
  • + 最高(元) + 20.98 +
  • +
  • + 最低(元) + 20.23 +
  • +
  • + 成交量(万手) + 3.25 +
  • +
  • + 成交额(万元) + 6684.00 +
  • +
+

截止 2026-08-14 09:40:31*报价有十五分钟或以上延迟。

+
+
+ 股票走势图 +
+
+
+ + {hcTaglib:category id="369" item="vo" field="*"} +
+

{$vo.title}

+
+ + +
+
+ {/hcTaglib:category} + + {hcTaglib:category id="370" item="vo" field="*"} +
+ +
+

{$vo.title}

+ +
+
+ {/hcTaglib:category} +
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/1/en/demo/news-detail.html b/public/themes/website/1/en/demo/news-detail.html new file mode 100644 index 0000000..7a499a1 --- /dev/null +++ b/public/themes/website/1/en/demo/news-detail.html @@ -0,0 +1,218 @@ + + + {php} // TDK设置 ================================= START + $tdk_title = $hc_content['seo_title'] ?? ''; + if(empty($tdk_title)){ + $tdk_title = $hc_content['title'] ?? '搜索结果'; + } + $tdk_description = $hc_content['seo_description'] ?? ''; + if(empty($tdk_description)){ + $tdk_description = $hc_content['sub_title'] ?? ''; + } + $tdk_keywords = $hc_content['seo_keywords'] ?? ''; + if(empty($tdk_keywords)){ + $tdk_keywords = $hc_content['sub_title'] ?? ''; + } + + $create_time_str = $hc_content['create_time'] ?? ''; + $hc_content_tmp_news = $hc_content; + // dd($hc_content); + // dd($create_time_int); + // TDK设置 ================================= END {/php} + + + + + {$tdk_title} + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+ + + + + Back + + +
+
+

{$hc_content_tmp_news['title']}

+ +
+ +
+ {$hc_content_tmp_news['content']|raw} +
+ + + +
+
+
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/news.html b/public/themes/website/1/en/demo/news.html new file mode 100644 index 0000000..f142c38 --- /dev/null +++ b/public/themes/website/1/en/demo/news.html @@ -0,0 +1,239 @@ + + + + + {php} + $current_cate_id = $current_cate['id'] ?? ''; + // var_dump($current_cate);exit; + {/php} + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+ {hcTaglib:category id="361" item="vo" field="id,title,alias"} + {php} + $news_cate_info = $vo; + $news_cate_info_alias = $vo['alias'] ?? ''; + {/php} + {/hcTaglib:category} +
+
+

+ 了解睿能科技 + 新闻动态 +

+
+ {php} + $news_active_cat = (string)input('cat', ''); + if ($news_active_cat === '' || $news_active_cat === 'all') { + $news_active_cat = (string)($current_cate_id ?: ($news_cate_info['id'] ?? '')); + } + $news_all_cat = (string)($news_cate_info['id'] ?? ''); + {/php} + 全部 + {hcTaglib:subcategory pid="$news_cate_info['id']" item="vo" sort=""} + {$vo.title} + {/hcTaglib:subcategory} +
+
+ + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_featured" limit="100" item="content_sub22" sort="sort asc" isTop="1"} + {/hcTaglib:contentPage2} + {php} + $news_has_featured = false; + if (!empty($hc_featured)) { + if (is_object($hc_featured) && method_exists($hc_featured, 'isEmpty')) { + $news_has_featured = !$hc_featured->isEmpty(); + } elseif (is_countable($hc_featured)) { + $news_has_featured = count($hc_featured) > 0; + } + } + {/php} + {if $news_has_featured} + + {/if} + +
+ + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_content" limit="6" item="content_sub22" sort="sort asc" isTop="222"} + {/hcTaglib:contentPage2} + + {volist name="hc_content" id="vo_content"} + {php} + $content = $hc_content['content'] ?? ''; + $description = $hc_content['description'] ?? ''; + $create_time_int = $hc_content['create_time'] ?? ''; + $create_time_str = ''; + if(!empty($create_time_int)){ + $create_time_str = date('Y-m-d', $create_time_int); + } + // dd($hc_content->toArray());exit; + {/php} + + + {/volist} + +
+ + {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关新闻'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + + {$hc_content|raw} + {/if} + +
+
+{include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/1/en/demo/product.html b/public/themes/website/1/en/demo/product.html new file mode 100644 index 0000000..cd1c55f --- /dev/null +++ b/public/themes/website/1/en/demo/product.html @@ -0,0 +1,482 @@ + + +{php} +// var_dump($hc_content);exit; +// 基本信息 +$id = $hc_content['id'] ?? ''; +$category_id = $hc_content['category_id'] ?? ''; +$sub_category_ids = $hc_content['sub_category_ids'] ?? ''; +$module_id = $hc_content['module_id'] ?? ''; +$lang = $hc_content['lang'] ?? ''; +$main_id = $hc_content['main_id'] ?? ''; +$title = $hc_content['title'] ?? ''; +$sub_title = $hc_content['sub_title'] ?? ''; +$description = $hc_content['description'] ?? ''; +$content = $hc_content['content'] ?? ''; +$cover = $hc_content['cover'] ?? ''; +$hits = $hc_content['hits'] ?? ''; +$admin_id = $hc_content['admin_id'] ?? ''; +$author = $hc_content['author'] ?? ''; +$status = $hc_content['status'] ?? ''; +$check_status = $hc_content['check_status'] ?? ''; +$url = $hc_content['url'] ?? ''; +$publish_time = $hc_content['publish_time'] ?? ''; +$is_top = $hc_content['is_top'] ?? ''; +$top_time = $hc_content['top_time'] ?? ''; +$is_recommend = $hc_content['is_recommend'] ?? ''; +$sort = $hc_content['sort'] ?? ''; +$detail_tpl = $hc_content['detail_tpl'] ?? ''; +$seo_title = $hc_content['seo_title'] ?? ''; +$seo_keyword = $hc_content['seo_keyword'] ?? ''; +$seo_description = $hc_content['seo_description'] ?? ''; +$version = $hc_content['version'] ?? ''; +$show_version = $hc_content['show_version'] ?? ''; +$is_del = $hc_content['is_del'] ?? ''; +$del_user_id = $hc_content['del_user_id'] ?? ''; +$delete_time = $hc_content['delete_time'] ?? ''; +$create_time = $hc_content['create_time'] ?? ''; +$update_time = $hc_content['update_time'] ?? ''; +$tag = $hc_content['tag'] ?? []; + +// 缩略图 +$thumbnail = (array)($hc_content['thumbnail'] ?? []); +$thumbnail_id = $thumbnail['id'] ?? ''; +$thumbnail_name = $thumbnail['name'] ?? ''; +$thumbnail_url = $thumbnail['url'] ?? ''; +$thumbnail_type = $thumbnail['type'] ?? ''; +$thumbnail_description = $thumbnail['description'] ?? ''; + +// 扩展内容 +$main_content = $hc_content['main_content'] ?? []; +$main_content_id = $main_content['id'] ?? ''; +$rich_text_two = $main_content['rich_text_two'] ?? ''; +$pic_many_one = $main_content['pic_many_one'] ?? []; // 产品介绍多图 +$pic_many = $main_content['pic_many'] ?? []; // 规格参数展示图集 +$rich_text_three = $main_content['rich_text_three'] ?? ''; // 规格参数第一个富文本框 +$rich_text_four = $main_content['rich_text_four'] ?? ''; +$rich_text_five = $main_content['rich_text_five'] ?? ''; +$rich_text_six = $main_content['rich_text_six'] ?? ''; +$rich_text_seven = $main_content['rich_text_seven'] ?? ''; +$resource_download_names = $main_content['resource_download_names'] ?? ''; // 下载文件自定义名称 +$atlas = $main_content['atlas'] ?? []; +$file = $main_content['file'] ?? ''; +$content_desc = $main_content['content_desc'] ?? ''; +$mc_lang = $main_content['lang'] ?? ''; +$lang_pid = $main_content['lang_pid'] ?? ''; +$sub_id = $main_content['sub_id'] ?? ''; +$mc_create_time = $main_content['create_time'] ?? ''; +$mc_update_time = $main_content['update_time'] ?? ''; + +// 资源图片 +$resource_pic = (array)($main_content['resource_pic'] ?? []); +$resource_pic_id = $resource_pic['id'] ?? ''; +$resource_pic_name = $resource_pic['name'] ?? ''; +$resource_pic_url = $resource_pic['url'] ?? ''; +$resource_pic_type = $resource_pic['type'] ?? ''; +$resource_pic_description = $resource_pic['description'] ?? ''; +$resource_pic_children = $resource_pic['children'] ?? []; + +// 资源下载 +$resource_download = $main_content['resource_download'] ?? []; +{/php} + + + + + {$title} - 睿能科技 + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + + + +
+
+
+

{$title}

+ 查看选型表 +
+ + RA3系列伺服驱动器 +
+
+
+ + +
+
+
+ + +
+ +
+ {$rich_text_two|raw} +
+
+
+ + +
+
+

规格参数

+ +
+ 产品型号 + +
+ +
+ {volist name="pic_many" id="vo" key="key"} +
+ {switch $key} + {case 1}{$rich_text_three|raw}{/case} + {case 2}{$rich_text_four|raw}{/case} + {case 3}{$rich_text_five|raw}{/case} + {case 4}{$rich_text_six|raw}{/case} + {case 5}{$rich_text_seven|raw}{/case} + {default /}暂无匹配内容 + {/switch} +
+ {/volist} + + {if $total_standard_num == 0} + + {$rich_text_three|raw} + {/if} + +
+
+
+ + + + {php} + // 1. 直接按照 %% 分割 + $mainArray = explode("%%", $resource_download_names); + $download_names = []; + // 2. 遍历并拆分 + foreach ($mainArray as $item) { + if (trim($item) !== '' && !empty($item)) { + $download_names[] = explode("##", trim($item)); + } + } + // 文件匹配 + $map = [ + 'png' => '图片', + 'jpg' => '图片', + 'jpeg' => '图片', + 'pdf' => 'PDF', + 'doc' => 'DOC', + 'docx' => 'DOC', + 'zip' => '压缩包', + '7z' => '压缩包', + 'rar' => '压缩包', + ]; + + {/php} +
+
+
+ RA3资料示意 +
+
+

资料下载

+
    + {volist name="resource_download" id="one_resource" key="key"} + {php} + $downloadUrl = $one_resource['url'] ?? ''; + $nameTmp = $download_names[$key-1][0] ?? ($one_resource['name'] ?? '文件-'.$key); + $descTmp = $download_names[$key-1][1] ?? ('描述-'.$key); + $dateTmp = $download_names[$key-1][2] ?? ('日期-'.$key); + $ext = strtolower(pathinfo($one_resource['url'], PATHINFO_EXTENSION)); + $file_type_name = $map[$ext] ?? '未知文件'; + // 下载文件名与页面展示名一致(展示名未带扩展名时补充) + $download_name = ($ext !== '' && strtolower(pathinfo($nameTmp, PATHINFO_EXTENSION)) === $ext) ? $nameTmp : rtrim($nameTmp, '.') . '.' . $ext; + {/php} +
  • +
    +

    {$nameTmp}

    +

    + {$descTmp} + + +

    +
    + + + + + + + + + + 下载{$file_type_name} + +
  • + {/volist} + +
+
+
+
+ + + +
+ +{include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/search.html b/public/themes/website/1/en/demo/search.html new file mode 100644 index 0000000..7388218 --- /dev/null +++ b/public/themes/website/1/en/demo/search.html @@ -0,0 +1,192 @@ + + +{php} +dd('此页面废弃'); +{/php} + + + + + + + + + + + + 搜索 - 睿能科技 + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

搜索

+ +
+ 热门搜索: +
+ + + +
+
+
+ +
+ + + + + +
+ +
+ {volist name="list" id="vo"} + {php} + $sr_date = ''; + $sr_time = $vo['publish_time'] ?? ($vo['create_time'] ?? ''); + if (!empty($sr_time)) { + $sr_date = is_numeric($sr_time) ? date('Y-m-d', (int)$sr_time) : $sr_time; + } + $sr_cid = $vo['category_id'] ?? ($vo['category'][0]['id'] ?? 0); + $sr_thumb = is_array($vo['thumbnail'] ?? null) ? ($vo['thumbnail']['url'] ?? '') : ''; + $sr_url = hcUrl('detail/index', ['id' => $vo['id'], 'cid' => $sr_cid]); + $sr_cate_title = $vo['category'][0]['title'] ?? ''; + $sr_type = 'other'; + if (mb_strpos($sr_cate_title, '产品') !== false) { + $sr_type = 'product'; + } elseif (mb_strpos($sr_cate_title, '解决方案') !== false || mb_strpos($sr_cate_title, '方案') !== false) { + $sr_type = 'solution'; + } elseif (mb_strpos($sr_cate_title, '新闻') !== false) { + $sr_type = 'news'; + } elseif (mb_strpos($sr_cate_title, '常见问题') !== false || mb_strpos($sr_cate_title, 'FAQ') !== false || mb_strpos($sr_cate_title, '问题') !== false) { + $sr_type = 'faq'; + } + {/php} +
+ + + +
+
+
+ {if !empty($vo['category'][0]['title'])}{$vo.category.0.title}{else /}内容{/if} + + +
+

+ {$vo.title} +

+ {notempty name="vo.description"} +

{$vo.description}

+ {/notempty} +
+ + 探索更多 + + + + + +
+
+ {/volist} +
+ + + + {php} + $list_empty = isHcListEmpty($list ?? null); + if ($list_empty) { + $empty_text = '未找到相关结果,请尝试其他关键词'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$list_page|raw} + {/if} +
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/single_index.html b/public/themes/website/1/en/demo/single_index.html index fb076a3..c018b29 100644 --- a/public/themes/website/1/en/demo/single_index.html +++ b/public/themes/website/1/en/demo/single_index.html @@ -1,237 +1,963 @@ - - - - - - - {include file="components/currency"} - - - - - - -{include file="components/header"} - -
-
-
- {hcTaglib:content cid="155" moduleId="1" name="contentList" item="case_top" limit="10" mainField="*" subField="*" onlyData="2" sort="sort asc"} -
-
- - 智能家居系统集成方案 -
-
-
-

{$case_top['title']}

-

{$case_top['sub_title']}

-
-
- {:nl2br($case_top['description'])} -
+ + + + + + + + + + + {include file="components/header"} +
+ {if !empty($sub_cates[0])} +
+
+
+ {php} + $news = getChildCategoriesContent(361,$seller_id,5); + {/php} + {hcTaglib:content cid="$sub_cates[0]['id']" moduleId="1" item="vo" limit="5" mainField="*" subField="*" key="key"} +
+
+ +
+
+

{$vo.title ?? ''}

+

{$vo.sub_title|raw}

+

{$vo.description ?? ''}

+ {hcTaglib:category id="333" item="vo" field="*"} + 探索更多 + {/hcTaglib:category} +
+ {if !empty($news[$key-1])} +
+
+

{$news[$key-1]['title']}

+ + 探索更多 + + + +
-
+ +
+ {/if} + {/hcTaglib:content} +
-