Commit c6f78591 by 冷斌

设置

parent fdce5a4b
...@@ -29,7 +29,21 @@ ...@@ -29,7 +29,21 @@
}, },
methods: { methods: {
onConfirm: function () { onConfirm: function () {
if(this.newPwd.length < 6 ||this.newPwd.length > 15){
ui.error('新密码为6-15个字符');
return false;
}
$.post(U('basic/Account/doModifyPassword'), pwddata, function(data){
if(data.status){
ui.success(data.info);
setTimeout(function(){
window.location.href = "{:U('classroom/Index/index')}";
},'2000');
}else{
ui.error(data.info);
return;
}
}, 'json');
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment