12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- //定义瀑布流
- Maze.Page().name = '#page';
- /*
- $(function()
- {
- //定义模态框
- Maze.Modal().html = '<div class="show-box" id="device_box">' + $("#J_showBox").html() + '</div>';
- 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' : 'http://v2.xinnongbaohe.com/web/application/passport/?login.action'
- //,'url' : 'http://192.168.67.89/xinnongbaohe/web/application/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' : 'http://v2.xinnongbaohe.com/web/application/service/?set.updateAction'
- //,'url' : 'http://192.168.67.89/xinnongbaohe/web/application/service/?set.updateAction'
- }
- };
|