还原footer
This commit is contained in:
@@ -69,4 +69,45 @@
|
|||||||
</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>
|
||||||
Reference in New Issue
Block a user