Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
7085a6b3789a5bc0c66ce784301684d4a73639a9
1 parent
c386badf
修改找回密码
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
22 deletions
template/www.yohobuy.com/actions/passport/back/index.phtml
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
template/www.yohobuy.com/actions/passport/back/index.phtml
View file @
7085a6b
...
...
@@ -11,7 +11,7 @@
</span>
<ul
id=
"country-code-list"
class=
"country-code-list"
>
{
{#
countryList
}
}
<li
data-cc=
"
+{{code}}"
>
{
{name
}
}
+
{
{c
ode
}
}</li>
<li
data-cc=
"
{{areaCode}}"
>
{
{name
}
}
{
{areaC
ode
}
}</li>
{
{/
countryList
}
}
</ul>
</div>
...
...
@@ -28,7 +28,7 @@
</li>
<li
class=
"input-container-li clearfix"
>
<input
id=
"captcha"
class=
"input va captcha"
type=
"text"
name=
"captcha"
placeholder=
"验证码"
autocomplete=
"off"
maxlength=
"4"
>
<img
id=
"captcha-img"
class=
"captcha-img"
src=
"
http://web.dev.yohobuy.com/passport/images
"
alt=
""
>
<img
id=
"captcha-img"
class=
"captcha-img"
src=
"
{{captchaUrl}}
"
alt=
""
>
<a
id=
"change-captcha"
class=
"link change-captcha"
>换一张</a>
<span
id=
"captcha-err"
class=
"err-tip captcha-err hide"
>
<i></i>
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
7085a6b
...
...
@@ -22,6 +22,7 @@ class BackController extends WebAction
'coverImg'
=>
$banner
[
'img'
],
'countryCode'
=>
'86'
,
'countryName'
=>
'中国'
,
'captchaUrl'
=>
'/passport/images?t=1449799445'
,
'countryList'
=>
RegData
::
getAreasData
(),
)
);
...
...
@@ -40,7 +41,7 @@ class BackController extends WebAction
{
$phoneNum
=
$this
->
post
(
'phoneNum'
,
''
);
$area
=
$this
->
post
(
'area'
,
'86'
);
$
captcha
=
$this
->
post
(
'captcha
'
,
''
);
$
verifyCode
=
$this
->
post
(
'verifyCode
'
,
''
);
if
(
Helpers
::
verifyEmail
(
$phoneNum
)){
//验证邮箱
$email
=
$phoneNum
;
$data
=
BackData
::
sendCodeToEmail
(
$email
);
...
...
@@ -56,7 +57,7 @@ class BackController extends WebAction
$data
=
BackData
::
sendCodeToMobile
(
$mobile
);
$this
->
setSession
(
'phoneNum'
,
$phoneNum
);
$this
->
setSession
(
'area'
,
$area
);
$this
->
setSession
(
'
captcha'
,
$captcha
);
$this
->
setSession
(
'
verifyCode'
,
$verifyCode
);
if
(
$data
[
'code'
]
==
200
)
{
$this
->
redirect
(
'verification'
);
}
...
...
@@ -75,23 +76,6 @@ class BackController extends WebAction
$this
->
redirect
(
'index'
);
}
$banner
=
PassportModel
::
getLeftBanner
(
PassportModel
::
BACK_LFFT_BANNER_CODE
);
$simpleHeader
=
array
(
'logo'
=>
array
(
'img'
=>
'http://static.yohobuy.com/newheader/img/logo_e.png'
,
'url'
=>
'http://www.yohobuy.com'
),
'tool'
=>
array
(
'user'
=>
'2586703@qq.com'
,
'userCenter'
=>
''
,
'loginHref'
=>
''
,
'logoutHref'
=>
''
,
'registerHref'
=>
''
,
'favoriteHref'
=>
''
,
'couponHref'
=>
''
,
'orderHref'
=>
''
,
'helpHref'
=>
''
)
);
$data
=
array
(
'simpleHeader'
=>
PassportModel
::
getSimpleHeader
(
false
),
'sendEmail'
=>
array
(
...
...
@@ -176,7 +160,7 @@ class BackController extends WebAction
public
function
verificationAction
()
{
$phoneNum
=
$this
->
getSession
(
'phoneNum'
);
$area
=
$this
->
getSession
(
'area'
);
$
captcha
=
$this
->
getSession
(
'captcha
'
);
$
verifyCode
=
$this
->
getSession
(
'verifyCode
'
);
if
(
empty
(
$phoneNum
))
{
$this
->
redirect
(
'index'
);
}
...
...
Please
register
or
login
to post a comment