list.js 926 Bytes
define(function( require, exports, module ) {
/*
	引入包
*/
var _Tools = require("tools"),
_Droll = require( "droll" );

$(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);
		}
	});
	//子分类显示
	var cache = false;
	$( ".conditions-third span" ).bind({
		mouseenter: function(){
			var c = $(this).find(".third-children");
			if ( c.hasClass("third-children") ){
				$(this).addClass("on");
				$(this).find('>a').addClass('on');
				c.show()
				cache = true;
			}
		},
		mouseleave: function(){
			if ( cache ){
				$(this).removeClass('on');
				$(this).find('>a').removeClass('on');
				$( '.third-children' ).hide()
				cache = false;
			};
		}
	});

});

});