layui.use(["form"],function(){var e=layui.form,n=layui.jquery;n.ajax({url:"../../ajax.php?act=systemParameter",dataType:"json",success:function(e){n(".user").val(e.data.user)}}),e.verify({user:function(e){if(e.length<5)return"用户名长度不能小于5位"},pass:function(e){if(e.length<6)return"密码长度不能小于6位"},newPwd:function(e){if(e.length<6)return"密码长度不能小于6位"},confirmPwd:function(e){if(!new RegExp(n(".oldPwd").val()).test(e))return"两次输入密码不一致，请重新输入！"}}),e.on("submit(changePwd)",function(e){var a=layui.layer.msg("数据提交中，请稍候",{icon:16,time:!1,shade:.8});return n.ajax({url:"../../ajax.php?act=setaccount",type:"POST",data:e.field,dataType:"json",success:function(e){setTimeout(function(){layer.close(a),layer.msg(e.msg,{icon:e.code,time:1e3})},500)}}),!1})});