Authored by zhangxiaoru

为你优选埋点

... ... @@ -140,7 +140,7 @@ exports.preference = (req, res, next) => {
productskn: req.query.productSkn,
limit: '20' // 后期值需要修改的话得手动改
}).then((result) => {
console.log(result, 123)
console.log(result, 123);
res.send(result);
}).catch(next);
};
... ...
... ... @@ -61,7 +61,7 @@ function request() {
$recommendForYou.html(html).show();
lazyLoad($recommendForYou.find('img.lazy'));
//为你优选埋点- 加载
// 为你优选埋点- 加载
$('.goods-container').find('.good-info').each(function() {
goodid = $(this).data('good-id');
... ... @@ -69,20 +69,20 @@ function request() {
if (goodid) {
goodIds.push(goodid);
}
})
});
prdLoad = JSON.stringify(goodIds).replace(/\[|\]|/g, '');
yasRequest(prdLoad, goodIds.length, 0);
//点击商品
// 点击商品
$('.good-info').on('click', function() {
var PRD_ID = $(this).data('good-id'),
PRD_NUM = $(this).index();
yasRequest(PRD_ID, PRD_NUM, 1);
//return false;
// return false;
});
}).fail(function() {
... ...