Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
5d1f373832c8367d54892bc046e57a1d7d769311
1 parent
05331969
back
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
template/www.yohobuy.com/actions/passport/back/verification.phtml
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
template/www.yohobuy.com/actions/passport/back/verification.phtml
View file @
5d1f373
...
...
@@ -8,8 +8,8 @@
<li
class=
"head-title"
>验证身份</li>
<li
class=
"po-re"
>
<label
class=
"pn-label"
>手机号码</label>
<span
class=
"country-code"
>+
86
</span>
<span
class=
"phone-num"
>
18115624066
</span>
<span
class=
"country-code"
>+
{
{area
}
}</span>
<span
class=
"phone-num"
>
{
{phoneNum
}
}</span>
</li>
<li
class=
"po-re"
>
<input
id=
"captcha"
class=
"input va captcha"
type=
"text"
name=
"captcha"
>
...
...
@@ -21,8 +21,8 @@
</span>
</li>
<li>
<input
name=
"area"
id=
"area"
type=
"hidden"
value=
"86"
>
<input
name=
"mobile"
id=
"mobile"
type=
"hidden"
value=
"18115624066"
>
<input
name=
"area"
id=
"area"
type=
"hidden"
value=
"{{area}}"
>
<input
name=
"mobile"
id=
"mobile"
type=
"hidden"
value=
"{{phoneNum}}"
>
<input
name=
"captchaPic"
id=
"captchaPic"
type=
"hidden"
value=
"g7ce"
>
<input
name=
"refer"
id=
"refer"
type=
"hidden"
value=
""
>
<input
id=
"next-step"
class=
"btn next-step disable"
type=
"submit"
value=
"下一步"
disabled=
""
>
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
5d1f373
...
...
@@ -55,6 +55,7 @@ class BackController extends WebAction
$mobile
=
$phoneNum
;
$data
=
BackData
::
sendCodeToMobile
(
$mobile
);
$this
->
setSession
(
'phoneNum'
,
$phoneNum
);
$this
->
setSession
(
'area'
,
$area
);
if
(
$data
[
'code'
]
==
200
)
{
$this
->
redirect
(
'verification'
);
}
...
...
@@ -159,12 +160,20 @@ class BackController extends WebAction
* 手机验证
*/
public
function
verificationAction
()
{
$phoneNum
=
$this
->
getSession
(
'phoneNum'
);
$area
=
$this
->
getSession
(
'area'
);
// if(empty($phoneNum)) {
// $this->redirect('index');
// }
$banner
=
PassportModel
::
getLeftBanner
(
PassportModel
::
BACK_LFFT_BANNER_CODE
);
$data
=
array
(
'simpleHeader'
=>
PassportModel
::
getSimpleHeader
(
false
),
'vertificationPage'
=>
true
,
'verification'
=>
array
(
'coverHref'
=>
'/passport'
,
'coverImg'
=>
'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190'
,
'coverHref'
=>
$banner
[
'url'
],
'coverImg'
=>
$banner
[
'img'
],
'phoneNum'
=>
$phoneNum
,
'area'
=>
$area
,
'countrys'
=>
array
()
)
);
...
...
Please
register
or
login
to post a comment