Authored by 郝肖肖

埋点处理

@@ -58,16 +58,16 @@ plusstar = { @@ -58,16 +58,16 @@ plusstar = {
58 if (window._yas && window._yas.sendCustomInfo) { 58 if (window._yas && window._yas.sendCustomInfo) {
59 window._yas.sendCustomInfo({ 59 window._yas.sendCustomInfo({
60 op: 'YB_FASHION_TAB_C', 60 op: 'YB_FASHION_TAB_C',
61 - param: JSON.stringify($.extend(speckParamApp, { 61 + param: JSON.stringify($.extend({
62 TAB_ID: $liDom.index() + 1 62 TAB_ID: $liDom.index() + 1
63 - })) 63 + }, speckParamApp))
64 }, true); 64 }, true);
65 65
66 window._yas.sendCustomInfo({ 66 window._yas.sendCustomInfo({
67 op: 'YB_FASHION_HOME_L', 67 op: 'YB_FASHION_HOME_L',
68 - param: JSON.stringify($.extend(speckParamApp, { 68 + param: JSON.stringify($.extend({
69 TAB_ID: that.ParentLiDom.index() + 1 69 TAB_ID: that.ParentLiDom.index() + 1
70 - })) 70 + }, speckParamApp))
71 }, true); 71 }, true);
72 } 72 }
73 }); 73 });
@@ -104,28 +104,28 @@ plusstar = { @@ -104,28 +104,28 @@ plusstar = {
104 // 商品单击埋点 104 // 商品单击埋点
105 $dom = $(event.target).closest('.good-info'); 105 $dom = $(event.target).closest('.good-info');
106 index = $dom.index() + 1; 106 index = $dom.index() + 1;
107 - window.givePoint($.extend(speckParamApp, { 107 + window.givePoint($.extend({
108 REC_POSE: RECPOSE, 108 REC_POSE: RECPOSE,
109 PRD_ID: $dom.data('good-id'), 109 PRD_ID: $dom.data('good-id'),
110 ORDER_CODE: '', 110 ORDER_CODE: '',
111 PRD_NUM: index % that.common.pagesize === 0 ? that.common.pagesize : index % that.common.pagesize, 111 PRD_NUM: index % that.common.pagesize === 0 ? that.common.pagesize : index % that.common.pagesize,
112 ACTION_ID: 1, 112 ACTION_ID: 1,
113 page_num: Math.ceil(index / that.common.pagesize) 113 page_num: Math.ceil(index / that.common.pagesize)
114 - })); 114 + }, speckParamApp));
115 } else if ($(event.target).closest('.banner-top').length > 0) { 115 } else if ($(event.target).closest('.banner-top').length > 0) {
116 // 头部banner楼层埋点 116 // 头部banner楼层埋点
117 $dom = $(event.target).closest('li'); 117 $dom = $(event.target).closest('li');
118 index = $dom.index() + 1; 118 index = $dom.index() + 1;
119 window._yas.sendCustomInfo({ 119 window._yas.sendCustomInfo({
120 op: 'YB_FASHION_FLR_C', 120 op: 'YB_FASHION_FLR_C',
121 - param: JSON.stringify($.extend(speckParamApp, { 121 + param: JSON.stringify($.extend({
122 TAB_ID: that.ParentLiDom.index() + 1, 122 TAB_ID: that.ParentLiDom.index() + 1,
123 F_ID: $dom.closest('ul').data('id'), 123 F_ID: $dom.closest('ul').data('id'),
124 F_NAME: '焦点图', 124 F_NAME: '焦点图',
125 F_URL: $dom.find('a').attr('href'), 125 F_URL: $dom.find('a').attr('href'),
126 F_INDEX: 1, 126 F_INDEX: 1,
127 I_INDEX: index % 2 + 1// banner,li是双倍的 127 I_INDEX: index % 2 + 1// banner,li是双倍的
128 - })) 128 + }, speckParamApp))
129 }, true); 129 }, true);
130 } else if ($(event.target).closest('.speck-title-image a').length > 0) { 130 } else if ($(event.target).closest('.speck-title-image a').length > 0) {
131 // 各楼层埋点 131 // 各楼层埋点
@@ -134,14 +134,14 @@ plusstar = { @@ -134,14 +134,14 @@ plusstar = {
134 134
135 window._yas.sendCustomInfo({ 135 window._yas.sendCustomInfo({
136 op: 'YB_FASHION_FLR_C', 136 op: 'YB_FASHION_FLR_C',
137 - param: JSON.stringify($.extend(speckParamApp, { 137 + param: JSON.stringify($.extend({
138 TAB_ID: that.ParentLiDom.index() + 1, 138 TAB_ID: that.ParentLiDom.index() + 1,
139 F_ID: $dom.data('fid'), 139 F_ID: $dom.data('fid'),
140 F_NAME: $dom.data('name'), 140 F_NAME: $dom.data('name'),
141 F_URL: $domA.attr('href'), 141 F_URL: $domA.attr('href'),
142 F_INDEX: $dom.index() + 1, 142 F_INDEX: $dom.index() + 1,
143 I_INDEX: $domA.hasClass('more') ? 0 : ($domA.index() + 1) 143 I_INDEX: $domA.hasClass('more') ? 0 : ($domA.index() + 1)
144 - })) 144 + }, speckParamApp))
145 }, true); 145 }, true);
146 } 146 }
147 }); 147 });
@@ -149,9 +149,9 @@ plusstar = { @@ -149,9 +149,9 @@ plusstar = {
149 // 潮流优选首页加载时 149 // 潮流优选首页加载时
150 window._yas.sendCustomInfo({ 150 window._yas.sendCustomInfo({
151 op: 'YB_FASHION_HOME_L', 151 op: 'YB_FASHION_HOME_L',
152 - param: JSON.stringify($.extend(speckParamApp, { 152 + param: JSON.stringify($.extend({
153 TAB_ID: that.ParentLiDom.index() + 1 153 TAB_ID: that.ParentLiDom.index() + 1
154 - })) 154 + }, speckParamApp))
155 }, true); 155 }, true);
156 }, 156 },
157 tabNav: function(code) { 157 tabNav: function(code) {
@@ -248,14 +248,14 @@ plusstar = { @@ -248,14 +248,14 @@ plusstar = {
248 skn.push($(this).data('good-id')); 248 skn.push($(this).data('good-id'));
249 }); 249 });
250 250
251 - window.givePoint($.extend(speckParamApp, { 251 + window.givePoint($.extend({
252 REC_POSE: RECPOSE, 252 REC_POSE: RECPOSE,
253 PRD_ID: skn.join(','), 253 PRD_ID: skn.join(','),
254 ORDER_CODE: '', 254 ORDER_CODE: '',
255 PRD_NUM: that.common.pagesize, 255 PRD_NUM: that.common.pagesize,
256 ACTION_ID: 0, 256 ACTION_ID: 0,
257 page_num: that.common.page++ 257 page_num: that.common.page++
258 - })); 258 + }, speckParamApp));
259 259
260 $('.plusstar-resources .goods').append(data); 260 $('.plusstar-resources .goods').append(data);
261 261