Blame view

public/js/product/outlet-will-end.page.js 585 Bytes
runner authored
1 2 3 4 5
/**
 * Created by runner on 16/6/14.
 */
var $ = require('yoho-jquery'),
    Countdown = require('./outlet/countdown'),
runner authored
6
    iscroll = require('./outlet/nav');
runner authored
7
8
var $el = $('.cd-lite');
runner authored
9
biao authored
10
require('../common');
biao authored
11
require('./outlet/set-backurl');
runner authored
12
runner authored
13
if ($el.length > 0) {
runner authored
14
    $el.each(function() {
runner authored
15
        new Countdown.Countdown({
runner authored
16
            el: $(this)
runner authored
17 18
        });
    });
runner authored
19
}
runner authored
20
runner authored
21 22 23 24 25 26 27
// 导航滚动
if ($('#index_nav').length > 0) {
    iscroll({
        el: '#index_nav'
    }).goto($('#index_nav').find('.active').index());
}
runner authored
28
if ($('.back-ground-white').length < 1) {
runner authored
29
    $('.empty').show();
runner authored
30
}