|
5#
楼主 |
发表于 2016-6-19 07:31:09
|
只看该作者
- function loginCheck(){
- var loginName=$(".loginName input").val();
- var loginPwd=$(".loginPwd input").val();
- if(loginName!=""&&loginPwd!=""){
- $.ui.showMask("正在加载...");//打开mask
- $.jsonP({
- url:'http://www.bufanr.cn/index.php/Index/loginCheck?loginName='+loginName+'&loginPwd='+loginPwd,
- success:function(data){
- switch(data["argu"]){
- case "ok":
- localStorage.setItem("uid",data["uid"]);
- localStorage.setItem("role_id",data["role_id"]);
- // localStorage.setItem("icon",data["icon"]);
- localStorage.setItem("xm",data["xm"]);
- $.ui.loadContent("#sspai", false, true, "slide");
- break;
- default:
- break;
- }
- toast(data["arguErr"]);
- $.ui.hideMask();//关闭mask
- }
- });
- }
复制代码 |
|