1
This commit is contained in:
@@ -69,45 +69,4 @@
|
|||||||
</div>
|
</div>
|
||||||
{/notempty}
|
{/notempty}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
// 点击顶部菜单
|
|
||||||
$(".top-menu-toggle").click(function() {
|
|
||||||
$(".top-menu").slideToggle(800);
|
|
||||||
})
|
|
||||||
// 点击一级菜单显示二级菜单
|
|
||||||
$(".it-1-more").on("click", function() {
|
|
||||||
$('.it-1-2').hide();
|
|
||||||
$('.icon-arrow').removeClass('rotate');
|
|
||||||
$(this).siblings('.it-1-2').slideToggle(800);
|
|
||||||
$(this).find('.icon-arrow').addClass('rotate');
|
|
||||||
});
|
|
||||||
//点击搜索
|
|
||||||
$('.top-search-toggle').click(function() {
|
|
||||||
$(".marsk-container").show();
|
|
||||||
})
|
|
||||||
$('.ac-close').click(function() {
|
|
||||||
$(".marsk-container").hide();
|
|
||||||
})
|
|
||||||
// 顶部国家选择
|
|
||||||
$('.top-country-toggle').click(function(){
|
|
||||||
$(".mask,.action-sheet").show();
|
|
||||||
})
|
|
||||||
$('.top-country .close-icon').click(function(){
|
|
||||||
$(".mask,.action-sheet").hide();
|
|
||||||
})
|
|
||||||
|
|
||||||
// 移动端顶部宽度设置和主体内容宽度一致
|
|
||||||
var pageWidth = $('.oricoEGapp').outerWidth();
|
|
||||||
// 设置.header-PC元素的宽度
|
|
||||||
$('.oircoEgapp-head').css('width', pageWidth + 'px');
|
|
||||||
// 可选:监听窗口大小变化,实时更新宽度
|
|
||||||
$(window).resize(function() {
|
|
||||||
var newWidth = $('.oricoEGapp').outerWidth();
|
|
||||||
$('.oircoEgapp-head').css('width', newWidth + 'px');
|
|
||||||
});
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
@@ -79,6 +79,27 @@
|
|||||||
{/notempty}
|
{/notempty}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 顶部国家选择-->
|
||||||
|
<div class="top-country">
|
||||||
|
<div class="mask"></div>
|
||||||
|
<div class="action-sheet">
|
||||||
|
<div class="menu-title">
|
||||||
|
<div class="menu-name">{:lang_i18n('请择地区')}</div>
|
||||||
|
<div class="close-icon">
|
||||||
|
<img src="__IMAGES__/close.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
{volist name="header_languages" id="la"}
|
||||||
|
<li>
|
||||||
|
<a href="{$la.lang_url}" target="_blank">
|
||||||
|
<img src="{$la.lang_icon}">{$la.country_en_name} - {$la.lang_en_name}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{/volist}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
@@ -112,6 +133,13 @@
|
|||||||
$('.closetx').click(function () {
|
$('.closetx').click(function () {
|
||||||
$('.nhlpapp-search').hide();
|
$('.nhlpapp-search').hide();
|
||||||
});
|
});
|
||||||
|
// 顶部国家选择
|
||||||
|
$('.top-country-toggle').click(function(){
|
||||||
|
$(".mask,.action-sheet").show();
|
||||||
|
})
|
||||||
|
$('.top-country .close-icon').click(function(){
|
||||||
|
$(".mask,.action-sheet").hide();
|
||||||
|
})
|
||||||
// 搜索
|
// 搜索
|
||||||
var timeout = null;
|
var timeout = null;
|
||||||
$('#search-input').on('focus input', function () {
|
$('#search-input').on('focus input', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user