= 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無共創(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;
}
明水县|
凤阳县|
嘉禾县|
和林格尔县|
麦盖提县|
得荣县|
湖南省|
凤冈县|
隆尧县|
晋州市|
郴州市|
通山县|
调兵山市|
万载县|
山东|
晋州市|
武穴市|
寻甸|
通山县|
呼伦贝尔市|
禄劝|
凤冈县|
杭锦旗|
大渡口区|
伊宁县|
新建县|
达拉特旗|
丰县|
东宁县|
宁南县|
南投县|
武威市|
原阳县|
浦县|
上虞市|
延长县|
深水埗区|
南城县|
徐汇区|
新平|
旌德县|