Authored by hongweigao

搜索页加载埋点、列表点击埋点

@@ -91,11 +91,11 @@ function givePoint(op, parameter) { @@ -91,11 +91,11 @@ function givePoint(op, parameter) {
91 op: op, 91 op: op,
92 param: JSON.stringify(parameter) 92 param: JSON.stringify(parameter)
93 }, true); 93 }, true);
94 -}; 94 +}
95 95
96 function getFilterValue() { 96 function getFilterValue() {
97 return _getCommonFilterValue() + _getOtherFilterValue(); 97 return _getCommonFilterValue() + _getOtherFilterValue();
98 -}; 98 +}
99 99
100 100
101 exports.givePoint = givePoint; 101 exports.givePoint = givePoint;
@@ -9,8 +9,8 @@ var lazyLoad = require('yoho-jquery-lazyload'); @@ -9,8 +9,8 @@ var lazyLoad = require('yoho-jquery-lazyload');
9 9
10 10
11 11
12 -var product = require('./index/product'),  
13 - qs = window.queryString; 12 +var product = require('./index/product');
  13 +var qs = window.queryString;
14 14
15 var $footPage = $('.foot-pager1').data('total'), 15 var $footPage = $('.foot-pager1').data('total'),
16 $productIdArr = [], 16 $productIdArr = [],
@@ -65,7 +65,7 @@ $(function() { @@ -65,7 +65,7 @@ $(function() {
65 proId = $this.find('.product-id').html(), 65 proId = $this.find('.product-id').html(),
66 aIndex = $this.attr('activeIndex'), 66 aIndex = $this.attr('activeIndex'),
67 pageNum = qs.pager || 1, 67 pageNum = qs.pager || 1,
68 - limit = qs.limit || 60, 68 + limit = qs.limit || 60,
69 proNum = (parseInt(pageNum, 10) - 1) * limit + parseInt(aIndex, 10); 69 proNum = (parseInt(pageNum, 10) - 1) * limit + parseInt(aIndex, 10);
70 70
71 // 点击搜索列表商品埋点 71 // 点击搜索列表商品埋点