//定义瀑布流 Maze.Page().name = '#page'; /* $(function() { //定义模态框 Maze.Modal().html = '
' + $("#J_showBox").html() + '
'; Maze.Modal().box = '#device_box'; Maze.Modal().title = '#device_box .title'; Maze.Modal().content = '#device_box .content'; Maze.Modal().yes = '#device_box .box_sure'; Maze.Modal().no = '#device_box .box_cancel'; //设置参数层 Maze.Modal().setting = '#device_box .bigBox'; //确认框 Maze.Modal().confirm = '#device_box .box'; Maze.Modal().Init(); }); */ //定义用户相关的一些信息 Maze.User().config = { //初始化,绑定click 'click' : { 0 : '#J_loginBtn' ,1 : '#set' } //登录信息 ,0 : { 'input' : { 'username' : '#J_username' ,'password' : '#J_password' ,'project' : 'front' } //错误提示的div ,'status' : '#J_state' //错误提示 ,'error' : '您的用户名或密码错误' //登录要提交的url ,'url' : Maze.Host('passport') + 'login.action' } //提交智能设置 ,1 : { 'start' : function(){return result()} ,'input' : { 'product' : '#product' ,'type' : '#type' ,'element' : '#element' ,'than' : '#than' ,'exp' : '#exp' ,'value' : '#value' ,'result' : '#result' ,'oper' : '#oper' ,'time' : '#time' ,'set_id' : '#set_id' } //错误提示 ,'error' : '请输入正确的信息' //登录要提交的url ,'url' : Maze.Host('service') + 'set.updateAction' } };