'); } else { $(this).addClass('gc_list_hide'); } }); $('li.dm_map').click(function () { location.href = SITE_URL + "/index.php?app=mapviewer&cate_id=23392"; }); $(function () { //字母筛选三级分类显示 // $(document).on('click', '.word-list>li[data-first]', function () { // var first_letter = $(this).attr('data-first'); // $(this).addClass('exc'); // $(this).siblings('li').removeClass('exc'); // $('.search_list>li[data-first]').hide(); // $('.search_list>li[data-first="' + first_letter + '"]').show(); // $('.search_list>li[data-first]>ul:visible').height('auto'); // if (parseInt($('.search_list>li[data-first="' + first_letter + '"]').height()) > 28) { // $('#more-trd-cates').show().css({ // background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_down.jpg) 37px center no-repeat' // }); // $('.search_list>li[data-first]>ul:visible').each(function () { // if (!$(this).find('li').hasClass('on')) { // $(this).height('28px'); // } else { // $('#more-trd-cates').css({ // background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_up.jpg) 37px center no-repeat' // }); // } // }); // } else { // $('#more-trd-cates').hide().css({ // background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_down.jpg) 37px center no-repeat' // }); // } // }); //更多(三级分类) if (parseInt($('#trd-cates').height()) > 60) { $('#more-trd-cates').show(); $('#trd-cates').height('60px'); } $(document).on('click', '#more-trd-cates', function () { if (parseInt($('#trd-cates').height()) > 60) { $(this).css({ background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_down.jpg) 37px center no-repeat' }); $('#trd-cates').height('60px'); } else { $(this).css({ background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_up.jpg) 37px center no-repeat' }); $('#trd-cates').height('auto'); } }); //地区更多 if (parseInt($('#area_list').height()) > 30) { $('#more-trd-cates_area').show(); $('#area_list').height('26px'); } $(document).on('click', '#more-trd-cates_area', function () { if (parseInt($('#area_list').height()) > 30) { $(this).css({ background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_down.jpg) 37px center no-repeat' }); $('#area_list').height('30px'); } else { $(this).css({ background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_up.jpg) 37px center no-repeat' }); $('#area_list').height('auto'); } }); //三级分类页 if ($('#trd-cates>ul>li>a').hasClass('on')) { if ($('#trd-cates>ul>li>a').hasClass('on')) { var $_on=$('#trd-cates>ul>li>a.on'); $_on.parents('ul.trval').prepend($_on.parent('li')); } } if ('23392' != '') { var $trd_cates = $('.search_list>li[data-first]:visible>ul'); $trd_cates.height('auto'); var trd_cates_height = $trd_cates.height(); if (trd_cates_height) { if (parseInt(trd_cates_height) > 28) { $trd_cates.height('auto'); $('#more-trd-cates').css({ background: 'url(//img1.huamu/themes/pc/mall/huamu/styles/default/images/icon_arr_up.jpg) 37px center no-repeat' }); } else { $('#more-trd-cates').hide(); } } } //显示方式选中样式 $('.table_title>ul>[hmtype=display_mode]').each(function () { if ($(this).attr('hmvalue') == 'squares') { $(this).addClass('selected'); } }); $('.factor-list>li').each(function () { if ($(this).hasClass('chosed')) { $(this).prev('li').find('a').css({ border: '0' }); } }); }); });