special.page.js 1.04 KB
/**
 * 星专题
 * @author: wsl<shuiling.wang@yoho.cn>
 * @date: 2016/6/7
 */

let $ = require('yoho-jquery'),
    lazyLoad = require('yoho-jquery-lazyload');

require('../common');

lazyLoad($('img.lazy'));

// app埋点
let C_ID = window._ChannelVary[window.cookie('_Channel')];

$('.buriedpoint').on('click', function() {
    if (!window._yas || !window._yas.sendAppLogs) {
        return;
    }

    let $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);