outlet-will-start.page.js 710 Bytes
/**
 * Created by runner on 16/6/14.
 */
var $ = require('yoho-jquery'),
    Countdown = require('./outlet/countdown'),
    tip = require('../plugin/tip'),
    iscroll = require('./outlet/nav');

var $el = $('.cd-lite');

require('../common');

if ($el.length > 0) {
    $el.each(function(){
        Countdown.Countdown({
            el: $(this)
        })
    })
}

// 导航滚动
if ($('#index_nav').length > 0) {
    iscroll({
        el: '#index_nav'
    }).goto($('#index_nav').find('.active').index());
}

if ($('#list-nav').length > 0) {
    iscroll({
        el: '#list-nav'
    }).goto(0);
}

$('.back-ground-white').on('click', function() {
    tip.show('活动即将开始');
    return false;
});