$(function(){   $('.index-roombooking-select>input').click(function(){ //房间预订下拉 if($(this).hasclass('inputselect')){ if($(this).parent().children('ul').css('display') == 'none'){ $(this).parent().children('ul').slidedown(); }else if($(this).parent().children('ul').css('display') == 'block'){ $(this).parent().children('ul').slideup(); } } }); $('#pinpai').click(function(event) { $('.index-roombooking-select>input').addclass('inputselect'); $('.index-roombooking-select>input').val(''); $('.index-roombooking-select>input')[0].readonly = true; }); $('#jiudian').click(function(event) { $('.index-roombooking-select>input').val(''); $('.index-roombooking-select>input').removeclass('inputselect'); $('.index-roombooking-select>input')[0].readonly = false; }); $(".index-roombooking-select>ul>li").click(function(){ var text1 = $(this).text(); var text2 = $(this).attr("data"); // alert(text2); $(".index-roombooking-select>input").eq(0).val(text1); $("#hotel_id").val(text2); $('.index-roombooking-select>ul').slideup(); }); $(".index-roombooking-banner .swiper-slide").hover(function(){ //首页图片滑入文字 $(this).children('div').stop(); $(this).children('div').slidedown(); },function(){ $(this).children('div').stop(); $(this).children('div').slideup(); }); $(".index-newp").hover(function(){ $(this).children('p:eq(0)').css('color','#c6ad47'); },function(){ $(this).children('p:eq(0)').css('color','#333333'); }); if($(window).width() > 1100){ $(".dropdown").hover(function(){ $(this).addclass('open'); },function(){ $(this).removeclass('open'); }); } $(".room-select>p").click(function(){ $(".room-select>ul").slidetoggle(); }); $(".room-select>ul>li").click(function(){ var text1 = $(this).html(); $(".room-select>p>span").html(text1); $(this).parent().slideup(); }); $(".cooperation-showbtn>span").click(function(){ $(this).parent().next().slidedown(); }); $(".cooperation-shownotep").click(function(){ $(this).slideup(); }); var showcul = function(){ var indexx; $(".culture-leftul li").each(function(){ if($(this).is('.active')){ indexx = $(this).index(); } }); $('.culture-rightshow').hide(); $('.culture-right .culture-rightshow:eq(' + indexx +')').show(); } showcul(); $(".culture-leftul li").click(function(){ $(this).siblings().removeclass('active'); $(this).addclass('active'); showcul(); }); if($(window).width() < 768){ if($('.dropdown').length > 0){ $('.dropdown').each(function() { $(this).addclass('open'); }); } }; // $(".erweima").click(function(){ // $('body').append("

扫描二维码,加入首旅南苑黑金会员俱乐部

"); // $('.zcewmimgclose').on('click', function(event) { // $(this).parent().parent().remove(); // }); // }); });