outlet-will-end.page.js 708 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-medium');

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);
}

$('.will-end-back').on('click', function() {
    tip.show('活动即将结束');
    return false;
});