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/currency.html b/public/themes/website/1/en/demo/components/currency.html deleted file mode 100644 index ea71e9e..0000000 --- a/public/themes/website/1/en/demo/components/currency.html +++ /dev/null @@ -1,8 +0,0 @@ - -{$current_cate.seo_title|default=$current_cate.title} - - - - - - \ No newline at end of file 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/detail_xiangqing.html b/public/themes/website/1/en/demo/detail_xiangqing.html deleted file mode 100644 index 73e9d91..0000000 --- a/public/themes/website/1/en/demo/detail_xiangqing.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - {include file="components/currency"} - - - - - - {include file="components/header"} - -
-
-
{$hc_content.title}
-
{:date('Y.m.d', strtotime($hc_content['publish_time']))}
-
- {$hc_content.content|raw} -
-
-
-

{hcTaglib:preContent /}

-

{hcTaglib:nextContent /}

-
- 返回列表 - -
-
-
- - {include file="components/footer"} - - \ No newline at end of file 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 0000000..008a811 Binary files /dev/null and b/public/themes/website/1/en/demo/favicon.ico differ 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/list_anli.html b/public/themes/website/1/en/demo/list_anli.html deleted file mode 100644 index 7a9505d..0000000 --- a/public/themes/website/1/en/demo/list_anli.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - {include file="components/currency"} - - - - - - - {include file="components/header"} - -
- {hcTaglib:category id="$current_cate['id']" item="vo" field="*"} - -
-
{$vo.title}
-
{$vo.description}
-
- {/hcTaglib:category} -
- -
-
-

房地产案例

-
宅极慧iHM广泛应用于房地产领域,打造完善的智能家居整体解决方案
-
-
-
-
- {hcTaglib:content cid="195" moduleId="1" name="contentList" item="case_top" mainField="*" subField="*" onlyData="2" sort="sort asc"} -
-
- -
-
- {volist name="$case_top.main_content.atlas" id="vo" } -
- -
- {/volist} -
-
- {/hcTaglib:content} -
-
-
-
-
-
-
-
- {hcTaglib:content cid="196" moduleId="1" name="contentList" item="case_top" mainField="*" subField="*" onlyData="2" sort="sort asc"} -
- {/hcTaglib:content} -
-
-
-
-
-
-

酒店案例

-
宅极慧iHM广泛应用于酒店领域,打造先进酒店客房控制系统
-
-
-
-
- {hcTaglib:content cid="197" moduleId="1" name="contentList" item="case_top" mainField="*" subField="*" onlyData="2" sort="sort asc"} -
-
- -
-
- {volist name="$case_top.main_content.atlas" id="vo" } -
- -
- {/volist} -
-
- {/hcTaglib:content} -
-
-
-
-
-
-
-
- {hcTaglib:content cid="198" moduleId="1" name="contentList" item="case_top" mainField="*" subField="*" onlyData="2" sort="sort asc"} -
- {/hcTaglib:content} -
-
-
-
- - {include file="components/footer"} - - - - - diff --git a/public/themes/website/1/en/demo/list_xinwen.html b/public/themes/website/1/en/demo/list_xinwen.html deleted file mode 100644 index 0502cae..0000000 --- a/public/themes/website/1/en/demo/list_xinwen.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - {include file="components/currency"} - - - - - - {include file="components/header"} - param('page'); - ?> - -
- {if empty($page) || $page<=1 } - {hcTaglib:content cid="186" moduleId="1" name="news" limit="2" onlyData="1"} -
- {volist name="news" id="vo" length="1" } - -
- {$vo.thumbnail.description} - -
-
- {$vo.title} -
{$vo.description}
-
{$vo.publish_time|date="Y-m-d"}
-
-
- {/volist} - {volist name="news" id="vo" length="1" offset="1" } - -
- -
-
-
- {$vo.title} -
-
-
- {$vo.description} -
-
{$vo.publish_time|date="Y-m-d"}
-
-
- {/volist} -
- {/hcTaglib:content} -
- {hcTaglib:contentPage cid="186" moduleId="1" name="newsList" limit="8" len="6" offset="2" item="vv" } - -
- {$vv.thumbnail.description} -
-
-
- {$vv.title} -
-
-
- {$vv.description} -
-
{$vv.publish_time|date='Y-m-d'}
-
-
- {/hcTaglib:contentPage} -
- - {else /} - -
- {hcTaglib:contentPage cid="186" name="news" item="vv" limit="8"} - -
- {$vv.thumbnail.description} -
-
-
- {$vv.title} -
-
-
- {$vv.description} -
-
{$vv.publish_time|date='Y-m-d'}
-
-
- {/hcTaglib:contentPage} -
- - - {/if} - - - -
- - {include file="components/footer"} - - 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_changjing.html b/public/themes/website/1/en/demo/single_changjing.html deleted file mode 100644 index b94b855..0000000 --- a/public/themes/website/1/en/demo/single_changjing.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - 应用场景—智能家居系统集成方案—全屋智能家居系统—宅极慧iHM - - - - - - - - - - - - - - {include file="components/header"} - -
- {hcTaglib:content cid="$current_cate['id']" moduleId='7' mainField="*" subField="*" name="case_top" item="vo"} - -
- {/hcTaglib:content} -
- -
-
-
-
-
- {hcTaglib:subcategory pid="151" item="vo" sort=""} - - {/hcTaglib:subcategory} -
-
-
-
-
-
-
- {hcTaglib:content cid="$current_cate['id']" moduleId='7' mainField="*" subField="*" name="case_top" item="vo"} -
-

