Authored by 梁志锋

增加加入购物车和点击收藏的统计代码

... ... @@ -7,12 +7,13 @@ var $ = require('jquery'),
Hammer = require('yoho.hammer'),
tip = require('../../plugin/tip');
var likeHammer = new Hammer(document.getElementById('likeBtn'));
var likeHammer = new Hammer(document.getElementById('likeBtn')),
addToCartHammer = new Hammer(document.getElementById('addtoCart'));
var productId = $('#productId').val();
likeHammer.on('tap', function(e) {
var productId = $('#productId').val(),
opt,
var opt,
favorite;
... ...
... ... @@ -445,5 +445,5 @@ $listNav.on('touchstart', 'li', function() {
// 用于统计点击了商品列表的第几个商品,序号从1开始计算。
if (window._yas) {
window._yas(1 * new Date(), '1.0.13.1', 'yohobuy_m', uid, '#goods-container >div >div .good-thumb >img');
window._yas(1 * new Date(), '1.0.13.1', 'yohobuy_m', window._ozuid, '#goods-container >div >div .good-thumb >img');
}
\ No newline at end of file
... ...