|
@@ -61,7 +61,7 @@ function request() { |
|
@@ -61,7 +61,7 @@ function request() { |
61
|
$recommendForYou.html(html).show();
|
61
|
$recommendForYou.html(html).show();
|
62
|
lazyLoad($recommendForYou.find('img.lazy'));
|
62
|
lazyLoad($recommendForYou.find('img.lazy'));
|
63
|
|
63
|
|
64
|
- //为你优选埋点- 加载
|
64
|
+ // 为你优选埋点- 加载
|
65
|
|
65
|
|
66
|
$('.goods-container').find('.good-info').each(function() {
|
66
|
$('.goods-container').find('.good-info').each(function() {
|
67
|
goodid = $(this).data('good-id');
|
67
|
goodid = $(this).data('good-id');
|
|
@@ -69,20 +69,20 @@ function request() { |
|
@@ -69,20 +69,20 @@ function request() { |
69
|
if (goodid) {
|
69
|
if (goodid) {
|
70
|
goodIds.push(goodid);
|
70
|
goodIds.push(goodid);
|
71
|
}
|
71
|
}
|
72
|
- })
|
72
|
+ });
|
73
|
|
73
|
|
74
|
prdLoad = JSON.stringify(goodIds).replace(/\[|\]|/g, '');
|
74
|
prdLoad = JSON.stringify(goodIds).replace(/\[|\]|/g, '');
|
75
|
|
75
|
|
76
|
yasRequest(prdLoad, goodIds.length, 0);
|
76
|
yasRequest(prdLoad, goodIds.length, 0);
|
77
|
|
77
|
|
78
|
- //点击商品
|
78
|
+ // 点击商品
|
79
|
$('.good-info').on('click', function() {
|
79
|
$('.good-info').on('click', function() {
|
80
|
var PRD_ID = $(this).data('good-id'),
|
80
|
var PRD_ID = $(this).data('good-id'),
|
81
|
PRD_NUM = $(this).index();
|
81
|
PRD_NUM = $(this).index();
|
82
|
|
82
|
|
83
|
yasRequest(PRD_ID, PRD_NUM, 1);
|
83
|
yasRequest(PRD_ID, PRD_NUM, 1);
|
84
|
|
84
|
|
85
|
- //return false;
|
85
|
+ // return false;
|
86
|
});
|
86
|
});
|
87
|
|
87
|
|
88
|
}).fail(function() {
|
88
|
}).fail(function() {
|