// 顶部检索栏 $(window).scroll(function (){ var st = $(this).scrollTop(); if(st >10){ $('.w_top').addClass('w-top-bg'); }else{ $('.w_top').removeClass('w-top-bg'); } }); //轮播图片 var mySwiper1= new Swiper(".swiper-container1",{ loop : true, loopedSlides:4, autoplay:5500, autoplayDisableOnInteraction : false, // 如果需要分页器 pagination: '.swiper-pagination', slidesPerView :"auto" }); var regIon= new Swiper(".swiper-container2",{ loop : false, loopedSlides:4, pagination: '.swiper-pagination', autoplayDisableOnInteraction : false, slidesPerView :"auto" }); // 品牌馆 var mySwiper1= new Swiper("#yw_swiper_5",{ loop : false, // autoplay:5500, slidesPerGroup : 2, autoplayDisableOnInteraction : false, slidesPerView :"auto" }); // 专题入口 new Swiper(".wner",{ slidesPerView :'auto', pagination:'.wner-list', spaceBetween:10, // initialSlide:1, effect:'coverflow', centeredSlides: true, coverflow: { rotate: 30, stretch: 10, depth:20, modifier: 1, slideShadows : true } }); // 品房头条 function autoScroll(obj){ $(obj).find("ul").animate({ marginTop : "-30px" },500,function(){ $(this).css({marginTop : "0px"}).find("li:first").appendTo(this); }) } $(function(){ setInterval('autoScroll(".headle_right .content")',8000); }) // 2018-10-11 轮播图 var mySwiper1= new Swiper("#yw_swiper",{ // loop : true, loopedSlides:4, autoplay:5500, autoplayDisableOnInteraction : false, // 如果需要分页器 pagination: '.yw_swiper-pagination', slidesPerView :"auto", lazyLoading : true, lazyLoadingInPrevNext : true, lazyLoadingOnTransitionStart : true, }); $(window).scroll(function (){ var st = $(this).scrollTop(); if(st >196){ $('.suspension').fadeIn().addClass('xungua'); $('.header').fadeOut(); }else{ $('.suspension').fadeOut(); $('.header').fadeIn(); } }); $('.suspension').on('click',function(){ $('body,html').animate({ scrollTop: 0 }, 1000); return false; }) var trend = $('.y_quyou_list ul.list_m li').eq(0).find('a').attr('CityData'); index_trend (); $(function(){ var Citya = $('.y_quyou_list ul.list_m li').eq(0).find('a').text(); $('.y_quyou em a').text(Citya); $('.y_quyou_list ul.list_m li').eq(0).attr('class','on'); $('.y_quyou em').on('click',function(){ $('.y_quyou_list_bg').fadeIn(); $('.y_quyou_list').slideDown("slow"); }) $('.y_quyou_list_bg').on('click',function(){ $(this).fadeOut(); $('.y_quyou_list').fadeOut(); }) $('.y_quyou_list').on('click',function(){ $(this).fadeOut(); $('.y_quyou_list_bg').fadeOut(); }); $('.y_quyou_list ul.list_m li a').on('click',function(){ $(this).parent().addClass('on').siblings().removeClass('on'); var oAtexe=$(this).text(); $('.y_quyou em a').text(oAtexe); // console.log(oAtexe); trend = $(this).attr('CityData'); index_trend (); }) }); function index_trend (){ // var html = ''; // var _html =''; // $.ajax({ // url: "/index/cityprice", // data:{id:trend}, // type: "POST", // dataType: "json", // success: function(data) {//请求成功完成后要执行的方法 // if(data.code == 200){ // html+= '
'+data.data.price+'元/m²
'; // html+= ''+ data.data.city_name + data.data.price_at +'房价均价
'; // if(data.data.trend == 1){ // _html+= ''+data.name+'
'; // html+= ''+data.city_name+'
'; // if(data.sale_price != 0 && data.sale_price != null && data.sale_price != ''){ // html+= ''+data.sale_price+''+data.price_unit+'
'; // }else{ // html+= '待定
'; // } // html+= '有效期:'+time_mina+'
'; // html+= ' '; // html+= '已有 '+randvalue+' 人关注
'; // html+= '