= null){ return; } url = $(this).attr('visit-url'); yyzx_type = $(this).attr('visit-yyzx_type'); type = $(this).attr('visit-type'); services_id = $(this).attr('visit-services_id'); user_id = $(this).attr('visit-user_id'); need_login = $(this).attr('visit-need_login'); if(need_login==1 && user_id==0){ }else{ $.get('http://yyzx.wendaifu.com/index/tongji/visit_statistics',{name:name,url:encodeURIComponent(url),type:type,services_id:services_id,user_id:user_id,refer:2,yyzx_type:yyzx_type},function(){}); } }) } function login_fun(url){ var userid = + 0; if(userid == 0 || userid == ''){ // 刷新本页面 window.location.href = '/public/login?back_url=https://m.wendaifu.com/lygl/nanjing_doctor/?p=4'; }else{ window.location.href = url; } }