热门话题
推荐文章

-
《中华人民共和国劳动争议调解仲裁法》已由中
最新文章

-
..
$(function() {
var $keyword = $("#keyword").val();
setHeightKeyWord('fontshow', $keyword, 'Red', true);
//分类浏览
var sfEls = $("#news_nav").find("div");
for (var i=0; i0? " ": "") + "zx_fl_list_hover";
}
sfEls[i].onMouseDown=function() {
this.className+=(this.className.length>0? " ": "") + "zx_fl_list_hover";
}
sfEls[i].onMouseUp=function() {
this.className+=(this.className.length>0? " ": "") + "zx_fl_list_hover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp("( ?|^)zx_fl_list_hover\\b"),"");
}
}
});
function setHeightKeyWord(id, keyword, color, bold) {
if (keyword == "")
return;
var tempHTML = $("#" + id).html();
var htmlReg = new RegExp("\<.*?\>", "i");
var arrA = new Array();
for (var i = 0; true; i++) {
var m = htmlReg.exec(tempHTML);
if (m) {
arrA[i] = m;
} else {
break;
}
tempHTML = tempHTML.replace(m, "[[[[" + i + "]]]]");
}
var replaceText
if (bold)
replaceText = "$1";
else
replaceText = "$1";
var arrayWord = keyword.split(',');
for (var w = 0; w < arrayWord.length; w++) {
var r = new RegExp("("+ arrayWord[w].replace(/[(){}.+*?^$|\\\[\]]/g, "\\$&")+ ")", "ig");
tempHTML = tempHTML.replace(r, replaceText);
}
for (var i = 0; i < arrA.length; i++) {
tempHTML = tempHTML.replace("[[[[" + i + "]]]]", arrA[i]);
}
$("#" + id).html(tempHTML);
}
var code_kind = '1',
setval,
setwout;
function showlogin(usertype) {
checkCode('vcode_img');
$("#login_usertype").val(usertype);
$('#bind-captcha').attr('data-id','sublogin');
var reg_moblie = '0';
var reg_email = '0';
$("#onregister").attr("href", 'https://www.lhrcsc.com/');
$('#bind-captcha').attr('data-id','sublogin');
$("#bind-captcha").attr('data-type','click');
$.layer({
id: 'onloginid',
type: 1,
title: '欢迎登录',
closeBtn: [0, true],
offset: ['20%'],
border: [10, 0.3, '#000', true],
area: ['410px', 'auto'],
zIndex:100,
page: {
dom: "#onlogin"
},
close: function(){
$('#acount_login').click();
}
});
}
$(document).ready(function() {
//账号登录和手机登录tab选择
$('#acount_login').click(function(data) {
$('#acount_login').removeClass().addClass('login_pop_up_cur');
$('#mobile_login').removeClass();
$('#code_login').removeClass();
$('#login_normal_box').show();
$('#sublogin').show();
$('#login_sj_box').hide();
$('.logoin_tck_t_list').show();
$('.login_pop_up_box_yztext').show();
$('.login_pop_up_box_fot').show();
$('.login_pop_up_box_other').show();
$('#login_sjyz_box').hide();
$('.wx_login_show').hide();
$('#act_login').val('0');
$('#bind-captcha').attr('data-id','sublogin');
if(setval){
clearInterval(setval);
setval = null;
}
if(setwout){
clearTimeout(setwout);
setwout = null;
}
});
$('#mobile_login').click(function(data) {
$('#mobile_login').removeClass().addClass('login_pop_up_cur');
$('#acount_login').removeClass();
$('#code_login').removeClass();
$('#login_sj_box').show();
$('.logoin_tck_t_list').show();
$('.login_pop_up_box_yztext').show();
$('#login_sjyz_box').show();
$('#sublogin').show();
$('#login_normal_box').hide();
$('.wx_login_show').hide();
$('.login_pop_up_box_fot').show();
$('.login_pop_up_box_other').show();
$('#act_login').val('1');
$('#bind-captcha').attr('data-id','send_msg_tip');
if(setval){
clearInterval(setval);
setval = null;
}
if(setwout){
clearTimeout(setwout);
setwout = null;
}
});
$('#code_login').click(function(data) {
$('#code_login').removeClass().addClass('login_pop_up_cur');
$('#acount_login').removeClass();
$('#mobile_login').removeClass();
$('#login_sj_box').hide();
$('.logoin_tck_t_list').hide();
$('.login_pop_up_box_yztext').hide();
$('.login_pop_up_box_fot').hide();
$('.login_pop_up_box_other').hide();
$('#login_sjyz_box').hide();
$('#login_normal_box').hide();
$('#sublogin').hide();
$('.wx_login_show').show();
getwxlogincode();
});
});
function getwxlogincode(){
$.post('https://www.lhrcsc.com/index.php?c=wxlogin', {
t: 1
}, function(data) {
if(data == 0) {
$('#wx_login_qrcode').html('二维码获取失败..');
} else {
$('#wx_login_qrcode').html('
');
setval = setInterval(function(){
$.post('https://www.lhrcsc.com/index.php?c=getwxloginstatus', {
t: 1
}, function(data) {
var data = eval('(' + data + ')');
if(data.url != '' && data.msg != '') {
clearInterval(setval);
setval = null;
layer.msg(data.msg, 2, 9, function() {
window.location.href = data.url;
});
} else if(data.url) {
window.location.href = '';
}
});
}, 2000);
if(setwout){
clearTimeout(setwout);
setwout = null;
}
setwout = setTimeout(function(){
if(setval){
clearInterval(setval);
setval = null;
}
var wx_sx = $("#wx_sx").html();
$('#wx_login_qrcode').html(wx_sx);
},300*1000);
}
});
}
var weburl="https://www.lhrcsc.com",
user_sqintegrity="80",
integral_pricename='积分',
pricename='积分',
code_web='注册会员,店铺招聘,后台登录,职场提问',
code_kind='1';
$(function(){
$(window).on('scroll',function(){
var st = $(document).scrollTop();
if( st>0 ){
if( $('#main-container').length != 0 ){
var w = $(window).width(),mw = $('#main-container').width();
if( (w-mw)/2 > 70 )
$('#go-top').css({'left':(w-mw)/2+mw+20});
else{
$('#go-top').css({'left':'auto'});
}
}
$('#go-top').fadeIn(function(){
$(this).removeClass('dn');
});
}else{
$('#go-top').fadeOut(function(){
$(this).addClass('dn');
});
}
});
$('#go-top .go').on('click',function(){
$('html,body').animate({'scrollTop':0},500);
});
$('#go-top .uc-2vm').hover(function(){
$('#go-top .uc-2vm-pop').removeClass('dn');
},function(){
$('#go-top .uc-2vm-pop').addClass('dn');
});
//获取分站信息
if($('#substation_city_id').length == 1){
var indexdirurl = '';
if($('#indexdir').val()!=''){
indexdirurl = '&indexdir='+$('#indexdir').val();
}
$.get(weburl+"/index.php?m=ajax&c=Site&type=ajax"+indexdirurl,function(data){
$('#substation_city_id').html(data);
});
}
//获取登录信息
if($('#login_head_id').length == 1){
$.get(weburl+"/index.php?m=ajax&c=RedLoginHead&type=ajax",function(data){
$('#login_head_id').html(data);
});
}
});
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(bp, s);
})();