Browse Source

Merge remote-tracking branch 'origin/master'

master
zhangf@suq.cn 2 weeks ago
parent
commit
184d419861
  1. 2
      public/themes/website/1/en/demo/about.html
  2. 8
      public/themes/website/1/en/demo/components/footer.html
  3. 52
      public/themes/website/1/en/demo/components/header.html
  4. 55
      public/themes/website/1/en/demo/contact.html
  5. 11
      public/themes/website/1/en/demo/download.html
  6. 23
      public/themes/website/1/en/demo/investment.html
  7. 17
      public/themes/website/1/en/demo/news.html
  8. 6
      public/themes/website/1/en/demo/product.html
  9. 20
      public/themes/website/1/en/demo/single_index.html
  10. 6
      public/themes/website/1/en/demo/single_search.html
  11. 4
      public/themes/website/1/en/demo/video.html

2
public/themes/website/1/en/demo/about.html

@ -121,7 +121,7 @@
<time class="ab-history__year" datetime="2025">{$case_top.sub_title}<span></span></time> <time class="ab-history__year" datetime="2025">{$case_top.sub_title}<span></span></time>
<div class="ab-history__dot" aria-hidden="true"></div> <div class="ab-history__dot" aria-hidden="true"></div>
<h3 class="ab-history__slide-title">{$case_top.title}</h3> <h3 class="ab-history__slide-title">{$case_top.title}</h3>
<p class="ab-history__slide-desc">{$case_top.content|strip_tags}</p>
<p class="ab-history__slide-desc">{$case_top.content|strip_tags|raw}</p>
<div class="ab-history__media"> <div class="ab-history__media">
<img src="{$case_top.thumbnail.url ?? ''}" alt="" width="400" height="260" loading="lazy" /> <img src="{$case_top.thumbnail.url ?? ''}" alt="" width="400" height="260" loading="lazy" />
</div> </div>

8
public/themes/website/1/en/demo/components/footer.html

@ -7,10 +7,10 @@
<img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="RAYNEN 睿能科技" width="252" height="26" /> <img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="RAYNEN 睿能科技" width="252" height="26" />
</div> </div>
<p class="site-footer__stock">股票代码: 603933</p> <p class="site-footer__stock">股票代码: 603933</p>
<p class="site-footer__quote" aria-label="股票行情占位">
<span class="site-footer__quote-price">20.34</span>
<span class="site-footer__quote-unit"></span>
<span class="site-footer__quote-change">+2.34 +9.99%</span>
<p class="site-footer__quote" aria-label="股票行情" data-stock-quote data-stock-code="603933">
<span class="site-footer__quote-price" data-stock="price" style="{$priceColor}">{$stockInfo.price}</span>
<span class="site-footer__quote-unit" data-stock="unit" style="{$priceColor}"></span>
<span class="site-footer__quote-change" data-stock="change" style="{$priceColor}">{$stockInfo.change}&nbsp;&nbsp;{$stockInfo.changePercent}</span>
</p> </p>
<p class="site-footer__follow">关注我们:</p> <p class="site-footer__follow">关注我们:</p>
<div class="site-footer__qrs"> <div class="site-footer__qrs">

52
public/themes/website/1/en/demo/components/header.html

