= "undefined") {
setTimeout("func_stats()", 3000);
var doc = document, t = pvTrack;
var pv_site, pv_category, pv_subcategory, pv_object, pv_series, pv_type, pv_typeid, pv_spec, pv_level, pv_dealer, pv_bcTypeId, pv_ref, pv_cur;
pv_ref = escape(doc.referrer);
pv_cur = escape(doc.URL);
pv_site = t.site;
pv_category = t.category;
pv_subcategory = t.subcategory;
pv_object = t.object;
pv_series = t.series;
pv_type = t.type;
pv_typeid = t.typeid;
pv_spec = t.spec;
pv_level = t.level;
pv_dealer = t.dealer;
pv_bcTypeId = t.bcTypeId;
url_stats += pv_site + (pv_category != null ? "&CategoryId=" + pv_category : "") + (pv_subcategory != null ? "&SubCategoryId=" + pv_subcategory : "") + (pv_object != null ? "&objectid=" + pv_object : "") + (pv_series != null ? "&seriesid=" + pv_series : "") + (pv_type != null ? "&type=" + pv_type : "") + (pv_typeid != null ? "&typeid=" + pv_typeid : "") + (pv_spec != null ? "&specid=" + pv_spec : "") + (pv_level != null ? "&jbid=" + pv_level : "") + (pv_bcTypeId != null ? "&bcTypeId=" + pv_bcTypeId : "") + (pv_dealer != null ? "&dealerid=" + pv_dealer : "") + "&ref=" + pv_ref + "&cur=" + pv_cur + "&rnd=" + Math.random();
var len_url_stats = url_stats.length;
}
})();
function func_stats() {
var image = new Image(1, 1);
image.onload = image.onerror = function () {
image.onload = image.onerror = null;
image = null;
};
image.src = url_stats;
}
function pusheid(eid, a1) {
if (a1 != null) {
_trackEvent.push({ 'eid': eid, 'val': 1, 'a1': a1 });
} else {
_trackEvent.push({ 'eid': eid, 'val': 1 });
}
}
// 發(fā)送pv數(shù)據(jù)
function sendPvTrack(action, area, element, uid, authorid, pmark, objectId, extendObj) {
if (!pmark) {
pmark = 0;
}
if (!objectId) {
objectId = 0;
}
var sendExtend = $.extend({ 'authorId': authorid, 'objectId': objectId }, extendObj);
if (window.trackCustomEvent) {
trackCustomEvent('auto_common_event',
{
biz: "media",
'type': 'click', 'action': action, 'area': area, 'element': element, 'pmark': pmark,
ctime: new Date().getTime(),
cid: uid
},
sendExtend);
}
}
function pusheidforimg(eid, a1, a2) {
_trackEvent.push({ 'eid': eid, 'val': 1, 'a1': a1, 'a2': a2 });
}
//獲取url參數(shù)
function urlQuery(name = '', val = '', str = '', splitStr = '') {
const r = new RegExp(`(^|&)${name}=([^&]*)(&|$)`, 'i');
const { search, hash } = document.location;
const s = (str || search || hash).split(splitStr || '?')[1];
const v = (s && s.match(r) && s.match(r)[2]) || val;
const d = /(%[0-9A-Z]{2})+/g;
try {
return v.replace(d, decodeURIComponent);
} catch (err) {
try {
return decodeURIComponent(v);
} catch (e) {
return decodeURIComponent(escape(v));
}
}
}
// 發(fā)送pv數(shù)據(jù)
function getEventTrackObjNew(uid, authorid, objectId, sourceId, coopId, coopIf) {
if (!objectId) {
objectId = -1;
}
var eventObj = {
author_id: authorid,
user_id: uid,
objectid: objectId,
seriesid: -1,
sourceid: sourceId,
coop_id: coopId,
pvid: -1,
coop_if: ((coopIf && coopIf > 0) ? coopIf : (coopId > 0 ? 2 : 1)),//1無(wú)共創(chuàng)功能,2有共創(chuàng)功能
author_type: ((coopIf && coopIf > 0) ? coopIf : (coopId > 0 ? 2 : 1)) //1關(guān)注的是創(chuàng)作者、2關(guān)注的是其它共創(chuàng)者
};
return eventObj;
}
错那县|
广丰县|
黄陵县|
丹阳市|
滨州市|
柳河县|
樟树市|
仁化县|
盐池县|
曲麻莱县|
迁西县|
乌兰察布市|
万山特区|
德格县|
屏南县|
固安县|
罗甸县|
宁国市|
海原县|
沁源县|
株洲县|
泾源县|
额敏县|
大姚县|
神池县|
京山县|
察隅县|
板桥市|
改则县|
沙田区|
荔浦县|
溧阳市|
育儿|
彭阳县|
沅江市|
慈溪市|
宜黄县|
大英县|
逊克县|
綦江县|
塔城市|