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無共創(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;
}
巴林左旗|
南涧|
会泽县|
双峰县|
楚雄市|
五河县|
通渭县|
莲花县|
丁青县|
昔阳县|
临清市|
紫金县|
洛浦县|
清原|
花莲县|
绥滨县|
荆州市|
汤阴县|
衡南县|
高平市|
井陉县|
红河县|
奉新县|
皮山县|
长治县|
固始县|
洛浦县|
崇礼县|
汨罗市|
灵山县|
呼玛县|
葫芦岛市|
唐河县|
安国市|
繁峙县|
罗甸县|
郓城县|
洪雅县|
浪卡子县|
都昌县|
扶沟县|