@ -60,10 +60,15 @@
</span> </span>
<span class="site-header__wechat-pop" role="tooltip"> <span class="site-header__wechat-pop" role="tooltip">
<img src="{hcTaglib:setting name='wechat_code' type='2' /}" alt="官方微信" width="120" height="120" /> <img src="{hcTaglib:setting name='wechat_code' type='2' /}" alt="官方微信" width="120" height="120" />
<span>官方微信</span>
</span> </span>
</span> </span>
<a class="site-header__social" href="#" aria-label="抖音">
{php}
$content_arr = getDescriptionSeparate(707);
$douyin_url = $content_arr['0'] ?? '';
$sina_url = $content_arr['1'] ?? '';
$zhihu_url = $content_arr['2'] ?? '';
{/php}
<a class="site-header__social" href="{$douyin_url}" aria-label="抖音" target="_blank">
<span class="site-header__icon" aria-hidden="true"> <span class="site-header__icon" aria-hidden="true">
<svg <svg
viewBox="0 0 16 16" viewBox="0 0 16 16"
@ -83,7 +88,7 @@
</svg> </svg>
</span> </span>
</a> </a>
<a class="site-header__social" href="#" aria-label="微博">
<a class="site-header__social" href="{$sina_url}" aria-label="微博" target="_blank">
<span class="site-header__icon" aria-hidden="true"> <span class="site-header__icon" aria-hidden="true">
<svg <svg
viewBox="0 0 16 16" viewBox="0 0 16 16"
@ -103,7 +108,7 @@
</svg> </svg>
</span> </span>
</a> </a>
<a class="site-header__social" href="#" aria-label="知乎">
<a class="site-header__social" href="{$zhihu_url}" aria-label="知乎" target="_blank">
<span class="site-header__icon" aria-hidden="true"> <span class="site-header__icon" aria-hidden="true">
<svg <svg
viewBox="0 0 16 16" viewBox="0 0 16 16"
@ -124,7 +129,18 @@
</span> </span>
</a> </a>
</div> </div>
<button type="button" class="site-header__lang" aria-label="切换语言">
{php}
$hc_lang = function_exists('getLang') ? getLang() : 'zh';
$hc_default_lang = config('lang.default_lang') ?: 'zh';
$hc_lang_ui = ($hc_lang === 'en') ? 'en' : 'zh';
{/php}
<button
type="button"
class="site-header__lang"
aria-label="切换语言"
data-lang-default="{$hc_default_lang}"
data-lang-current="{$hc_lang}"
>
<span class="site-header__icon" aria-hidden="true"> <span class="site-header__icon" aria-hidden="true">
<svg <svg
viewBox="0 0 16 16" viewBox="0 0 16 16"
@ -143,9 +159,9 @@
/> />
</svg> </svg>
</span> </span>
<span>EN</span>
<span class="site-header__lang-opt{if $hc_lang_ui=='en'} site-header__lang-active{/if}" data-lang="en">EN</span>
<span>/</span> <span>/</span>
<span class="site-header__lang-active">CN</span>
<span class="site-header__lang-opt{if $hc_lang_ui=='zh'} site-header__lang-active{/if}" data-lang="zh">CN</span>
</button> </button>
</div> </div>
<div class="site-header__main"> <div class="site-header__main">
@ -347,13 +363,13 @@
{hcTaglib:category id="364" item="vo" field="*"} {hcTaglib:category id="364" item="vo" field="*"}
{php} {php}
$zhanhui_and_activity = $vo; $zhanhui_and_activity = $vo;
$thumbnail_url = $vo['thumbnail']['url'] ?? '';
$thumbnail_url_header = $vo['thumbnail']['url'] ?? '';
{/php} {/php}
{/hcTaglib:category} {/hcTaglib:category}
<a class="nav-mega__promo" href="{$zhanhui_and_activity.alias}"> <a class="nav-mega__promo" href="{$zhanhui_and_activity.alias}">
<div class="nav-mega__promo-media"> <div class="nav-mega__promo-media">
<img <img
src="{$thumbnail_url}"
src="{$thumbnail_url_header}"
alt="" alt=""
width="320" width="320"
height="200" height="200"
@ -391,7 +407,7 @@
<!-- 解决方案(特殊处理) --> <!-- 解决方案(特殊处理) -->
<li class="site-header__nav-item site-header__nav-item--mega"> <li class="site-header__nav-item site-header__nav-item--mega">
<a <a
href="/solution2.html"
href="javascript:void(0);"
class="site-header__nav-link" class="site-header__nav-link"
data-mega-trigger="solution" data-mega-trigger="solution"
aria-expanded="false" aria-expanded="false"
@ -508,7 +524,7 @@
<a class="s-btn s-btn--primary site-header__cta" href="/contact.html">联系我们</a> <a class="s-btn s-btn--primary site-header__cta" href="/contact.html">联系我们</a>
</div> </div>
<div class="site-header__extras"> <div class="site-header__extras">
<button class="site-header__extra-btn lang" type="submit" aria-label="语言">
<button class="site-header__extra-btn lang" type="button" aria-label="切换语言">
<svg <svg
viewBox="0 0 32 32" viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@ -587,3 +603,17 @@
</div> </div>
</div> </div>
</header> </header>
{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}

55
public/themes/website/1/en/demo/contact.html

