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
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
29024c38b69744f9558af258a7c164d355a533bd
2 parents
688e24e6
ae56491d
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
29024c3
...
...
@@ -188,7 +188,7 @@ class HomeController extends AbstractAction
*/
public
function
currencyAction
()
{
$this
->
setTitle
(
'YOHO币'
);
$this
->
setNavHeader
(
'优惠券'
,
true
,
SITE_MAIN
);
$this
->
setNavHeader
(
'优惠券'
,
true
,
SITE_MAIN
);
$uid
=
967016
;
$currency
=
\Index\UserModel
::
getYohoCoinData
(
$uid
);
...
...
@@ -463,7 +463,11 @@ class HomeController extends AbstractAction
$data
=
OrderModel
::
getNavs
(
$type
);
if
(
!
empty
(
$data
))
{
$order
[
'navs'
]
=
$data
;
$order
[
'orderPage'
]
=
true
;
}
else
{
$this
->
error
();
}
$this
->
_view
->
display
(
'order'
,
array
(
'order'
=>
$order
,
'pageFooter'
=>
true
...
...
@@ -490,14 +494,11 @@ class HomeController extends AbstractAction
$order
=
array
();
if
(
!
empty
(
$data
))
{
$order
[
'orders'
]
=
$data
;
$order
[
'orderPage'
]
=
true
;
}
else
{
$order
[
'walkwayUrl'
]
=
'http://www.baidu.com'
;
$order
[
'orderPage'
]
=
true
;
}
print_r
(
$order
);
//渲染模板
$this
->
_view
->
display
(
'order-content'
,
$order
);
$this
->
_view
->
display
(
'order-content'
,
$order
);
}
/*
...
...
@@ -545,12 +546,10 @@ class HomeController extends AbstractAction
}
}
/**
* 订单详情页
*/
public
function
orderDetailAction
()
{
public
function
orderDetailAction
()
{
$data
=
array
(
'name'
=>
'毛毛莉Lydia'
,
'phoneNum'
=>
'18600001133'
,
...
...
Please
register
or
login
to post a comment