outlet-will-end.page.js
708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* 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;
});