{$vo.sub_title}

-
{$vo.main_content.intro}
-
-
-
-
- {volist name="$vo.main_content.ico_two" id="vvo" } -
-
-

{$vvo.description}

-
-
-
-
- {/volist} -
-
-
-
-
-
-
- -
-
-

- {$vo.title}{$vo.main_content.time_slot} -

-
-
    - {volist name="$vo.main_content.atlas" id="vv" } -
  • - - - - - -
    {$vv.description}
    -
  • - {/volist} -
-
-
-
- {/hcTaglib:content} -
-
- - {include file="components/footer"} - - - - - - diff --git a/public/themes/website/1/en/demo/single_chanpin.html b/public/themes/website/1/en/demo/single_chanpin.html deleted file mode 100644 index 11479d2..0000000 --- a/public/themes/website/1/en/demo/single_chanpin.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - 产品中心—智能家居安装—智能家居整体解决方案服务商—宅极慧iHM - - - - - - - - - - - - - {include file="components/header"} - -
- {if $current_cate['parent_id'] == 150 } - -
- -
- {$current_cate.description} -
-
- {else /} - {hcTaglib:category id="$current_cate['parent_id']" field="id,title,banner,content,description"} - -
- -
- {$hc_category.description} -
-
- {/hcTaglib:category} - {/if} - -
- - -
-
- -
-
-
-
-
-
- 全部 -
- {hcTaglib:subcategory pid="$pid" item="vo" sort=""} - - {/hcTaglib:subcategory} -
-
-
-
-
-
- {hcTaglib:contentPage cid="$current_cate['id']" moduleId='6' mainField="*" all="1" subField="*" name="case_top" limit="18" item="vvo"} -
-
- -
- {$vvo.content|raw} -
-
-
-
-
-
- -
{$vvo.title}
-
{$vvo.description}
-
-
- {/hcTaglib:contentPage} -
- {$case_top|raw} -
-
- - {include file="components/footer"} - - - - - diff --git a/public/themes/website/1/en/demo/single_guanyu.html b/public/themes/website/1/en/demo/single_guanyu.html deleted file mode 100644 index 074583f..0000000 --- a/public/themes/website/1/en/demo/single_guanyu.html +++ /dev/null @@ -1,393 +0,0 @@ - - - - - - - {include file="components/currency"} - - - - - - - {include file="components/header"} - -
- {hcTaglib:category id="154" item="vo" field="*"} - -
-
{$vo.description}
-
{$vo.sub_title}
-
- {/hcTaglib:category} -
- -
- {hcTaglib:content cid="156" moduleId="1" mainField="*" subField="*" name="hc_content" limit="1" item="vo"} -
-

