fix: 顶部“店铺”按钮不能显示在中文

This commit is contained in:
2025-06-10 10:08:08 +08:00
parent d6d2e048bf
commit 1ffb0f73c0

View File

@@ -86,11 +86,13 @@
</ul> </ul>
</div> </div>
</div> </div>
{eq name=":cookie('think_lang')" value="en-us"}
{notempty name="basic_config['navigation_store_url']['value']"} {notempty name="basic_config['navigation_store_url']['value']"}
<a class="storetopbt" href="{$basic_config['navigation_store_url']['value']}"> <a class="storetopbt" href="{$basic_config['navigation_store_url']['value']}">
<img src="__IMAGES__/shopico.png" class="storeImgico" />{:lang_i18n('店铺')} <img src="__IMAGES__/shopico.png" class="storeImgico" />{:lang_i18n('店铺')}
</a> </a>
{/notempty} {/notempty}
{/eq}
</div> </div>
</div> </div>
@@ -122,7 +124,7 @@
<script> <script>
$(document).ready(function () { $(document).ready(function () {
// 搜索历史记录处理 // 搜索历史记录处理
function history (keywords) { function history(keywords) {
var history = localStorage.getItem('header_search_keywords'); var history = localStorage.getItem('header_search_keywords');
if (!history) { if (!history) {
history = []; history = [];
@@ -150,7 +152,7 @@
return history; return history;
} }
// 封装一个函数用于处理鼠标悬停显示和隐藏内容 // 封装一个函数用于处理鼠标悬停显示和隐藏内容
function handleHover ($element, $content) { function handleHover($element, $content) {
$element.mouseenter(function () { $element.mouseenter(function () {
$content.stop(true, true).slideDown(60); $content.stop(true, true).slideDown(60);
}).mouseleave(function () { }).mouseleave(function () {