outlet-will-end.page.js
690 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() {
new Countdown.Countdown({
el: $(this)
});
});
}
// 导航滚动
if ($('#index_nav').length > 0) {
iscroll({
el: '#index_nav'
}).goto($('#index_nav').find('.active').index());
}
if ($('.will-end-back').length < 1) {
$('.empty').show();
}
$('.will-end-back').on('click', function() {
tip.show('活动即将结束');
return false;
});