Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ShopERP
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杜龙飞
ShopERP
Commits
f154fc5e
Commit
f154fc5e
authored
Jul 14, 2025
by
PC-20220610JUCQ\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
<develop>:(ShopERP 端)<无> 找回密码,增加 输入框的数据校验。
parent
b3fc6a57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
CoreCms.Net.Web.Admin/wwwroot/views/user/login.html
+0
-3
CoreCms.Net.Web.Admin/wwwroot/views/user/userInfo/forgetPassword.html
+30
-0
No files found.
CoreCms.Net.Web.Admin/wwwroot/views/user/login.html
View file @
f154fc5e
...
...
@@ -196,7 +196,6 @@
//用户注册事件
$
(
'#loginRegister'
).
click
(
function
()
{
layer
.
msg
(
'这个是注册按钮... '
);
doRegister
();
});
...
...
@@ -239,8 +238,6 @@
layero
.
contents
().
find
(
"#LAY-app-CoreCmsUser-registerForm-submit"
).
click
();
}
});
}
...
...
CoreCms.Net.Web.Admin/wwwroot/views/user/userInfo/forgetPassword.html
View file @
f154fc5e
...
...
@@ -81,6 +81,35 @@
//重载form
form
.
render
(
null
,
'LAY-app-CoreCmsUser-forgetPasswordForm'
);
$
(
'#btnSendValidCode'
).
on
(
'click'
,
function
()
{
//用户工号
var
userName
=
$
(
"#userName"
).
val
();
//发送验证码功能
var
userEmail
=
$
(
"#email"
).
val
();
// 如果没有错误,则验证通过
var
errorUserName
=
form
.
validate
(
$
(
"#userName"
));
var
errorEmail
=
form
.
validate
(
$
(
"#email"
));
if
(
error
||
errorEmail
)
{
return
;
// 验证不通过,自动显示错误信息
}
if
(
userName
==
""
||
userEmail
==
""
)
{
layer
.
msg
(
"-用户工号,用户邮箱 都不能为空!"
);
return
;
}
layer
.
msg
(
"-用户工号:"
+
userName
+
",用户邮箱:"
+
userEmail
);
});
})
};
</script>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment