|
@@ -12,7 +12,13 @@ var windowHeight = $(window).height(); |
|
@@ -12,7 +12,13 @@ var windowHeight = $(window).height(); |
12
|
var scrollFn,
|
12
|
var scrollFn,
|
13
|
scrollTop,
|
13
|
scrollTop,
|
14
|
RECPOSE,
|
14
|
RECPOSE,
|
15
|
- CID;
|
15
|
+ CID,
|
|
|
16
|
+ isApp,
|
|
|
17
|
+ speckParamApp = {
|
|
|
18
|
+ udid: '',
|
|
|
19
|
+ apt: '',
|
|
|
20
|
+ sid: ''
|
|
|
21
|
+ };
|
16
|
|
22
|
|
17
|
require('../common');
|
23
|
require('../common');
|
18
|
|
24
|
|
|
@@ -59,18 +65,22 @@ plusstar = { |
|
@@ -59,18 +65,22 @@ plusstar = { |
59
|
if (window._yas && window._yas.sendCustomInfo) {
|
65
|
if (window._yas && window._yas.sendCustomInfo) {
|
60
|
window._yas.sendCustomInfo({
|
66
|
window._yas.sendCustomInfo({
|
61
|
op: 'YB_FASHION_TAB_C',
|
67
|
op: 'YB_FASHION_TAB_C',
|
62
|
- param: JSON.stringify({
|
68
|
+ apf: isApp,
|
|
|
69
|
+ ts: new Date().getTime(),
|
|
|
70
|
+ param: JSON.stringify($.extend(speckParamApp, {
|
63
|
C_ID: CID,
|
71
|
C_ID: CID,
|
64
|
TAB_ID: $liDom.index() + 1
|
72
|
TAB_ID: $liDom.index() + 1
|
65
|
- })
|
73
|
+ }))
|
66
|
}, true);
|
74
|
}, true);
|
67
|
|
75
|
|
68
|
window._yas.sendCustomInfo({
|
76
|
window._yas.sendCustomInfo({
|
69
|
op: 'YB_FASHION_HOME_L',
|
77
|
op: 'YB_FASHION_HOME_L',
|
70
|
- param: JSON.stringify({
|
78
|
+ apf: isApp,
|
|
|
79
|
+ ts: new Date().getTime(),
|
|
|
80
|
+ param: JSON.stringify($.extend(speckParamApp, {
|
71
|
C_ID: CID,
|
81
|
C_ID: CID,
|
72
|
TAB_ID: that.ParentLiDom.index() + 1
|
82
|
TAB_ID: that.ParentLiDom.index() + 1
|
73
|
- })
|
83
|
+ }))
|
74
|
}, true);
|
84
|
}, true);
|
75
|
}
|
85
|
}
|
76
|
});
|
86
|
});
|
|
@@ -107,21 +117,23 @@ plusstar = { |
|
@@ -107,21 +117,23 @@ plusstar = { |
107
|
// 商品单击埋点
|
117
|
// 商品单击埋点
|
108
|
$dom = $(event.target).closest('.good-info');
|
118
|
$dom = $(event.target).closest('.good-info');
|
109
|
index = $dom.index() + 1;
|
119
|
index = $dom.index() + 1;
|
110
|
- window.givePoint({
|
120
|
+ window.givePoint($.extend(speckParamApp, {
|
111
|
REC_POSE: RECPOSE,
|
121
|
REC_POSE: RECPOSE,
|
112
|
PRD_ID: $dom.data('good-id'),
|
122
|
PRD_ID: $dom.data('good-id'),
|
113
|
ORDER_CODE: '',
|
123
|
ORDER_CODE: '',
|
114
|
PRD_NUM: index % that.common.pagesize === 0 ? that.common.pagesize : index % that.common.pagesize,
|
124
|
PRD_NUM: index % that.common.pagesize === 0 ? that.common.pagesize : index % that.common.pagesize,
|
115
|
ACTION_ID: 1,
|
125
|
ACTION_ID: 1,
|
116
|
page_num: Math.ceil(index / that.common.pagesize)
|
126
|
page_num: Math.ceil(index / that.common.pagesize)
|
117
|
- });
|
127
|
+ }));
|
118
|
} else if ($(event.target).closest('.banner-top').length > 0) {
|
128
|
} else if ($(event.target).closest('.banner-top').length > 0) {
|
119
|
// 头部banner楼层埋点
|
129
|
// 头部banner楼层埋点
|
120
|
$dom = $(event.target).closest('li');
|
130
|
$dom = $(event.target).closest('li');
|
121
|
index = $dom.index() + 1;
|
131
|
index = $dom.index() + 1;
|
122
|
window._yas.sendCustomInfo({
|
132
|
window._yas.sendCustomInfo({
|
123
|
op: 'YB_FASHION_FLR_C',
|
133
|
op: 'YB_FASHION_FLR_C',
|
124
|
- param: JSON.stringify({
|
134
|
+ apf: isApp,
|
|
|
135
|
+ ts: new Date().getTime(),
|
|
|
136
|
+ param: JSON.stringify($.extend(speckParamApp, {
|
125
|
C_ID: CID,
|
137
|
C_ID: CID,
|
126
|
TAB_ID: that.ParentLiDom.index() + 1,
|
138
|
TAB_ID: that.ParentLiDom.index() + 1,
|
127
|
F_ID: $dom.closest('ul').data('id'),
|
139
|
F_ID: $dom.closest('ul').data('id'),
|
|
@@ -129,7 +141,7 @@ plusstar = { |
|
@@ -129,7 +141,7 @@ plusstar = { |
129
|
F_URL: $dom.find('a').attr('href'),
|
141
|
F_URL: $dom.find('a').attr('href'),
|
130
|
F_INDEX: 1,
|
142
|
F_INDEX: 1,
|
131
|
I_INDEX: index
|
143
|
I_INDEX: index
|
132
|
- })
|
144
|
+ }))
|
133
|
}, true);
|
145
|
}, true);
|
134
|
} else if ($(event.target).closest('.speck-title-image a').length > 0) {
|
146
|
} else if ($(event.target).closest('.speck-title-image a').length > 0) {
|
135
|
// 各楼层埋点
|
147
|
// 各楼层埋点
|
|
@@ -138,7 +150,9 @@ plusstar = { |
|
@@ -138,7 +150,9 @@ plusstar = { |
138
|
|
150
|
|
139
|
window._yas.sendCustomInfo({
|
151
|
window._yas.sendCustomInfo({
|
140
|
op: 'YB_FASHION_FLR_C',
|
152
|
op: 'YB_FASHION_FLR_C',
|
141
|
- param: JSON.stringify({
|
153
|
+ apf: isApp,
|
|
|
154
|
+ ts: new Date().getTime(),
|
|
|
155
|
+ param: JSON.stringify($.extend(speckParamApp, {
|
142
|
C_ID: CID,
|
156
|
C_ID: CID,
|
143
|
TAB_ID: that.ParentLiDom.index() + 1,
|
157
|
TAB_ID: that.ParentLiDom.index() + 1,
|
144
|
F_ID: $dom.data('fid'),
|
158
|
F_ID: $dom.data('fid'),
|
|
@@ -146,7 +160,7 @@ plusstar = { |
|
@@ -146,7 +160,7 @@ plusstar = { |
146
|
F_URL: $domA.attr('href'),
|
160
|
F_URL: $domA.attr('href'),
|
147
|
F_INDEX: $dom.index() + 1,
|
161
|
F_INDEX: $dom.index() + 1,
|
148
|
I_INDEX: $domA.hasClass('more') ? 0 : ($domA.index() + 1)
|
162
|
I_INDEX: $domA.hasClass('more') ? 0 : ($domA.index() + 1)
|
149
|
- })
|
163
|
+ }))
|
150
|
}, true);
|
164
|
}, true);
|
151
|
}
|
165
|
}
|
152
|
});
|
166
|
});
|
|
@@ -154,10 +168,12 @@ plusstar = { |
|
@@ -154,10 +168,12 @@ plusstar = { |
154
|
// 潮流优选首页加载时
|
168
|
// 潮流优选首页加载时
|
155
|
window._yas.sendCustomInfo({
|
169
|
window._yas.sendCustomInfo({
|
156
|
op: 'YB_FASHION_HOME_L',
|
170
|
op: 'YB_FASHION_HOME_L',
|
157
|
- param: JSON.stringify({
|
171
|
+ apf: isApp,
|
|
|
172
|
+ ts: new Date().getTime(),
|
|
|
173
|
+ param: JSON.stringify($.extend(speckParamApp, {
|
158
|
C_ID: CID,
|
174
|
C_ID: CID,
|
159
|
TAB_ID: that.ParentLiDom.index() + 1
|
175
|
TAB_ID: that.ParentLiDom.index() + 1
|
160
|
- })
|
176
|
+ }))
|
161
|
}, true);
|
177
|
}, true);
|
162
|
},
|
178
|
},
|
163
|
tabNav: function(code) {
|
179
|
tabNav: function(code) {
|
|
@@ -171,7 +187,7 @@ plusstar = { |
|
@@ -171,7 +187,7 @@ plusstar = { |
171
|
url: '/guang/plusstar/resources-template',
|
187
|
url: '/guang/plusstar/resources-template',
|
172
|
data: {
|
188
|
data: {
|
173
|
code: code,
|
189
|
code: code,
|
174
|
- app_version: window.queryString.app_version || window.queryString.appVersion
|
190
|
+ app_version: isApp
|
175
|
},
|
191
|
},
|
176
|
dataType: 'html',
|
192
|
dataType: 'html',
|
177
|
success: function(data) {
|
193
|
success: function(data) {
|
|
@@ -244,7 +260,7 @@ plusstar = { |
|
@@ -244,7 +260,7 @@ plusstar = { |
244
|
timeout: 5000,
|
260
|
timeout: 5000,
|
245
|
data: {
|
261
|
data: {
|
246
|
productSkn: that.common.productSkns.join(','),
|
262
|
productSkn: that.common.productSkns.join(','),
|
247
|
- app_version: window.queryString.app_version || window.queryString.appVersion,
|
263
|
+ app_version: isApp,
|
248
|
limit: that.common.pagesize,
|
264
|
limit: that.common.pagesize,
|
249
|
page: that.common.page,
|
265
|
page: that.common.page,
|
250
|
yh_channel: that.ParentLiDom.index() + 1
|
266
|
yh_channel: that.ParentLiDom.index() + 1
|
|
@@ -266,14 +282,14 @@ plusstar = { |
|
@@ -266,14 +282,14 @@ plusstar = { |
266
|
skn.push($(this).data('good-id'));
|
282
|
skn.push($(this).data('good-id'));
|
267
|
});
|
283
|
});
|
268
|
|
284
|
|
269
|
- window.givePoint({
|
285
|
+ window.givePoint($.extend(speckParamApp, {
|
270
|
REC_POSE: RECPOSE,
|
286
|
REC_POSE: RECPOSE,
|
271
|
PRD_ID: skn.join(','),
|
287
|
PRD_ID: skn.join(','),
|
272
|
ORDER_CODE: '',
|
288
|
ORDER_CODE: '',
|
273
|
PRD_NUM: that.common.pagesize,
|
289
|
PRD_NUM: that.common.pagesize,
|
274
|
ACTION_ID: 0,
|
290
|
ACTION_ID: 0,
|
275
|
page_num: that.common.page++
|
291
|
page_num: that.common.page++
|
276
|
- });
|
292
|
+ }));
|
277
|
|
293
|
|
278
|
$('.plusstar-resources .goods').append(data);
|
294
|
$('.plusstar-resources .goods').append(data);
|
279
|
|
295
|
|
|
@@ -304,6 +320,16 @@ scrollFn = debounce(function() { |
|
@@ -304,6 +320,16 @@ scrollFn = debounce(function() { |
304
|
}, 200);
|
320
|
}, 200);
|
305
|
|
321
|
|
306
|
$(function() {
|
322
|
$(function() {
|
|
|
323
|
+ isApp = (window.queryString.app_version || window.queryString.appVersion) ? true : false;
|
|
|
324
|
+
|
|
|
325
|
+ if (isApp) {
|
|
|
326
|
+ speckParamApp = {
|
|
|
327
|
+ udid: window.queryString.udid || '',
|
|
|
328
|
+ apt: window.queryString.client_type || '',
|
|
|
329
|
+ sid: window.queryString.sid || '',
|
|
|
330
|
+ };
|
|
|
331
|
+ }
|
|
|
332
|
+
|
307
|
// 男:1,女:2,潮童:3,创意生活:4
|
333
|
// 男:1,女:2,潮童:3,创意生活:4
|
308
|
CID = window._ChannelVary[window.cookie('_Channel')] || 1;
|
334
|
CID = window._ChannelVary[window.cookie('_Channel')] || 1;
|
309
|
|
335
|
|