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
4374db2ba30f2861b5ece439d2ad921e3a1ba503
1 parent
c6e175a2
添加首页footertop
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
125 additions
and
103 deletions
template/www.yohobuy.com/actions/index/boys/index.phtml
template/www.yohobuy.com/actions/index/girls/index.phtml
template/www.yohobuy.com/actions/index/index/index.phtml
template/www.yohobuy.com/actions/index/kids/index.phtml
template/www.yohobuy.com/actions/index/lifestyle/index.phtml
yohobuy/www.yohobuy.com/application/controllers/Boys.php
yohobuy/www.yohobuy.com/application/controllers/Girls.php
yohobuy/www.yohobuy.com/application/controllers/Index.php
yohobuy/www.yohobuy.com/application/controllers/Kids.php
yohobuy/www.yohobuy.com/application/controllers/Lifestyle.php
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
template/www.yohobuy.com/actions/index/boys/index.phtml
View file @
4374db2
...
...
@@ -85,4 +85,5 @@
{
{/
newArrivls
}
}
{
{/
boys
}
}
</div>
{
{>
layout/page-footer
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/index/girls/index.phtml
View file @
4374db2
...
...
@@ -72,4 +72,5 @@
{
{/
girls
}
}
</div>
{
{>
layout/page-footer
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/index/index/index.phtml
View file @
4374db2
...
...
@@ -85,4 +85,5 @@
{
{/
newArrivls
}
}
{
{/
boys
}
}
</div>
{
{>
layout/page-footer
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/index/kids/index.phtml
View file @
4374db2
...
...
@@ -33,4 +33,5 @@
{
{/
newArrivls
}
}
{
{/
kids
}
}
</div>
{
{>
layout/page-footer
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/index/lifestyle/index.phtml
View file @
4374db2
{
{>
layout/header
}
}
<div
class=
"home-page yoho-page lifestyle"
data-page=
"lifestyle"
>
{
{#
lifestyle
}
}
{
{!
头部banner
}
}
{
{#
slide
}
}
{
{>index/slide-banner
}
}
{
{/
slide
}
}
{
{!
优选品牌
}
}
{
{#
preferenceBrands
}
}
{
{>
index/preference-brand
}
}
{
{/
preferenceBrands
}
}
{
{!
类别楼层遍历
}
}
{
{#
category
}
}
{
{>
index/category-floor
}
}
{
{/
category
}
}
{
{!
手风琴
}
}
{
{#
accordion
}
}
{
{>
index/slide-accordion
}
}
{
{/
accordion
}
}
{
{!
单品/广告
}
}
{
{#
singlehot
}
}
{
{>
index/girl-singlehot
}
}
{
{/
singlehot
}
}
{
{!
新品上架
}
}
{
{#
newArrivls
}
}
{
{>
index/commodity
}
}
{
{/
newArrivls
}
}
{
{/
lifestyle
}
}
</div>
{
{>
layout/header
}
}
<div
class=
"home-page yoho-page lifestyle"
data-page=
"lifestyle"
>
{
{#
lifestyle
}
}
{
{!
头部banner
}
}
{
{#
slide
}
}
{
{>index/slide-banner
}
}
{
{/
slide
}
}
{
{!
优选品牌
}
}
{
{#
preferenceBrands
}
}
{
{>
index/preference-brand
}
}
{
{/
preferenceBrands
}
}
{
{!
类别楼层遍历
}
}
{
{#
category
}
}
{
{>
index/category-floor
}
}
{
{/
category
}
}
{
{!
手风琴
}
}
{
{#
accordion
}
}
{
{>
index/slide-accordion
}
}
{
{/
accordion
}
}
{
{!
单品/广告
}
}
{
{#
singlehot
}
}
{
{>
index/girl-singlehot
}
}
{
{/
singlehot
}
}
{
{!
新品上架
}
}
{
{#
newArrivls
}
}
{
{>
index/commodity
}
}
{
{/
newArrivls
}
}
{
{/
lifestyle
}
}
</div>
{
{>
layout/page-footer
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
yohobuy/www.yohobuy.com/application/controllers/Boys.php
View file @
4374db2
...
...
@@ -12,6 +12,7 @@ class BoysController extends WebAction
$this
->
setWebNavHeader
(
\Index\HomeModel
::
COOKIE_NAME_BOYS
);
$data
=
array
(
'boysHomePage'
=>
true
,
'footerTop'
=>
true
,
'boys'
=>
\Index\HomeModel
::
getChannelResource
(
HomeModel
::
COOKIE_NAME_BOYS
,
HomeModel
::
CODE_BOYS_CHANNEL
)
);
$this
->
_view
->
display
(
'index'
,
$data
);
...
...
yohobuy/www.yohobuy.com/application/controllers/Girls.php
View file @
4374db2
...
...
@@ -11,9 +11,9 @@ class GirlsController extends WebAction
public
function
indexAction
()
{
$this
->
setWebNavHeader
(
HomeModel
::
COOKIE_NAME_GIRLS
);
$data
=
array
(
'boysHomePage'
=>
true
,
'footerTop'
=>
true
,
'girls'
=>
HomeModel
::
getChannelResource
(
HomeModel
::
COOKIE_NAME_GIRLS
,
HomeModel
::
CODE_GIRLS_CHANNEL
)
);
$this
->
_view
->
display
(
'index'
,
$data
);
...
...
yohobuy/www.yohobuy.com/application/controllers/Index.php
View file @
4374db2
...
...
@@ -25,6 +25,7 @@ class IndexController extends WebAction
$this
->
setWebNavHeader
(
\Index\HomeModel
::
COOKIE_NAME_BOYS
);
$data
=
array
(
'boysHomePage'
=>
true
,
'footerTop'
=>
true
,
'boys'
=>
\Index\HomeModel
::
getChannelResource
(
\Index\HomeModel
::
COOKIE_NAME_BOYS
,
\Index\HomeModel
::
CODE_BOYS_CHANNEL
)
);
$this
->
_view
->
display
(
'index'
,
$data
);
...
...
yohobuy/www.yohobuy.com/application/controllers/Kids.php
View file @
4374db2
...
...
@@ -13,6 +13,7 @@ class KidsController extends WebAction
$this
->
setWebNavHeader
(
HomeModel
::
COOKIE_NAME_KIDS
);
$data
=
array
(
'boysHomePage'
=>
true
,
'footerTop'
=>
true
,
'kids'
=>
HomeModel
::
getChannelResource
(
HomeModel
::
COOKIE_NAME_KIDS
,
HomeModel
::
CODE_KIDS_CHANNEL
)
);
$this
->
_view
->
display
(
'index'
,
$data
);
...
...
yohobuy/www.yohobuy.com/application/controllers/Lifestyle.php
View file @
4374db2
...
...
@@ -13,6 +13,7 @@ class LifestyleController extends WebAction
$this
->
setWebNavHeader
(
HomeModel
::
COOKIE_NAME_LIFESTYLE
);
$data
=
array
(
'boysHomePage'
=>
true
,
'footerTop'
=>
true
,
'lifestyle'
=>
HomeModel
::
getChannelResource
(
HomeModel
::
COOKIE_NAME_LIFESTYLE
,
HomeModel
::
CODE_LIFESTYLE_CHANNEL
)
);
$this
->
_view
->
display
(
'index'
,
$data
);
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
4374db2
...
...
@@ -4,6 +4,7 @@ use LibModels\Web\Passport\RegData;
use
Passport\PassportModel
;
use
Plugin\Helpers
;
use
LibModels\Wap\Passport\BackData
;
use
Plugin\AuthCode
;
class
BackController
extends
WebAction
{
...
...
@@ -42,12 +43,24 @@ class BackController extends WebAction
$captcha
=
$this
->
post
(
'captcha'
,
''
);
if
(
Helpers
::
verifyEmail
(
$phoneNum
)){
//验证邮箱
$email
=
$phoneNum
;
BackData
::
sendCodeToEmail
(
$email
);
$this
->
redirect
(
'sendemail'
);
$data
=
BackData
::
sendCodeToEmail
(
$email
);
$this
->
setSession
(
'phoneNum'
,
$phoneNum
);
if
(
$data
[
'code'
]
==
200
)
{
$this
->
redirect
(
'sendemail'
);
}
else
{
$this
->
redirect
(
'index'
);
}
}
else
if
(
Helpers
::
verifyMobile
(
$phoneNum
))
{
//验证手机号
$mobile
=
$phoneNum
;
BackData
::
sendCodeToMobile
(
$mobile
);
$this
->
redirect
(
'verification'
);
$data
=
BackData
::
sendCodeToMobile
(
$mobile
);
$this
->
setSession
(
'phoneNum'
,
$phoneNum
);
if
(
$data
[
'code'
]
==
200
)
{
$this
->
redirect
(
'verification'
);
}
else
{
$this
->
redirect
(
'index'
);
}
}
}
...
...
@@ -55,6 +68,11 @@ class BackController extends WebAction
* 发送邮件
*/
public
function
sendemailAction
()
{
$phoneNum
=
$this
->
getSession
(
'phoneNum'
);
if
(
empty
(
$phoneNum
))
{
$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'
,
...
...
@@ -73,10 +91,10 @@ class BackController extends WebAction
)
);
$data
=
array
(
'simpleHeader'
=>
$simpleHeader
,
'simpleHeader'
=>
PassportModel
::
getSimpleHeader
(
false
)
,
'sendEmail'
=>
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'
],
'countrys'
=>
array
()
)
);
...
...
@@ -86,85 +104,63 @@ class BackController extends WebAction
/**
* 重置密码
*/
public
function
resetPwdAction
()
{
$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'
=>
''
)
);
public
function
backcodeAction
()
{
$code
=
$this
->
get
(
'code'
);
$info
=
$this
->
checkCode
(
$code
);
if
(
empty
(
$info
))
{
$this
->
redirect
(
'index'
);
}
$banner
=
PassportModel
::
getLeftBanner
(
PassportModel
::
BACK_LFFT_BANNER_CODE
);
$data
=
array
(
'simpleHeader'
=>
$simpleHeader
,
'simpleHeader'
=>
PassportModel
::
getSimpleHeader
(
false
)
,
'resetPage'
=>
true
,
'resetPwd'
=>
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'
],
'countrys'
=>
array
()
)
);
$this
->
_view
->
display
(
'reset-pwd'
,
$data
);
}
/**
* 更新密码
*
*/
public
function
updateAction
()
{
$code
=
$this
->
post
(
'code'
);
$password
=
$this
->
post
(
'pwd'
);
$info
=
$this
->
checkCode
(
$code
);
if
(
Helpers
::
verifyPassword
(
$password
)
&&
!
empty
(
$info
))
{
$uid
=
$info
[
'uid'
];
//修改密码
}
}
/**
* 重置密码成功
*/
public
function
resetSuccessAction
()
{
$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'
=>
''
)
);
$banner
=
PassportModel
::
getLeftBanner
(
PassportModel
::
BACK_LFFT_BANNER_CODE
);
$data
=
array
(
'simpleHeader'
=>
$simpleHeader
,
'simpleHeader'
=>
PassportModel
::
getSimpleHeader
(
false
)
,
'resetSuccess'
=>
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'
],
'countrys'
=>
array
()
)
);
$this
->
_view
->
display
(
'reset-success'
,
$data
);
}
/**
* 手机验证
*/
public
function
verificationAction
()
{
$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'
=>
$simpleHeader
,
'simpleHeader'
=>
PassportModel
::
getSimpleHeader
(
false
)
,
'vertificationPage'
=>
true
,
'verification'
=>
array
(
'coverHref'
=>
'/passport'
,
...
...
@@ -174,4 +170,21 @@ class BackController extends WebAction
);
$this
->
_view
->
display
(
'verification'
,
$data
);
}
/**
* 检查code
*
* @param string $code
* @return boolean
*/
private
function
checkCode
(
$code
)
{
$key
=
'_+@#$%^'
;
$code
=
base64_decode
(
$code
);
$info
=
json_decode
(
AuthCode
::
decode
(
$code
,
$key
),
true
);
if
(
$info
[
'create_time'
]
<
1
||
(
time
()
-
$info
[
'create_time'
])
>
86400
)
{
return
array
();
}
return
$info
;
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment