&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無共創(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;
}
芮城县|
泌阳县|
满洲里市|
全州县|
天祝|
青浦区|
奉化市|
松滋市|
七台河市|
凌源市|
安多县|
天门市|
咸阳市|
吉林市|
定陶县|
孝感市|
延庆县|
梨树县|
尉犁县|
淳化县|
黔江区|
丰原市|
海伦市|
平陆县|
宜兰县|
和田市|
滦平县|
临猗县|
西华县|
河津市|
温州市|
阳江市|
保定市|
罗田县|
海口市|
重庆市|
余姚市|
正安县|
汉中市|
琼海市|
庆安县|