Commit 214c0658 authored by 李博今's avatar 李博今

修改主页

修改bug
parent acf30e84
......@@ -3,7 +3,7 @@
<display-name>QIQIIM-SERVER</display-name>
<welcome-file-list>
<welcome-file>manager.jsp</welcome-file>
<welcome-file>consultant.jsp</welcome-file>
</welcome-file-list>
<context-param>
......
......@@ -95,11 +95,9 @@
var forms = $(".layui-elem-field");
if(btntext=='取消注册'){
forms.eq(0).show();
forms.eq(1).show();
forms.eq(2).hide();
}else{
forms.eq(2).show();
forms.eq(1).hide();
}else{
forms.eq(1).show();
forms.eq(0).hide();
}
})
......@@ -110,7 +108,7 @@
/* layer.alert(JSON.stringify(data.field), {
title: '最终的提交信息'
}) */
var forms = $(".layui-elem-field");
// var forms = $(".layui-elem-field");
$.ajax({
type : "post",
url : "useraccount/save",
......@@ -121,8 +119,7 @@
if(data.data!=null&&data.data.id!=null){
layer.msg("注册成功!");
forms.eq(0).show();
forms.eq(1).show();
forms.eq(2).hide();
forms.eq(1).hide();
}else{
layer.msg("注册失败,请检查用户名是否重复!");
}
......
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