...
|
...
|
@@ -195,11 +195,11 @@ $.extend({ |
|
|
});
|
|
|
}());
|
|
|
|
|
|
//为您优选埋点 http://redmine.yoho.cn/issues/10117
|
|
|
function givePoint(parameter) {
|
|
|
// 添加埋点
|
|
|
function addPoint(operate, parameter) {
|
|
|
var CID = 1;
|
|
|
|
|
|
if (!window._yas || !window._yas.sendCustomInfo) {
|
|
|
if (!window._yas || !window._yas.sendCustomInfo || !operate) {
|
|
|
return false;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -219,6 +219,18 @@ function givePoint(parameter) { |
|
|
break;
|
|
|
}
|
|
|
|
|
|
parameter = $.extend({'C_ID': CID,}, parameter);
|
|
|
|
|
|
window._yas.sendCustomInfo({
|
|
|
'op': operate,
|
|
|
'uid': getUid(),
|
|
|
'param': JSON.stringify(parameter)
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
//为您优选埋点 http://redmine.yoho.cn/issues/10117
|
|
|
function givePoint(parameter) {
|
|
|
|
|
|
parameter = $.extend({
|
|
|
'REC_POSE': '',
|
|
|
'REC_ID': RECID,
|
...
|
...
|
@@ -233,11 +245,7 @@ function givePoint(parameter) { |
|
|
return true;
|
|
|
}
|
|
|
|
|
|
window._yas.sendCustomInfo({
|
|
|
'op': 'YB_CHOOSE_FOR_YOU_Y',
|
|
|
'uid': getUid(),
|
|
|
'param': JSON.stringify(parameter)
|
|
|
}, true);
|
|
|
addPoint('YB_CHOOSE_FOR_YOU_Y', parameter);
|
|
|
}
|
|
|
|
|
|
window.cookie = cookie;
|
...
|
...
|
@@ -255,3 +263,4 @@ window.getShoppingKey = getShoppingKey; |
|
|
window.queryString = queryString;
|
|
|
|
|
|
window.givePoint = givePoint;
|
|
|
window.addPoint = addPoint; |
...
|
...
|
|