&a=getCptha', type: 'POST', cache: false, data: {"mobile" : vm.mobile,"type":5 }, dataType:"text", withCredentials:true, success: function (res) { if(res =="1000"){ vm.time=60; vm.timer(); }else{ $(".login_btn").parent().append("手机号码有误") ; setTimeout(function(){$(".login_btn").parent().find(".cwts").remove() ;},1000) ; } } }); }, timer:function() { if (this.time > 0) { this.disabled=true; this.time--; this.btntxt=this.time+"秒"; setTimeout(this.timer, 1000); } else{ this.time=0; this.btntxt="发送验证码"; this.disabled=false; } }, getUser:function(){ $.ajax({ "url": '/index.php?c=Ajax&a=getUser', type: 'POST', cache: false, data: {}, dataType:"json", withCredentials:true, crossDomain:true , success: function (res) { if(res["result"] == 1000){ vm.isLogin = true ; vm.userName = res["userinfo"]["mobile"] ; vm.name = res["userinfo"]["name"] ; } } }); }, } }) function setCookie(name, value) { var exp = new Date(); exp.setTime(exp.getTime() + 3 * 24 * 60 * 60 * 1000); //3天过期 document.cookie = name + "=" + encodeURIComponent(value) + ";expires=" + exp.toGMTString() + ";path=/;domain=.feibuzf.com"; return true; };
选择城市
更多选项
共找到0套符合条件的二手房