Authored by hongweigao

修改埋点楼层序号

... ... @@ -201,17 +201,23 @@ if (mChannel !== '') {
$('.tpl-leftPic > a').click(function() {
var $topic = $(this).closest('.topic'),
$header = $topic.prev(),
url = $(this).attr('href');
url = $(this).attr('href'),
fIndex = 4,
fName = '';
var num = $('.topic').length;
for (var i = 0; i < num; i++) {
if ($header.hasClass('floor-header')) {
fName = $header.find('.floor-title').html();
if (fName.indexOf('话题') >= 0) {
fIndex = 3;
}
yas.givePoint('YB_JK_PAV_FLR_C', {
F_ID: $header.attr('floorid'),
F_NAME: $header.find('.floor-title').html(),
F_NAME: fName,
F_URL: url,
F_INDEX: 5,
F_INDEX: fIndex,
I_INDEX: (i * 7) + 1
});
... ... @@ -226,7 +232,9 @@ if (mChannel !== '') {
$('.tpl-types > ul li > a').click(function() {
var $topic = $(this).closest('.topic'),
$header = $topic.prev(),
url = $(this).attr('href');
url = $(this).attr('href'),
fIndex = 4,
fName = '';
var index = parseInt($(this).parent().index(), 10) + 1;
... ... @@ -234,11 +242,15 @@ if (mChannel !== '') {
for (var i = 0; i < num; i++) {
if ($header.hasClass('floor-header')) {
fName = $header.find('.floor-title').html();
if (fName.indexOf('话题') >= 0) {
fIndex = 3;
}
yas.givePoint('YB_JK_PAV_FLR_C', {
F_ID: $header.attr('floorid'),
F_NAME: $header.find('.floor-title').html(),
F_NAME: fName,
F_URL: url,
F_INDEX: 5,
F_INDEX: fIndex,
I_INDEX: (i * 7) + 1 + index
});
... ... @@ -293,23 +305,12 @@ if (mChannel !== '') {
url = $(this).attr('href'),
index = parseInt($(this).closest('.good-info').index(), 10) + 1;
var $navs = $('.commodity .floor-header .header-navs li');
var navsNum = $navs.length;
$navs.each(function() {
var $a = $(this).find('a');
if ($a.html() === 'MORE') {
navsNum -= 1;
}
});
yas.givePoint('YB_JK_PAV_FLR_C', {
F_ID: $header.attr('floorid'),
F_NAME: name,
F_URL: url,
F_INDEX: 6,
I_INDEX: index + navsNum
I_INDEX: index + 10
});
});
... ...