123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- $(function(){
- // // 轮播图
- var mySwiper1 = new Swiper('.lpmain_lp_main',{
- autoplay:5000, //自动切换
- loop : true, //循环
- });
- $('body').on('click','.school_buttom',function(){
- var lpname=$(this).attr('data-name')
- var lphid=$(this).attr('data-hid')
- $('.schoolBm_form .lptitile').html(lpname);
- $('.schoolBm_form input[name="hid"]').val(lphid);
- $('.schoolBm').show(10)
- $('.schoolBm_bg').show()
- })
- $('.schoolBm_bg,.schoolBm_gb').on('click',function(){
- $('.schoolBm').hide()
- $('.schoolBm_bg').hide()
- })
- $('body').on('click','.blessing_buttom',function(){
- var lpname=$(this).attr('data-name')
- var lphid=$(this).attr('data-hid')
- $('.blessingBm_form .lptitile').html(lpname);
- $('.blessingBm_form input[name="hid"]').val(lphid);
- $('.blessingBm').show(10)
- $('.blessingBm_bg').show()
- })
- $('.blessingBm_bg,.blessingBm_gb').on('click',function(){
- $('.blessingBm').hide()
- $('.blessingBm_bg').hide()
- })
- $('body').on('click','.travel_buttom',function(){
- var lpname=$(this).attr('data-name')
- var lphid=$(this).attr('data-hid')
- $('.travelBm_form .lptitile').html(lpname);
- $('.travelBm_form input[name="hid"]').val(lphid);
- $('.travelBm').show(10)
- $('.travelBm_bg').show()
- })
- $('.travelBm_bg,.travelBm_gb').on('click',function(){
- $('.travelBm').hide()
- $('.travelBm_bg').hide()
- })
- $('body').on('click','.cent_bm',function(){
- $('.Hgift').show(10)
- $('.Hgift_bg').show()
- })
- $('.Hgift_bg,.Hgift_gb').on('click',function(){
- $('.Hgift').hide()
- $('.Hgift_bg').hide()
- })
-
- var _m=1
- $('.ztfooter_bm_main .city_m').on('click',function(){
- if (_m==1) {
- $('.ztfooter_bm_main .city_list').show(10)
- _l=2
- }else if (_m==2) {
- $('.ztfooter_bm_main .city_list').hide(0)
- _m=1;
- }
- })
- $('.ztfooter_bm_main .city_list').on('click','a',function(){
- var cityName=$(this).text();
- $(this).addClass('on').siblings().removeClass('on')
- $('.ztfooter_bm_main .city_m span').html(cityName)
- $('.ztfooter_bm_main input[name="intention_city"]').val(cityName);
- $('.ztfooter_bm_main .city_list').hide()
- _m=1;
- })
- var _l=1
- $('.Hgift_form .city_m').on('click',function(){
- if (_l==1) {
- $('.Hgift_form .city_list').show(10)
- _l=2
- }else if (_l==2) {
- $('.Hgift_form .city_list').hide(0)
- _l=1;
- }
- })
- $('.Hgift_form .city_list').on('click','a',function(){
- var cityName=$(this).text();
- $(this).addClass('on').siblings().removeClass('on')
- $('.Hgift_form .city_m span').html(cityName)
- $('.Hgift_form input[name="intention_city"]').val(cityName);
- $('.Hgift_form .city_list').hide()
- _l=1;
- })
- // 右边悬挂
- $(window).scroll(function (){
- var st = $(this).scrollTop();
- if(st >300){
- $('.rightnav').show();
- }else{
- $('.rightnav').hide();
- }
- });
- $('.nav_list a').on('click',function(){
- $(this).addClass('on').siblings().removeClass('on')
- })
- // 报名提交事件
- PublicAction.AjaxSend(
- {
- CORID:'buttom_tj', /*操作ID*/
- }
- );
- $('body .submit_area .buttom_tj').on('click',function(){
- // console.log('333')
- setTimeout(function(){
- var _html = $('body .alert-container .alert-content').html();
- // console.log('222')
- if(_html == '提交成功'){
- $('.schoolBm').hide()
- $('.schoolBm_bg').hide()
- $('.blessingBm').hide()
- $('.blessingBm_bg').hide()
- $('.travelBm').hide()
- $('.travelBm_bg').hide()
- $('body input[type="text"]').val('');
- $('.ztfooter_bm_main .show_l span').html('请选择您感兴趣的国家')
- $('.Hgift_form .show_l span').html('请选择您感兴趣的国家')
- $('.ztfooter_bm_main .city_main a').removeClass('on')
- $('.Hgift_form .city_main a').removeClass('on')
- }
- },2000)
- })
- })
|