@ -230,6 +230,7 @@ $(function () {
success: function (res) { success: function (res) {
if (res.code === 0 || res.code === 200) { if (res.code === 0 || res.code === 200) {
$form[0].reset(); $form[0].reset();
showFormToast('提交成功,我们会尽快与您联系!');
} else { } else {
alert(res.msg || '提交失败,请稍后重试'); alert(res.msg || '提交失败,请稍后重试');
} }
@ -245,8 +246,62 @@ $(function () {
return false; return false;
}); });
// 表单提交成功提示
var $toast = null;
var toastTimer = null;
function showFormToast(msg) {
if (!$toast) {
$toast = $(
'<div class="form-toast">' +
' <svg viewBox="0 0 24 24" width="22" height="22" fill="none" xmlns="http://www.w3.org/2000/svg">' +
' <circle cx="12" cy="12" r="10.5" stroke="currentColor" stroke-width="1.5"/>' +
' <path d="M7.5 12.5L10.5 15.5L16.5 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>' +
' </svg>' +
' <span class="form-toast__text"></span>' +
'</div>'
);
$('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);
}
}); });
</script> </script>
<style>
.form-toast {
position: fixed;
left: 50%;
top: 40px;
transform: translate(-50%, -16px);
z-index: 9999;
display: flex;
align-items: center;
gap: 10px;
padding: 14px 24px;
border-radius: 8px;
background: #fff;
color: var(--color-primary);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
font-size: 15px;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.form-toast--show {
opacity: 1;
visibility: visible;
transform: translate(-50%, 0);
}
.form-toast__text {
color: var(--color-text);
}
</style>
</body> </body>
</html> </html>

11
public/themes/website/1/en/demo/download.html

@ -105,16 +105,17 @@
</div> </div>
<div class="d-list"> <div class="d-list">
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"}
<a class="d-item" href="{$vo.url ?? ''}" download="{$vo.title}">
<div class="d-item__main">
{php}$dl_file = $vo['url'] ?? ($vo['thumbnail']['url'] ?? '');{/php}
<div class="d-item">
<a class="d-item__main" href="{$dl_file}" target="_blank" rel="noopener" title="预览">
<img class="d-item__pdf" src="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32.000000'%20height='32.000000'%20fill='none'%3e%3crect%20id='PDF%201'%20width='32.000000'%20height='32.000000'%20x='0.000000'%20y='0.000000'%20/%3e%3cpath%20id='矢量%20508'%20d='M28.1766%2028.9602C28.1766%2029.3602%2028.0164%2029.7441%2027.7285%2030.032C27.4402%2030.3199%2027.0566%2030.4801%2026.6562%2030.4801L5.32852%2030.4801C4.92852%2030.4801%204.52852%2030.3199%204.25664%2030.032C3.96875%2029.7437%203.80859%2029.3602%203.80859%2028.9602L3.80859%201.51992C3.80859%201.11992%203.96836%200.719922%204.25664%200.448047C4.52852%200.160156%204.92891%200%205.32852%200L18.4168%200C18.8168%200%2019.2168%200.160156%2019.5047%200.448047L27.7445%208.68828C28.0324%208.97617%2028.1926%209.36016%2028.1926%209.77617L28.1926%2028.9602L28.1766%2028.9602Z'%20fill='rgb(235,236,240)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20509'%20d='M28.1766%2028.96L28.1766%2030.4799C28.1766%2030.8799%2028.0164%2031.2799%2027.7285%2031.5518C27.4402%2031.84%2027.0566%2031.9998%2026.6562%2031.9998L5.32852%2031.9998C4.48047%2031.9998%203.80859%2031.3119%203.80859%2030.4799L3.80859%2028.96C3.80859%2029.36%203.96836%2029.7439%204.25664%2030.0318C4.54453%2030.3197%204.92852%2030.4799%205.32852%2030.4799L26.6566%2030.4799C27.5047%2030.4799%2028.1766%2029.792%2028.1766%2028.96L28.1766%2028.96Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20510'%20d='M3.80781%2016.7682L3.80781%2013.7119L0.751953%2016.7682L3.80781%2016.7682ZM28.1758%2016.7682L28.2078%2013.7119L31.2477%2016.7682L28.1758%2016.7682L28.1758%2016.7682Z'%20fill='rgb(211,0,0)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20511'%20d='M28.1762%209.77617L28.1762%209.98398L19.9359%209.98398C19.0879%209.98398%2018.416%209.29609%2018.416%208.46406L18.416%200C18.816%200%2019.216%200.160156%2019.5039%200.448047L27.7602%208.68828C28.032%208.97617%2028.1922%209.36016%2028.1762%209.77617Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20512'%20d='M15.7164%2019.0972L14.4629%2019.0972L14.4629%2023.5655L15.6941%2023.5655C17.0926%2023.5655%2017.8484%2022.7776%2017.8484%2021.2577C17.8484%2019.9351%2017.157%2019.1147%2015.7164%2019.0972ZM8.59219%2019.0995L6.79883%2019.0995L6.79883%2020.9983L8.59219%2020.9983C9.32695%2020.9983%209.79141%2020.7464%209.79141%2020.0362C9.79141%2019.4573%209.43555%2019.0995%208.59219%2019.0995L8.59219%2019.0995Z'%20fill='rgb(255,29,29)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20513'%20d='M0.767578%2016.7681L0.767578%2024.3681C0.767578%2024.7841%200.927344%2025.1681%201.21562%2025.456C1.4875%2025.7442%201.8875%2025.904%202.2875%2025.904L29.7117%2025.904C30.5438%2025.904%2031.2316%2025.2321%2031.2316%2024.3841L31.2316%2016.7681L0.767578%2016.7681ZM8.72617%2022.3454L6.79844%2022.3454L6.79844%2024.9103L5.05469%2024.9103L5.05469%2017.7618L8.75352%2017.7618C10.4156%2017.7618%2011.5207%2018.6021%2011.5207%2020.0087C11.5207%2021.4153%2010.4797%2022.3454%208.72617%2022.3454L8.72617%2022.3454ZM15.9223%2024.9103L12.7277%2024.9103L12.7277%2017.7618L15.959%2017.7618C18.3676%2017.7618%2019.6855%2019.3251%2019.6855%2021.211C19.6855%2023.4993%2018.0027%2024.9103%2015.9223%2024.9103ZM26.9953%2019.1419L22.8473%2019.1419L22.8473%2020.7677L26.7164%2020.7677L26.7164%2022.1579L22.8473%2022.1579L22.8473%2024.9099L21.1125%2024.9099L21.1125%2017.7614L26.9953%2017.7614L26.9953%2019.1415L26.9953%2019.1419Z'%20fill='rgb(239,67,53)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20514'%20d='M8.75313%2017.7617L5.05469%2017.7617L5.05469%2024.9102L6.79844%2024.9102L6.79844%2022.3453L8.72617%2022.3453C10.4797%2022.3453%2011.5207%2021.4703%2011.5207%2020.0086C11.5207%2018.5469%2010.4156%2017.7617%208.75352%2017.7617L8.75313%2017.7617ZM8.59141%2020.9984L6.79805%2020.9984L6.79805%2019.0996L8.59141%2019.0996C9.43477%2019.0996%209.79063%2019.4574%209.79063%2020.0363C9.79063%2020.7461%209.32578%2020.9984%208.59141%2020.9984L8.59141%2020.9984ZM15.959%2017.7617L12.7277%2017.7617L12.7277%2024.9102L15.9223%2024.9102C18.0027%2024.9102%2019.6855%2023.4992%2019.6855%2021.2109C19.6855%2019.325%2018.368%2017.7617%2015.959%2017.7617ZM15.6934%2023.5656L14.4621%2023.5656L14.4621%2019.0973L15.7156%2019.0973C17.1559%2019.1152%2017.8477%2019.9355%2017.8477%2021.2578C17.8477%2022.7777%2017.0918%2023.5656%2015.6934%2023.5656ZM21.1125%2024.9102L22.8473%2024.9102L22.8473%2022.1582L26.7164%2022.1582L26.7164%2020.768L22.8473%2020.768L22.8473%2019.1422L26.9953%2019.1422L26.9953%2017.7617L21.1125%2017.7617L21.1125%2024.9102Z'%20fill='rgb(255,255,255)'%20fill-rule='nonzero'%20/%3e%3c/svg%3e" alt="" width="32" height="32" /> <img class="d-item__pdf" src="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32.000000'%20height='32.000000'%20fill='none'%3e%3crect%20id='PDF%201'%20width='32.000000'%20height='32.000000'%20x='0.000000'%20y='0.000000'%20/%3e%3cpath%20id='矢量%20508'%20d='M28.1766%2028.9602C28.1766%2029.3602%2028.0164%2029.7441%2027.7285%2030.032C27.4402%2030.3199%2027.0566%2030.4801%2026.6562%2030.4801L5.32852%2030.4801C4.92852%2030.4801%204.52852%2030.3199%204.25664%2030.032C3.96875%2029.7437%203.80859%2029.3602%203.80859%2028.9602L3.80859%201.51992C3.80859%201.11992%203.96836%200.719922%204.25664%200.448047C4.52852%200.160156%204.92891%200%205.32852%200L18.4168%200C18.8168%200%2019.2168%200.160156%2019.5047%200.448047L27.7445%208.68828C28.0324%208.97617%2028.1926%209.36016%2028.1926%209.77617L28.1926%2028.9602L28.1766%2028.9602Z'%20fill='rgb(235,236,240)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20509'%20d='M28.1766%2028.96L28.1766%2030.4799C28.1766%2030.8799%2028.0164%2031.2799%2027.7285%2031.5518C27.4402%2031.84%2027.0566%2031.9998%2026.6562%2031.9998L5.32852%2031.9998C4.48047%2031.9998%203.80859%2031.3119%203.80859%2030.4799L3.80859%2028.96C3.80859%2029.36%203.96836%2029.7439%204.25664%2030.0318C4.54453%2030.3197%204.92852%2030.4799%205.32852%2030.4799L26.6566%2030.4799C27.5047%2030.4799%2028.1766%2029.792%2028.1766%2028.96L28.1766%2028.96Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20510'%20d='M3.80781%2016.7682L3.80781%2013.7119L0.751953%2016.7682L3.80781%2016.7682ZM28.1758%2016.7682L28.2078%2013.7119L31.2477%2016.7682L28.1758%2016.7682L28.1758%2016.7682Z'%20fill='rgb(211,0,0)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20511'%20d='M28.1762%209.77617L28.1762%209.98398L19.9359%209.98398C19.0879%209.98398%2018.416%209.29609%2018.416%208.46406L18.416%200C18.816%200%2019.216%200.160156%2019.5039%200.448047L27.7602%208.68828C28.032%208.97617%2028.1922%209.36016%2028.1762%209.77617Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20512'%20d='M15.7164%2019.0972L14.4629%2019.0972L14.4629%2023.5655L15.6941%2023.5655C17.0926%2023.5655%2017.8484%2022.7776%2017.8484%2021.2577C17.8484%2019.9351%2017.157%2019.1147%2015.7164%2019.0972ZM8.59219%2019.0995L6.79883%2019.0995L6.79883%2020.9983L8.59219%2020.9983C9.32695%2020.9983%209.79141%2020.7464%209.79141%2020.0362C9.79141%2019.4573%209.43555%2019.0995%208.59219%2019.0995L8.59219%2019.0995Z'%20fill='rgb(255,29,29)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20513'%20d='M0.767578%2016.7681L0.767578%2024.3681C0.767578%2024.7841%200.927344%2025.1681%201.21562%2025.456C1.4875%2025.7442%201.8875%2025.904%202.2875%2025.904L29.7117%2025.904C30.5438%2025.904%2031.2316%2025.2321%2031.2316%2024.3841L31.2316%2016.7681L0.767578%2016.7681ZM8.72617%2022.3454L6.79844%2022.3454L6.79844%2024.9103L5.05469%2024.9103L5.05469%2017.7618L8.75352%2017.7618C10.4156%2017.7618%2011.5207%2018.6021%2011.5207%2020.0087C11.5207%2021.4153%2010.4797%2022.3454%208.72617%2022.3454L8.72617%2022.3454ZM15.9223%2024.9103L12.7277%2024.9103L12.7277%2017.7618L15.959%2017.7618C18.3676%2017.7618%2019.6855%2019.3251%2019.6855%2021.211C19.6855%2023.4993%2018.0027%2024.9103%2015.9223%2024.9103ZM26.9953%2019.1419L22.8473%2019.1419L22.8473%2020.7677L26.7164%2020.7677L26.7164%2022.1579L22.8473%2022.1579L22.8473%2024.9099L21.1125%2024.9099L21.1125%2017.7614L26.9953%2017.7614L26.9953%2019.1415L26.9953%2019.1419Z'%20fill='rgb(239,67,53)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20514'%20d='M8.75313%2017.7617L5.05469%2017.7617L5.05469%2024.9102L6.79844%2024.9102L6.79844%2022.3453L8.72617%2022.3453C10.4797%2022.3453%2011.5207%2021.4703%2011.5207%2020.0086C11.5207%2018.5469%2010.4156%2017.7617%208.75352%2017.7617L8.75313%2017.7617ZM8.59141%2020.9984L6.79805%2020.9984L6.79805%2019.0996L8.59141%2019.0996C9.43477%2019.0996%209.79063%2019.4574%209.79063%2020.0363C9.79063%2020.7461%209.32578%2020.9984%208.59141%2020.9984L8.59141%2020.9984ZM15.959%2017.7617L12.7277%2017.7617L12.7277%2024.9102L15.9223%2024.9102C18.0027%2024.9102%2019.6855%2023.4992%2019.6855%2021.2109C19.6855%2019.325%2018.368%2017.7617%2015.959%2017.7617ZM15.6934%2023.5656L14.4621%2023.5656L14.4621%2019.0973L15.7156%2019.0973C17.1559%2019.1152%2017.8477%2019.9355%2017.8477%2021.2578C17.8477%2022.7777%2017.0918%2023.5656%2015.6934%2023.5656ZM21.1125%2024.9102L22.8473%2024.9102L22.8473%2022.1582L26.7164%2022.1582L26.7164%2020.768L22.8473%2020.768L22.8473%2019.1422L26.9953%2019.1422L26.9953%2017.7617L21.1125%2017.7617L21.1125%2024.9102Z'%20fill='rgb(255,255,255)'%20fill-rule='nonzero'%20/%3e%3c/svg%3e" alt="" width="32" height="32" />
<span class="d-item__name">{$vo.title}</span> <span class="d-item__name">{$vo.title}</span>
</div>
<span class="d-item__action">
</a>
<a class="d-item__action" href="{$dl_file}" download="{$vo.title}">
<img src="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='24.000000'%20height='24.000000'%20fill='none'%3e%3crect%20id='容器%20520'%20width='24.000000'%20height='24.000000'%20x='0.000000'%20y='0.000000'%20fill='rgb(255,255,255)'%20fill-opacity='0'%20/%3e%3cg%20id='download--02'%3e%3cpath%20id='矢量%20486'%20d='M16.6667%209.33301L22%209.33301L22%2021.9997L2%2021.9997L2%209.33301L7.33333%209.33301'%20fill-rule='nonzero'%20stroke='rgb(46,53,58)'%20stroke-linejoin='round'%20stroke-width='1.500000'%20/%3e%3cpath%20id='矢量%20487'%20d='M16%2014L12%2018L8%2014M12%202L12%2018'%20fill-rule='nonzero'%20stroke='rgb(239,67,53)'%20stroke-width='1.500000'%20/%3e%3c/g%3e%3c/svg%3e" alt="" width="24" height="24" /> <img src="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='24.000000'%20height='24.000000'%20fill='none'%3e%3crect%20id='容器%20520'%20width='24.000000'%20height='24.000000'%20x='0.000000'%20y='0.000000'%20fill='rgb(255,255,255)'%20fill-opacity='0'%20/%3e%3cg%20id='download--02'%3e%3cpath%20id='矢量%20486'%20d='M16.6667%209.33301L22%209.33301L22%2021.9997L2%2021.9997L2%209.33301L7.33333%209.33301'%20fill-rule='nonzero'%20stroke='rgb(46,53,58)'%20stroke-linejoin='round'%20stroke-width='1.500000'%20/%3e%3cpath%20id='矢量%20487'%20d='M16%2014L12%2018L8%2014M12%202L12%2018'%20fill-rule='nonzero'%20stroke='rgb(239,67,53)'%20stroke-width='1.500000'%20/%3e%3c/g%3e%3c/svg%3e" alt="" width="24" height="24" />
<span>立即下载</span> <span>立即下载</span>
</span>
</a> </a>
</div>
{/hcTaglib:contentPage} {/hcTaglib:contentPage}
</div> </div>

23
public/themes/website/1/en/demo/investment.html

@ -140,39 +140,38 @@
</div> </div>
</section> </section>
{/hcTaglib:category} {/hcTaglib:category}
<section class="iv-stock section__wrap" id="stock" data-header-dark> <section class="iv-stock section__wrap" id="stock" data-header-dark>
<h2 class="iv-stock__title">股票信息</h2> <h2 class="iv-stock__title">股票信息</h2>
<div class="iv-stock__body"> <div class="iv-stock__body">
<div class="iv-stock__data"> <div class="iv-stock__data">
<p class="iv-stock__code">股票代码:603933</p>
<div class="iv-stock__quote">
<span class="iv-stock__price">20.98</span>
<span class="iv-stock__unit"></span>
<span class="iv-stock__change">+0.37&nbsp;&nbsp;+1.75%</span>
<p class="iv-stock__code">股票代码:{$stockInfo.code}</p>
<div class="iv-stock__quote" data-stock-quote data-stock-code="603933">
<span class="iv-stock__price" id="stock-price" data-stock="price" style="{$priceColor}">{$stockInfo.price}</span>
<span class="iv-stock__unit" data-stock="unit" style="{$priceColor}"></span>
<span class="iv-stock__change" id="stock-change" data-stock="change" style="{$priceColor}">{$stockInfo.change}&nbsp;&nbsp;{$stockInfo.changePercent}</span>
</div> </div>
<ul class="iv-stock__metrics"> <ul class="iv-stock__metrics">
<li> <li>
<span class="iv-stock__metric-label">最高(元)</span> <span class="iv-stock__metric-label">最高(元)</span>
<strong class="iv-stock__metric-value">20.98</strong>
<strong class="iv-stock__metric-value" id="stock-high" data-stock="high">{$stockInfo.high}</strong>
</li> </li>
<li> <li>
<span class="iv-stock__metric-label">最低(元)</span> <span class="iv-stock__metric-label">最低(元)</span>
<strong class="iv-stock__metric-value">20.23</strong>
<strong class="iv-stock__metric-value" id="stock-low" data-stock="low">{$stockInfo.low}</strong>
</li> </li>
<li> <li>
<span class="iv-stock__metric-label">成交量(万手)</span> <span class="iv-stock__metric-label">成交量(万手)</span>
<strong class="iv-stock__metric-value">3.25</strong>
<strong class="iv-stock__metric-value" id="stock-volume" data-stock="volume">{$stockInfo.volume}</strong>
</li> </li>
<li> <li>
<span class="iv-stock__metric-label">成交额(万元)</span> <span class="iv-stock__metric-label">成交额(万元)</span>
<strong class="iv-stock__metric-value">6684.00</strong>
<strong class="iv-stock__metric-value" id="stock-amount" data-stock="amount">{$stockInfo.amount}</strong>
</li> </li>
</ul> </ul>
<p class="iv-stock__note">截止 2026-08-14 09:40:31*报价有十五分钟或以上延迟。</p>
<p class="iv-stock__note" id="stock-time" data-stock="time">截止 {$stockInfo.updateTime}*报价有十五分钟或以上延迟。</p>
</div> </div>
<div class="iv-stock__chart"> <div class="iv-stock__chart">
<img src="/themes/dist_static/static/images/section-3-img-CK6u5Hdw.png" alt="股票走势图" width="720" height="450" />
<img id="stock-chart" data-stock="chart" src="https://image.sinajs.cn/newchart/min/n/sh603933.gif" alt="睿能科技分时走势图" width="720" height="450" />
</div> </div>
</div> </div>
</section> </section>

17
public/themes/website/1/en/demo/news.html

@ -91,7 +91,7 @@
</div> </div>
</div> </div>
{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} {/hcTaglib:contentPage2}
{php} {php}
$news_has_featured = false; $news_has_featured = false;
@ -112,7 +112,7 @@
$content = $vo_content['content'] ?? ''; // 富文本 $content = $vo_content['content'] ?? ''; // 富文本
$description = $vo_content['description'] ?? ''; // 描述 $description = $vo_content['description'] ?? ''; // 描述
$title = $vo_content['title'] ?? ''; // 标题 $title = $vo_content['title'] ?? ''; // 标题
$create_time_str = $vo_content['create_time'] ?? '';
$create_time_str = $vo_content['publish_time'] ?? $vo_content['create_time'];
{/php} {/php}
<div class="swiper-slide n-featured__slide" data-category="company"> <div class="swiper-slide n-featured__slide" data-category="company">
<div class="n-featured__media"> <div class="n-featured__media">
@ -169,19 +169,14 @@
<div class="n-grid"> <div class="n-grid">
{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 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" isTop="222"}
{/hcTaglib:contentPage2} {/hcTaglib:contentPage2}
{volist name="hc_content" id="vo_content"} {volist name="hc_content" id="vo_content"}
{php} {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;
$content = $vo_content['content'] ?? '';
$description = $vo_content['description'] ?? '';
$create_time_str = $vo_content['publish_time'] ?? $vo_content['create_time'];
{/php} {/php}
<article class="n-card" data-category="insight"> <article class="n-card" data-category="insight">

6
public/themes/website/1/en/demo/product.html

@ -158,7 +158,7 @@ $resource_download = $main_content['resource_download'] ?? [];
<a class="s-btn s-btn--light s-btn--pill {if empty($content)}hidden{/if}" href="javascript:;" data-selection-trigger>查看选型表</a> <a class="s-btn s-btn--light s-btn--pill {if empty($content)}hidden{/if}" href="javascript:;" data-selection-trigger>查看选型表</a>
<div class="p-hero__media"> <div class="p-hero__media">
<div class="p-hero__mark" aria-hidden="true">{$sub_title}</div> <div class="p-hero__mark" aria-hidden="true">{$sub_title}</div>
<img src="{:deal_image_url($thumbnail_url)}" width="434" height="601" alt="RA3系列伺服驱动器" />
<img src="{:deal_image_url($thumbnail_url)}" width="434" height="601" alt="{$thumbnail_name}" />
</div> </div>
</div> </div>
</section> </section>
@ -302,7 +302,9 @@ $resource_download = $main_content['resource_download'] ?? [];
{/php} {/php}
<li class="p-download__item"> <li class="p-download__item">
<div class="p-download__info"> <div class="p-download__info">
<h3 class="p-download__name">{$nameTmp}</h3>
<h3 class="p-download__name">
<a href="{$downloadUrl}" target="_blank" rel="noopener" title="预览">{$nameTmp}</a>
</h3>
<p class="p-download__meta"> <p class="p-download__meta">
<span>{$descTmp}</span> <span>{$descTmp}</span>
<span class="p-download__meta-divider"></span> <span class="p-download__meta-divider"></span>

20
public/themes/website/1/en/demo/single_index.html

@ -897,35 +897,41 @@
<div class="section-5__line" aria-hidden="true"></div> <div class="section-5__line" aria-hidden="true"></div>
<ul class="section-5__list"> <ul class="section-5__list">
{if(!empty($news[1]))} {if(!empty($news[1]))}
<li class="section-5__item">
<li>
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[1]['id'],'cid'=>$news[1]['category_id']])}">
<div class="section-5__item-body"> <div class="section-5__item-body">
<h3 class="section-5__item-title">{$news[1]['title'] ?? ''}</h3> <h3 class="section-5__item-title">{$news[1]['title'] ?? ''}</h3>
<time class="section-5__date" datetime="{$news[0]['publish_time'] ?? ''}">{$news[1]['publish_time'] ?? ''}</time>
<time class="section-5__date" datetime="{$news[1]['publish_time'] ?? ''}">{$news[1]['publish_time'] ?? ''}</time>
</div> </div>
<a class="section-5__item-media" href="{:hcUrl('detail/index',['id'=>$news[1]['id'],'cid'=>$news[1]['category_id']])}">
<span class="section-5__item-media">
<img src="{$news[1]['thumbnail_url'] ?? ''}" alt="" /> <img src="{$news[1]['thumbnail_url'] ?? ''}" alt="" />
</span>
</a> </a>
</li> </li>
{/if} {/if}
{if(!empty($news[2]))} {if(!empty($news[2]))}
<li class="section-5__item">
<li>
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[2]['id'],'cid'=>$news[2]['category_id']])}">
<div class="section-5__item-body"> <div class="section-5__item-body">
<h3 class="section-5__item-title">{$news[2]['title'] ?? ''}</h3> <h3 class="section-5__item-title">{$news[2]['title'] ?? ''}</h3>
<time class="section-5__date" datetime="{$news[2]['publish_time'] ?? ''}">{$news[2]['publish_time'] ?? ''}</time> <time class="section-5__date" datetime="{$news[2]['publish_time'] ?? ''}">{$news[2]['publish_time'] ?? ''}</time>
</div> </div>
<a class="section-5__item-media" href="{:hcUrl('detail/index',['id'=>$news[2]['id'],'cid'=>$news[2]['category_id']])}">
<span class="section-5__item-media">
<img src="{$news[2]['thumbnail_url'] ?? ''}" alt="" /> <img src="{$news[2]['thumbnail_url'] ?? ''}" alt="" />
</span>
</a> </a>
</li> </li>
{/if} {/if}
{if(!empty($news[3]))} {if(!empty($news[3]))}
<li class="section-5__item">
<li>
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[3]['id'],'cid'=>$news[3]['category_id']])}">
<div class="section-5__item-body"> <div class="section-5__item-body">
<h3 class="section-5__item-title">{$news[3]['title'] ?? ''}</h3> <h3 class="section-5__item-title">{$news[3]['title'] ?? ''}</h3>
<time class="section-5__date" datetime="{$news[3]['publish_time'] ?? ''}">{$news[3]['publish_time'] ?? ''}</time> <time class="section-5__date" datetime="{$news[3]['publish_time'] ?? ''}">{$news[3]['publish_time'] ?? ''}</time>
</div> </div>
<a class="section-5__item-media" href="{:hcUrl('detail/index',['id'=>$news[3]['id'],'cid'=>$news[3]['category_id']])}">
<span class="section-5__item-media">
<img src="{$news[3]['thumbnail_url'] ?? ''}" alt="" /> <img src="{$news[3]['thumbnail_url'] ?? ''}" alt="" />
</span>
</a> </a>
</li> </li>
{/if} {/if}

