//修改为PC端地址
var pc_uri = "https://www.yanghua.net/";
if(typeof(jQuery)=="undefined"){
    var head = document.getElementsByTagName('head')[0];
    var script = document.createElement('script');
    script.src = 'https://libs.baidu.com/jquery/1.7.1/jquery.min.js';
    script.type = 'text/javascript';
    script.onload = callviewck;
    head.appendChild(script);
}
else {
    $(document).ready(function(){
        callviewck();
    });
}

function callviewck(){
    $('[page-id-data]').removeAttr("target");
    var urls = {};
    urls.url = document.URL;
    urls.re = document.referrer;
    urls.ua = navigator.userAgent;
    urls.title = document.title;
    urls.attr = $('[page-id-data]').attr('page-id-data');
    $.post(pc_uri+ "/e/public/ViewClick/?down=9&t="+ new Date().getTime(),urls);
}

function go($url){
    window.location.href = pc_uri+ $url+ "&reurl="+ encodeURIComponent(document.referrer)+ "&t="+ new Date().getTime();
}
