123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- $(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,
-
- slidesPerGroup : 2,
- autoplayDisableOnInteraction : false,
- slidesPerView :"auto"
- });
-
-
- new Swiper(".wner",{
- slidesPerView :'auto',
- pagination:'.wner-list',
- spaceBetween:10,
-
- 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);
- })
-
- var mySwiper1= new Swiper("#yw_swiper",{
-
- 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);
-
- trend = $(this).attr('CityData');
- index_trend ();
-
- })
- });
- function index_trend (){
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- $('.m_hotlp_hyh').on('click',function(){
-
- m_hotlp_hyh(1);
- })
- $('.y_hotnews_bk li').on('click',function(){
- var dataid=$(this).attr('data-id');
- })
-
- $('.y_city a').on('click',function(){
- $('#serachBox2').hide();
- $('.footer_copy').hide();
- $('.m_qhcs_box').show();
- });
- $('.m_head_qhcs .m_Return').on('click',function(){
- $('#serachBox2').show();
- $('.m_qhcs_box').hide();
- $('.footer_copy').show();
- });
-
-
-
-
-
-
-
-
-
-
-
-
- var myDate = new Date;
- var year = myDate.getFullYear();
- var yue = myDate.getMonth()+1;
- if (yue<10) {
- yue= '0' + yue;
- }else if(yue == 13){
- yue = '01';
- };
- function mGetDate(yue){
- var date = new Date();
- var year = date.getFullYear();
- var d = new Date(year,parseInt(yue), 0);
- return d.getDate();
- }
- var htmltime = year + '/'+ yue + '/' +'01'+'-'+ year + '/'+ yue + '/' + mGetDate(yue);
- $('.sell_conter_right .date').html('有效期 '+' '+ htmltime);
-
- $(".y_style1_text .y_title").each(function(){
- var maxwidth=35;
- if($(this).text().length>maxwidth){ $(this).text($(this).text().substring(0,maxwidth)); $(this).html($(this).html()+'…');
- }
- });
- $('.m_region span').eq(1).click();
- $('.m_City_box[data-id="1"]').show();
- $('.m_region span').on('click',function(){
- var dataid = $(this).attr('data-id');
- $('.m_City_box').hide()
- $('.m_City_box[data-id="'+dataid+'"]').show();
- $(this).attr('class','on').siblings().attr('class','');
- })
|