Authored by 周少峰

Merge branch 'feature/help' into 'release/5.4'

埋点添加是否跳转新页面参数



See merge request !57
... ... @@ -69,9 +69,13 @@ function _getOtherFilterValue() {
}
/** *埋点方法***/
function yasEvent(op, parameter) {
function yasEvent(op, parameter, flag) {
var CID = 1;
if (typeof flag === 'undefined') {
flag = true;
}
if (!window._yas || !window._yas.sendCustomInfo) {
return false;
}
... ... @@ -103,17 +107,17 @@ function yasEvent(op, parameter) {
window._yas.sendCustomInfo({
op: op,
param: JSON.stringify(parameter)
}, true);
}, flag);
}
function getFilterValue() {
return _getCommonFilterValue() + _getOtherFilterValue();
}
function givePoint(op, parameter) {
function givePoint(op, parameter, flag) {
var sto = setInterval(function() {
if (window._yas && window._yas.sendCustomInfo) {
yasEvent(op, parameter);
yasEvent(op, parameter, flag);
clearInterval(sto);
}
}, 100);
... ...
... ... @@ -46,7 +46,7 @@ var helpSearch = {
POS_ID: 2,
POS_NM: '热搜词 ',
KEYWORD: $(this).html()
});
}, false);
});
},
searchYas: function(keyword) { // 搜索框埋点
... ... @@ -54,7 +54,7 @@ var helpSearch = {
POS_ID: 1,
POS_NM: '搜索框',
KEYWORD: keyword
});
}, false);
},
searchDefaultVal: function() {
var _this = this;
... ...