Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
2e1c3212beaab3652b72366426b8be3e4c473774
1 parent
fc8aeea7
找回密码
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
template/www.yohobuy.com/actions/passport/back/verification.phtml
template/www.yohobuy.com/partials/layout/footer.phtml
web-static/js/passport/vertification.js
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
template/www.yohobuy.com/actions/passport/back/verification.phtml
View file @
2e1c321
...
...
@@ -25,7 +25,8 @@
<input
name=
"mobile"
id=
"mobile"
type=
"hidden"
value=
"{{mobile}}"
>
<input
name=
"verifyCode"
id=
"captchaPic"
type=
"hidden"
value=
"{{verifyCode}}"
>
<input
name=
"refer"
id=
"refer"
type=
"hidden"
value=
""
>
<input
id=
"next-step"
class=
"btn next-step disable"
type=
"submit"
value=
"下一步"
disabled=
""
>
<a
id=
"next-step"
class=
"btn next-step disable"
href=
"javascript:;"
>下一步</a>
<!--
<input
id=
"next-step"
class=
"btn next-step disable"
type=
"submit"
value=
"下一步"
disabled=
""
>
-->
</li>
</ul>
</form>
...
...
template/www.yohobuy.com/partials/layout/footer.phtml
View file @
2e1c321
...
...
@@ -5,7 +5,7 @@
{
{/if
}
}
{
{#if
preEnv
}
}
<script
src=
"http://cdn.yoho.cn/yohobuy/{{version}}/lib.js"
></script>
<script
src=
"http://cdn.yoho.cn/yohobuy/{{version}}/index.js"
></script>
<script
src=
"http://cdn.yoho.cn/yohobuy/{{version}}/index
-debug
.js"
></script>
{
{/if
}
}
{
{#if
testEnv
}
}
<script
src=
"http://static.buy.test.yoho.cn/dist/yohobuy/{{version}}/lib.js"
></script>
...
...
web-static/js/passport/vertification.js
View file @
2e1c321
...
...
@@ -89,11 +89,11 @@ $('#captcha').keyup(function() {
if
(
res
.
code
===
200
)
{
//添加验证码正确验证
$next
.
removeClass
(
'disable'
).
removeAttr
(
'disabled'
);
$next
.
removeClass
(
'disable'
).
attr
(
'href'
,
res
.
data
);
$errTip
.
addClass
(
'hide'
);
$
(
that
).
removeClass
(
'error'
);
}
else
{
$next
.
addClass
(
'disable'
)
.
attr
(
'disabled'
,
true
)
;
$next
.
addClass
(
'disable'
);
$errTip
.
removeClass
(
'hide'
).
find
(
'em'
).
text
(
'验证码输入错误'
);
$
(
that
).
addClass
(
'error'
);
}
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
2e1c321
...
...
@@ -40,13 +40,15 @@ class BackController extends WebAction {
'message'
=>
'验证成功'
);
if
(
PassportModel
::
verifyCode
(
$verifyCode
))
{
if
(
Helpers
::
verifyEmail
(
$phoneNum
))
{
if
(
empty
(
PassportModel
::
getUserInfoByEmail
(
$phoneNum
)))
{
if
(
Helpers
::
verifyEmail
(
$phoneNum
))
{
$ret
=
PassportModel
::
getUserInfoByEmail
(
$phoneNum
);
if
(
empty
(
$ret
))
{
$data
[
'message'
]
=
'该账户不存在'
;
$data
[
'code'
]
=
400
;
}
}
else
if
(
Helpers
::
verifyMobile
(
$phoneNum
))
{
if
(
empty
(
PassportModel
::
getUserInfoByMobile
(
$area
,
$phoneNum
)))
{
}
else
if
(
Helpers
::
verifyMobile
(
$phoneNum
))
{
$ret
=
PassportModel
::
getUserInfoByMobile
(
$area
,
$phoneNum
);
if
(
empty
(
$ret
))
{
$data
[
'message'
]
=
'该账户不存在'
;
$data
[
'code'
]
=
400
;
}
...
...
Please
register
or
login
to post a comment