Authored by runner

recent activity nav update

... ... @@ -3,7 +3,8 @@
*/
var $ = require('yoho-jquery'),
Countdown = require('./outlet/countdown'),
tip = require('../plugin/tip');
tip = require('../plugin/tip'),
iscroll = require('./outlet/nav');
var $el = $('.cd-medium');
... ... @@ -17,6 +18,19 @@ if ($el.length > 0) {
})
}
// 导航滚动
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;
... ...
... ... @@ -3,7 +3,8 @@
*/
var $ = require('yoho-jquery'),
Countdown = require('./outlet/countdown'),
tip = require('../plugin/tip');
tip = require('../plugin/tip'),
iscroll = require('./outlet/nav');
var $el = $('.cd-lite');
... ... @@ -17,6 +18,19 @@ if ($el.length > 0) {
})
}
// 导航滚动
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;
... ...
... ... @@ -80,7 +80,6 @@ if ($('#list-nav').length > 0) {
if ($('.back-ground-white').length > 10) {
$('.more-activity').show();
$('.back-ground-white').each(function(index, e) {
console.log(index);
if(index > 9) {
$(e).hide();
}
... ...