...
|
...
|
@@ -12,8 +12,38 @@ var Swiper = require('yoho.iswiper'), |
|
|
var $recommendForYou = $('.recommend-for-you');
|
|
|
|
|
|
$.get('/product/recommend-for-you/cart').then(function(html) {
|
|
|
var PRDID =[];
|
|
|
|
|
|
$recommendForYou.html(html).show();
|
|
|
lazyLoad($('img.lazy'));
|
|
|
|
|
|
//为您优选埋点 http://redmine.yoho.cn/issues/10116
|
|
|
$('.recommend-for-you .good-info').each(function() {
|
|
|
PRDID.push($(this).data('id'));
|
|
|
});
|
|
|
|
|
|
window.givePoint({
|
|
|
'REC_POSE': 110003,
|
|
|
'PRD_ID': PRDID.join(','),
|
|
|
'PRD_NUM': $('.recommend-for-you .good-info').length,
|
|
|
'ACTION_ID': 0,
|
|
|
'page_num': 1
|
|
|
});
|
|
|
|
|
|
$('.recommend-for-you .good-info').on('click', 'a', function() {
|
|
|
var index = $(this).closest('.good-info').index() + 1;
|
|
|
|
|
|
window.givePoint({
|
|
|
'REC_POSE': 110003,
|
|
|
'PRD_ID': $(this).closest('.good-info').data('id'),
|
|
|
'PRD_NUM': index,
|
|
|
'ACTION_ID': 1,
|
|
|
'page_num': 1
|
|
|
});
|
|
|
|
|
|
return true;
|
|
|
});
|
|
|
|
|
|
}).fail(function() {
|
|
|
$recommendForYou.hide();
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|