special.page.js 1.04 KB
/**
 * 星专题
 * @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);