6
public/themes/website/1/en/demo/single_search.html

@ -151,7 +151,7 @@
{/php} {/php}
<article class="sr-item sr-item--{$sr_kind}" data-keywords="{$sr_title}" data-kind="{$sr_kind}"> <article class="sr-item sr-item--{$sr_kind}" data-keywords="{$sr_title}" data-kind="{$sr_kind}">
{if $sr_kind == 'video'} {if $sr_kind == 'video'}
<button type="button" class="sr-item__media sr-item__media--video" data-video-src="{$sr_file}" aria-label="播放:{$sr_title}">
<button type="button" class="sr-item__media sr-item__media--video" data-video-src="{$vo.cover.url ?? ''}" aria-label="播放:{$sr_title}">
<span class="v-card__media"> <span class="v-card__media">
<img class="v-card__cover" src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" /> <img class="v-card__cover" src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" />
<span class="v-card__play" aria-hidden="true"> <span class="v-card__play" aria-hidden="true">
@ -160,7 +160,7 @@
</span> </span>
</button> </button>
{elseif $sr_kind == 'download' /} {elseif $sr_kind == 'download' /}
<a class="sr-item__media" href="{$sr_file}" download="{$sr_title}">
<a class="sr-item__media" href="{$sr_file}" target="_blank" rel="noopener" title="预览">
<img src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" /> <img src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" />
</a> </a>
{elseif $sr_kind == 'announce' /} {elseif $sr_kind == 'announce' /}
@ -201,7 +201,7 @@
{if $sr_kind == 'video'} {if $sr_kind == 'video'}
{$sr_title} {$sr_title}
{elseif $sr_kind == 'download' /} {elseif $sr_kind == 'download' /}
<a href="{$sr_file}" download="{$sr_title}">{$sr_title}</a>
<a href="{$sr_file}" target="_blank" rel="noopener" title="预览">{$sr_title}</a>
{elseif $sr_kind == 'announce' /} {elseif $sr_kind == 'announce' /}
<a href="{$sr_file}" target="_blank" rel="noopener">{$sr_title}</a> <a href="{$sr_file}" target="_blank" rel="noopener">{$sr_title}</a>
{else /} {else /}

4
public/themes/website/1/en/demo/video.html

@ -87,7 +87,7 @@
<div class="v-grid"> <div class="v-grid">
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"}
<button type="button" class="v-card" data-video-src="{$vo.url}">
<button type="button" class="v-card" data-video-src="{$vo.cover.url ?? ''}">
<div class="v-card__media"> <div class="v-card__media">
<img class="v-card__cover" src="{$vo.thumbnail.url ?? ''}" alt="" width="400" height="225" <img class="v-card__cover" src="{$vo.thumbnail.url ?? ''}" alt="" width="400" height="225"
loading="lazy" /> loading="lazy" />
@ -97,7 +97,7 @@
</span> </span>
</div> </div>
<h2 class="v-card__title">{$vo.title}</h2> <h2 class="v-card__title">{$vo.title}</h2>
<time class="v-card__date" datetime="{$vo.publish_time}">{$vo.publish_time}</time>
<time class="v-card__date" datetime="{$vo.publish_time}">{$vo.publish_time|date='Y-m-d'}</time>
</button> </button>
{/hcTaglib:contentPage} {/hcTaglib:contentPage}
</div> </div>

Loading…
Cancel
Save