{$vo.title}

-
-
- {$vo.content|raw} - {/hcTaglib:content} - -
- {hcTaglib:contentPage cid="183" mainField="*" subField="*" name="hc_content" limit="2" item="vo" sort="sort asc"} - - {/hcTaglib:contentPage} -
-
- -
- -
-
- {hcTaglib:category id="184" item="vo" field="*"} -

{$vo.title}

-
{$vo.sub_title}
- {/hcTaglib:category} -
-
- {hcTaglib:content cid="184" moduleId='1' mainField="*" subField="*" name="case_top" item="vo" sort="sort asc"} -
-
-
-
{$vo.title}
-
{$vo.sub_title}
-
{$vo.description}
-
-
- {/hcTaglib:content} -
-
- -
-
- {hcTaglib:category id="185" item="vo" field="*"} -

{$vo.title}

-
{$vo.sub_title}
- {/hcTaglib:category} -
-
-
-
-
-
-
- {hcTaglib:content cid="185" moduleId='1' mainField="*" subField="*" name="case_top" item="vo" sort="sort asc"} -
-
- {$vo.title}年 -
- -
-
{$vo.sub_title}
-
{$vo.description}
-
- {/hcTaglib:content} -
-
-
-
- -
-
- {hcTaglib:category id="186" item="vo" field="*"} -

{$vo.title}

-
{$vo.sub_title}
- {/hcTaglib:category} -
-
-
-
- {hcTaglib:content cid="186" moduleId='1' mainField="*" subField="*" name="case_top" item="vo" sort="sort asc"} - - {/hcTaglib:content} -
-
-
-
-
- {hcTaglib:category id="186" item="vo" field="*"} - - 更多资讯 - - - {/hcTaglib:category} -
- -
-
- {hcTaglib:category id="187" item="vo" field="*"} -

{$vo.title}

-
{$vo.sub_title}
- {/hcTaglib:category} -
-
-
-
- {hcTaglib:content cid="187" moduleId='1' mainField="*" subField="*" name="case_top" item="vo" sort="sort asc"} -
- -
- {/hcTaglib:content} -
-
-
-
-
-
- -
-
- {hcTaglib:category id="188" item="vo" field="*"} -
-

{$vo.title}

-
{$vo.sub_title}
-
- - 查看岗位信息 - - - {/hcTaglib:category} -
-
- -
-
- {hcTaglib:category id="189" item="vo" field="*"} -

{$vo.title}

-
{$vo.sub_title}
- {/hcTaglib:category} -
-
-
-
- {hcTaglib:category id="190" item="vo" field="*"} -

{$vo.title}

- {/hcTaglib:category} -
- {hcTaglib:content cid="190" moduleId='1' mainField="*" subField="*" name="case_top" item="vo" sort="sort asc"} -
- {$vo.title} - {$vo.sub_title} -
- {/hcTaglib:content} -
-
-
- {hcTaglib:category id="191" item="vo" field="*"} -

{$vo.title}

- {$vo.sub_title} - {/hcTaglib:category} -
-
- {hcTaglib:content cid="192" moduleId='1' mainField="*" subField="*" name="case_top" item="vo" sort="sort asc"} -
- -
-

{$vo.sub_title}

- {$vo.title} -
-
- {/hcTaglib:content} -
-
- {hcTaglib:category id="193" item="vo" field="*"} -

{$vo.title}

- {/hcTaglib:category} -
    - {hcTaglib:content cid="193" moduleId='1' mainField="*" subField="*" name="case_top" item="vo" sort="sort asc"} -
  • -
    -

    {$vo.title}

    -
  • - {/hcTaglib:content} -
-
-
-
-
-
在线预约
- - - - 立即提交 -
-
-
-
-
- 提交成功 -
- - {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} +
-