index.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. jQuery(".lptypeBox_ul1").slide({titCell:".hd ul",mainCell:".list ul",autoPage:true,effect:"left",autoPlay:true,scroll:1,vis:1,trigger:"click",interTime:5000});
  2. jQuery(".lptypeBox_ul2").slide({titCell:".hd ul",mainCell:".list ul",autoPage:true,effect:"left",autoPlay:true,scroll:1,vis:1,trigger:"click",interTime:5000});
  3. document.title = 'The Fresh City(自在城)-海居网';
  4. //tab 选项卡切换 ----优化
  5. function tab (name1,name2,name3){;
  6. $(name1).on('click',function(){
  7. $(name2).hide();
  8. var Idoption = $(this).attr(name3);
  9. $(name2+'['+name3+''+'='+ Idoption +']').show();
  10. $(this).addClass('on').siblings().removeClass('on');
  11. })
  12. $(name1).eq(0).addClass('on');
  13. $(name2).eq(0).show();
  14. }
  15. tab('.lpxc_nav a','.lptypeBox_ul','data-id');
  16. //报名验证提交的调用 底下报名
  17. PublicAction.AjaxSend({CORID:'buttom_a'/*操作ID*/});
  18. $('.submit_area .buttom_a').on('click',function(){
  19. setTimeout(function(){
  20. var _html = $('.alert-container .alert-content').html();
  21. if(_html == '提交成功'){
  22. // delbox();
  23. $('.inp-s').val('');
  24. }
  25. console.log(_html);
  26. },300)
  27. })