shoppingList.js
1.25 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
define(function( require, exports, module ) {
/*
引入包
*/
var _Tools = require("tools"),
_Droll = require( "droll" );
require( 'timeDown' );
$(function(){
/**
* 界面显示
*/
var rolling = _Tools.sollView({
leftBtn : $(".page-left"),
rightBtn : $(".page-right"),
sollView : $("#move-list ul"),
view : $("#move-list"),
callBack : function(index, max){
$(".page-num").html(((-index)+1)+"/"+max);
}
});
/*
* 集采计时器
*/
if( $( '.count-down' ).length ){
$( '.count-down' ).each( function(){
var _runtime = parseFloat( $( this ).attr( 'runtime' ) );
$( this ).timeDown({
runTime:_runtime,
daysText:'天',
sign:['<span>:</span>','<span>:</span>','']
});
});
}
//轮播
if ( $( ".shopping-promo" ).length ){
$( ".shopping-promo" ).each( function(){
new _Droll( this,{
step : $( ".shopping-promo" ).width(),
moveNum : 1,
auto : true,
indexButton : true,
btnHoverActive: true,
showNum: false,
Media: true // 轮播图适应响应式
});
} );
};
});
});