Authored by hongweigao

修改埋点

... ... @@ -288,29 +288,29 @@ if (mChannel !== '') {
// 商品列表
$('.commodity .goods-container').on('click', '.good-info .good-detail-img > a,' +
'.good-info .good-detail-text > a', function() {
var $header = $('.commodity .floor-header'),
name = $header.find('.floor-title').html(),
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
var $header = $('.commodity .floor-header'),
name = $header.find('.floor-title').html(),
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
});
});
});
}
... ...
... ... @@ -100,7 +100,6 @@ function yasEvent(op, parameter) {
C_ID: CID
}, parameter);
console.log(parameter);
window._yas.sendCustomInfo({
op: op,
param: JSON.stringify(parameter)
... ...
... ... @@ -1224,11 +1224,14 @@ $qrCodeOverLayer.on('click', '#qrcode-refresh-btn', function() {
// click登录
$('#login-btn').on('click', function() {
//登陆埋点
var type = 0;
// 登陆埋点
var type = 0,
isEmail = $('#account1').val().indexOf("@") >= 0;
if (currentLogin.type() === 'sms') {
type = 5;
}else if (isEmail) {
type = 8;
}
// banner点击埋点
... ... @@ -1240,8 +1243,8 @@ $('#login-btn').on('click', function() {
});
//第三方登陆埋点
$('.third-party-login > a').click(function () {
// 第三方登陆埋点
$('.third-party-login > a').click(function() {
var type = $(this).data('type');
// banner点击埋点
... ...