special.page.js
1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* 星专题
* @author: wsl<shuiling.wang@yoho.cn>
* @date: 2016/6/7
*/
var $ = require('yoho-jquery'),
lazyLoad = require('yoho-jquery-lazyload');
require('../common');
lazyLoad($('img.lazy'));
// app埋点
var C_ID = window._ChannelVary[window.cookie('_Channel')];
$('.buriedpoint').on('click', function() {
if (!window._yas || !window._yas.sendAppLogs) {
return;
}
var $this = $(this);
window._yas.sendAppLogs({
appop: 'YB_H5_STROLL_STAR_FLR_C',
param: JSON.stringify({
C_ID: C_ID,
TAB_INDEX: 1,
TAB_NAME: '星专题',
CONTENT_INDEX: $this.index() + 1,
CONTENT_ID: $this.attr('articleId')
})
}, true);
});
setTimeout(function() {
if (!window._yas || !window._yas.sendAppLogs) {
return;
}
window._yas.sendAppLogs({
appop: 'YB_H5_STROLL_STAR_TAB_C',
param: JSON.stringify({
C_ID: C_ID,
TAB_INDEX: 1,
TAB_NAME: '星专题'
})
}, true);
}, 500);