From c196220da28c0ffd0aa373d8e1382cb70309b738 Mon Sep 17 00:00:00 2001 From: xiaodong Date: Mon, 7 Sep 2026 14:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E6=96=87=E6=A8=A1=E6=9D=BF=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/website/1/en/demo/about.html | 2 +- .../website/1/en/demo/components/footer.html | 8 ++-- .../website/1/en/demo/components/header.html | 52 +++++++++++++++----- public/themes/website/1/en/demo/contact.html | 55 ++++++++++++++++++++++ public/themes/website/1/en/demo/download.html | 13 ++--- public/themes/website/1/en/demo/investment.html | 23 +++++---- public/themes/website/1/en/demo/news.html | 17 +++---- public/themes/website/1/en/demo/product.html | 6 ++- public/themes/website/1/en/demo/single_index.html | 48 ++++++++++--------- public/themes/website/1/en/demo/single_search.html | 6 +-- public/themes/website/1/en/demo/video.html | 4 +- 11 files changed, 161 insertions(+), 73 deletions(-) diff --git a/public/themes/website/1/en/demo/about.html b/public/themes/website/1/en/demo/about.html index 56b3246..f1ad52d 100644 --- a/public/themes/website/1/en/demo/about.html +++ b/public/themes/website/1/en/demo/about.html @@ -121,7 +121,7 @@

{$case_top.title}

-

{$case_top.content|strip_tags}

+

{$case_top.content|strip_tags|raw}

diff --git a/public/themes/website/1/en/demo/components/footer.html b/public/themes/website/1/en/demo/components/footer.html index f0cc5d8..5d14748 100644 --- a/public/themes/website/1/en/demo/components/footer.html +++ b/public/themes/website/1/en/demo/components/footer.html @@ -7,10 +7,10 @@ RAYNEN 睿能科技 - -
@@ -347,13 +363,13 @@ {hcTaglib:category id="364" item="vo" field="*"} {php} $zhanhui_and_activity = $vo; - $thumbnail_url = $vo['thumbnail']['url'] ?? ''; + $thumbnail_url_header = $vo['thumbnail']['url'] ?? ''; {/php} {/hcTaglib:category}
-
+{php} +// 获取股票信息 +$stockInfo = getStockInfo('603933'); +// 判断涨跌颜色 +$priceColor = ''; +if ($stockInfo['change'] !== '--') { +$changeVal = floatval(str_replace(['+', '-'], '', $stockInfo['change'])); +if ($stockInfo['change'][0] === '+') { +$priceColor = 'color: #ef4335'; // 上涨红色 +} elseif ($stockInfo['change'][0] === '-') { +$priceColor = 'color: #00b894'; // 下跌绿色 +} +} +{/php} diff --git a/public/themes/website/1/en/demo/contact.html b/public/themes/website/1/en/demo/contact.html index be2bfa8..ad9aaf5 100644 --- a/public/themes/website/1/en/demo/contact.html +++ b/public/themes/website/1/en/demo/contact.html @@ -230,6 +230,7 @@ $(function () { success: function (res) { if (res.code === 0 || res.code === 200) { $form[0].reset(); + showFormToast('提交成功,我们会尽快与您联系!'); } else { alert(res.msg || '提交失败,请稍后重试'); } @@ -245,8 +246,62 @@ $(function () { return false; }); + + // 表单提交成功提示 + var $toast = null; + var toastTimer = null; + function showFormToast(msg) { + if (!$toast) { + $toast = $( + '
' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + '
' + ); + $('body').append($toast); + } + $toast.find('.form-toast__text').text(msg); + $toast.addClass('form-toast--show'); + clearTimeout(toastTimer); + toastTimer = setTimeout(function () { + $toast.removeClass('form-toast--show'); + }, 3000); + } }); + diff --git a/public/themes/website/1/en/demo/download.html b/public/themes/website/1/en/demo/download.html index 0edce48..6c389bc 100644 --- a/public/themes/website/1/en/demo/download.html +++ b/public/themes/website/1/en/demo/download.html @@ -105,16 +105,17 @@
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} - - {/hcTaglib:contentPage}
diff --git a/public/themes/website/1/en/demo/investment.html b/public/themes/website/1/en/demo/investment.html index 6c050a7..5b84f8e 100644 --- a/public/themes/website/1/en/demo/investment.html +++ b/public/themes/website/1/en/demo/investment.html @@ -140,39 +140,38 @@ {/hcTaglib:category} -

股票信息

-

股票代码:603933

-
- 20.98 - - +0.37  +1.75% +

股票代码:{$stockInfo.code}

+
+ {$stockInfo.price} + + {$stockInfo.change}  {$stockInfo.changePercent}
  • 最高(元) - 20.98 + {$stockInfo.high}
  • 最低(元) - 20.23 + {$stockInfo.low}
  • 成交量(万手) - 3.25 + {$stockInfo.volume}
  • 成交额(万元) - 6684.00 + {$stockInfo.amount}
-

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

+

截止 {$stockInfo.updateTime}*报价有十五分钟或以上延迟。

- 股票走势图 + 睿能科技分时走势图
diff --git a/public/themes/website/1/en/demo/news.html b/public/themes/website/1/en/demo/news.html index 8256a89..e27722e 100644 --- a/public/themes/website/1/en/demo/news.html +++ b/public/themes/website/1/en/demo/news.html @@ -91,7 +91,7 @@ - {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 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" isTop="1"} {/hcTaglib:contentPage2} {php} $news_has_featured = false; @@ -112,7 +112,7 @@ $content = $vo_content['content'] ?? ''; // 富文本 $description = $vo_content['description'] ?? ''; // 描述 $title = $vo_content['title'] ?? ''; // 标题 - $create_time_str = $vo_content['create_time'] ?? ''; + $create_time_str = $vo_content['publish_time'] ?? $vo_content['create_time']; {/php}