...
|
...
|
@@ -10,14 +10,14 @@ var $ = require('yoho-jquery'), |
|
|
|
|
|
var $recommendForYou = $('.recommend-for-you');
|
|
|
|
|
|
$.get('/product/recommend-for-you/userCenter').then(function (html) {
|
|
|
$.get('/product/recommend-for-you/userCenter').then(function(html) {
|
|
|
var PRDID = [];
|
|
|
|
|
|
$recommendForYou.html(html).show();
|
|
|
lazyLoad($('img.lazy'));
|
|
|
|
|
|
// 为您优选埋点 http://redmine.yoho.cn/issues/10116
|
|
|
$recommendForYou.find('.good-info').each(function () {
|
|
|
$recommendForYou.find('.good-info').each(function() {
|
|
|
PRDID.push($(this).data('id'));
|
|
|
});
|
|
|
|
...
|
...
|
@@ -29,7 +29,7 @@ $.get('/product/recommend-for-you/userCenter').then(function (html) { |
|
|
'page_num': 1
|
|
|
});
|
|
|
|
|
|
$recommendForYou.find('.good-info').on('click', 'a', function () {
|
|
|
$recommendForYou.find('.good-info').on('click', 'a', function() {
|
|
|
var index = $(this).closest('.good-info').index() + 1;
|
|
|
|
|
|
window.givePoint({
|
...
|
...
|
@@ -43,6 +43,6 @@ $.get('/product/recommend-for-you/userCenter').then(function (html) { |
|
|
return true;
|
|
|
});
|
|
|
|
|
|
}).fail(function () {
|
|
|
}).fail(function() {
|
|
|
$recommendForYou.hide();
|
|
|
}); |
...
|
...
|
|