// 2018-10-11 轮播图
    var mySwiper1= new Swiper("#yw_swiper",{
        loop : true,
        loopedSlides:4,
        // autoplay:5500,
        autoplayDisableOnInteraction : false,
        // 如果需要分页器
        pagination: '.yw_swiper-pagination',
        slidesPerView :"auto"
    });



$('.m_list_box ul li').eq(0).attr('class','on');
$('.m_lplist[data-id="0"]').show();

$('.m_list_box ul li').on('click',function(){
	var _dataid = $(this).attr("data-id");
    $('.m_lplist').hide();
	$('.m_lplist[data-id="'+_dataid+'"]').show();

	$(this).attr('class','on').siblings().attr('class','');

    $('.m_bottom_text').hide();
    $(".m_lplist_bottom p").attr('switchid','false');
    $(".m_lplist_bottom p").find('img').attr('src','/zt/yahu20190708/image/yh4.png');
})


 $(".m_xial_top").click(function () {
     $(this).parent().find('.m_xial_xl').slideToggle();
 });

 $(".m_lplist_bottom p").click(function () {
     $(this).parent().find('.m_bottom_text').slideToggle();


    var _switchid = $(this).attr('switchid');

    if (_switchid == "false") {
        $(this).removeClass('on');
        $(this).find('img').attr('src','/zt/yahu20190708/image/yh04.png');
        $(this).attr('switchid','true');
    }else{
        $(this).addClass('on');
        $(this).find('img').attr('src','/zt/yahu20190708/image/yh4.png');
        $(this).attr('switchid','false');
    }


 });

PublicAction.AjaxSend({CORID:'m_bm_bottom'/*操作ID*/});