index.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. jQuery(".phmarani_x3_bottom").slide({mainCell:".bd ul",autoPlay:true,effect:"topMarquee",vis:2,interTime:50,trigger:"click"});
  2. jQuery(".cnxhBox_list").slide({titCell:".hd ul",mainCell:".cnxhBox_list_main ul",autoPage:true,effect:"left",interTime:5000,autoPlay:true,scroll:3,vis:3});
  3. // $("#indexReport-list li").each(function(){
  4. // var obj=$(this);
  5. // var dw=obj.find(".list_m").eq(0).width();
  6. // var cw=obj.find(".scrollText span").eq(0).width();
  7. // var cx=0;
  8. // //宽度超出当前content宽度才滚动
  9. // if(cw>dw){
  10. // var scrollval=null;//滚动事件变量
  11. // obj.find(".scrollText span").eq(0).append('<i style="width:30px; display:inline-block"></i>'+obj.find(".scrollText span").eq(0).html());
  12. // scrollval=setInterval(function(){
  13. // obj.find(".scrollText span").eq(0).css({
  14. // "left":"-"+cx+"px"
  15. // })
  16. // if(cx>(cw-dw)+dw)
  17. // cx=0;
  18. // cx++;
  19. // },25);
  20. // }
  21. // });
  22. $('.phmarani_x2 .lplist ul li').each(function(){
  23. var obj=$(this);
  24. var dw=obj.find(".lpright").eq(0).width();
  25. var cw=obj.find(".lpjs span").eq(0).width();
  26. var cx=0;
  27. //宽度超出当前content宽度才滚动
  28. if(cw>dw){
  29. var scrollval=null;//滚动事件变量
  30. obj.find(".lpjs span").eq(0).append('<i style="width:30px; display:inline-block"></i>'+obj.find(".lpjs span").eq(0).html());
  31. scrollval=setInterval(function(){
  32. obj.find(".lpjs span").eq(0).css({
  33. "left":"-"+cx+"px"
  34. })
  35. if(cx>(cw-dw)+dw)
  36. cx=0;
  37. cx++;
  38. },25);
  39. }
  40. });
  41. $('.phmarani_x2 .lplist ul li').each(function(){
  42. var obj=$(this);
  43. var dw=obj.find(".lpright .title").eq(0).width();
  44. var cw=obj.find(".lpright .title p").eq(0).width();
  45. var cx=0;
  46. //宽度超出当前content宽度才滚动
  47. if(cw>dw){
  48. var scrollval=null;//滚动事件变量
  49. obj.find(".lpright .title p").eq(0).append('<i style="width:30px; display:inline-block"></i>'+obj.find(".lpright .title p").eq(0).html());
  50. scrollval=setInterval(function(){
  51. obj.find(".lpright .title p").eq(0).css({
  52. "left":"-"+cx+"px"
  53. })
  54. if(cx>(cw-dw)+dw)
  55. cx=0;
  56. cx++;
  57. },25);
  58. }
  59. });
  60. $('.lpbm .yykf').on('click',function(){
  61. var hid=$(this).attr('data-hid');
  62. var source=$(this).attr('data-source');
  63. $('.bmBox_form input[name="source"]').val(source)
  64. $('.bmBox_form input[name="hid"]').val(hid)
  65. $('.bmBox').show();
  66. $('.bmBoxbg').show();
  67. })
  68. $('.bmBoxbg,.bmBox_gb a').on('click',function(){
  69. $('.bmBox').hide();
  70. $('.bmBoxbg').hide();
  71. $('.bmBox_form input[type="text"]').val('');
  72. })
  73. $('.phmarani_x2 .lplist ul li').each(function(){
  74. var then=$(this);
  75. then.find('.lpleft_m a').on('click',function(){
  76. if ($(this).find('video').hasClass('pause')) {
  77. var _this=$(this);
  78. _this.find('span').hide();
  79. _this.find('i').hide();
  80. $(this).find('video').trigger("play");
  81. $(this).find('video').removeClass('pause');
  82. $(this).find('video').addClass('play');
  83. } else {
  84. $(this).find('video').trigger("pause");
  85. $(this).find('video').removeClass('play');
  86. $(this).find('video').addClass('pause');
  87. }
  88. })
  89. })
  90. $(function(){
  91. //报名验证提交的调用 底下报名
  92. PublicAction.AjaxSend({CORID:'indec'/*操作ID*/});
  93. $('.submit_area .indec').on('click',function(){
  94. setTimeout(function(){
  95. var _html = $('.alert-container .alert-content').html();
  96. if(_html == '提交成功'){
  97. $('.bmBox').hide();
  98. $('.bmBoxbg').hide();
  99. $('.submit_area input[type="text"]').val('');
  100. }
  101. console.log(_html);
  102. },300)
  103. })
  104. })