jQuery(".phmarani_x3_bottom").slide({mainCell:".bd ul",autoPlay:true,effect:"topMarquee",vis:2,interTime:50,trigger:"click"});
jQuery(".cnxhBox_list").slide({titCell:".hd ul",mainCell:".cnxhBox_list_main ul",autoPage:true,effect:"left",interTime:5000,autoPlay:true,scroll:3,vis:3});
// $("#indexReport-list li").each(function(){
// var obj=$(this);
// var dw=obj.find(".list_m").eq(0).width();
// var cw=obj.find(".scrollText span").eq(0).width();
// var cx=0;
// //宽度超出当前content宽度才滚动
// if(cw>dw){
// var scrollval=null;//滚动事件变量
// obj.find(".scrollText span").eq(0).append(''+obj.find(".scrollText span").eq(0).html());
// scrollval=setInterval(function(){
// obj.find(".scrollText span").eq(0).css({
// "left":"-"+cx+"px"
// })
// if(cx>(cw-dw)+dw)
// cx=0;
// cx++;
// },25);
// }
// });
$('.phmarani_x2 .lplist ul li').each(function(){
var obj=$(this);
var dw=obj.find(".lpright").eq(0).width();
var cw=obj.find(".lpjs span").eq(0).width();
var cx=0;
//宽度超出当前content宽度才滚动
if(cw>dw){
var scrollval=null;//滚动事件变量
obj.find(".lpjs span").eq(0).append(''+obj.find(".lpjs span").eq(0).html());
scrollval=setInterval(function(){
obj.find(".lpjs span").eq(0).css({
"left":"-"+cx+"px"
})
if(cx>(cw-dw)+dw)
cx=0;
cx++;
},25);
}
});
$('.phmarani_x2 .lplist ul li').each(function(){
var obj=$(this);
var dw=obj.find(".lpright .title").eq(0).width();
var cw=obj.find(".lpright .title p").eq(0).width();
var cx=0;
//宽度超出当前content宽度才滚动
if(cw>dw){
var scrollval=null;//滚动事件变量
obj.find(".lpright .title p").eq(0).append(''+obj.find(".lpright .title p").eq(0).html());
scrollval=setInterval(function(){
obj.find(".lpright .title p").eq(0).css({
"left":"-"+cx+"px"
})
if(cx>(cw-dw)+dw)
cx=0;
cx++;
},25);
}
});
$('.lpbm .yykf').on('click',function(){
var hid=$(this).attr('data-hid');
var source=$(this).attr('data-source');
$('.bmBox_form input[name="source"]').val(source)
$('.bmBox_form input[name="hid"]').val(hid)
$('.bmBox').show();
$('.bmBoxbg').show();
})
$('.bmBoxbg,.bmBox_gb a').on('click',function(){
$('.bmBox').hide();
$('.bmBoxbg').hide();
$('.bmBox_form input[type="text"]').val('');
})
$('.phmarani_x2 .lplist ul li').each(function(){
var then=$(this);
then.find('.lpleft_m a').on('click',function(){
if ($(this).find('video').hasClass('pause')) {
var _this=$(this);
_this.find('span').hide();
_this.find('i').hide();
$(this).find('video').trigger("play");
$(this).find('video').removeClass('pause');
$(this).find('video').addClass('play');
} else {
$(this).find('video').trigger("pause");
$(this).find('video').removeClass('play');
$(this).find('video').addClass('pause');
}
})
})
$(function(){
//报名验证提交的调用 底下报名
PublicAction.AjaxSend({CORID:'indec'/*操作ID*/});
$('.submit_area .indec').on('click',function(){
setTimeout(function(){
var _html = $('.alert-container .alert-content').html();
if(_html == '提交成功'){
$('.bmBox').hide();
$('.bmBoxbg').hide();
$('.submit_area input[type="text"]').val('');
}
console.log(_html);
},300)
})
})