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
yangyang
9 years ago
Commit
d3d7ab8f0b95bf2dadb2d4ea6aef1d7a468edcca
1 parent
48532400
微调
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
d3d7ab8
...
...
@@ -353,9 +353,9 @@ class HomeController extends AbstractAction
* 意见反馈
*/
public
function
suggestAction
()
{
// 设置网站标题
$this
->
setTitle
(
'意见反馈'
);
$this
->
setNavHeader
(
'意见反馈'
,
true
,
SITE_MAIN
);
// 设置网站标题
$this
->
setTitle
(
'意见反馈'
);
$this
->
setNavHeader
(
'意见反馈'
,
true
,
SITE_MAIN
);
$udid
=
$this
->
getUdid
();
$page
=
$this
->
get
(
'page'
,
1
);
...
...
@@ -466,18 +466,22 @@ class HomeController extends AbstractAction
/*
* 我的订单页面
*/
public
function
orderAction
(){
$type
=
$this
->
get
(
'type'
,
1
);
public
function
orderAction
()
{
//获得type值
$type
=
$this
->
get
(
'type'
,
1
);
$this
->
setTitle
(
'我的订单'
);
$this
->
setNavHeader
(
'我的订单'
);
$data
=
OrderModel
::
getNavs
(
$type
);
if
(
!
empty
(
$data
))
{
if
(
!
empty
(
$data
))
{
$order
[
'navs'
]
=
$data
;
}
$this
->
_view
->
display
(
'order'
,
array
(
'order'
=>
$order
'order'
=>
$order
,
'pageFooter'
=>
true
));
}
//ajax请求订单页面
public
function
getOrderAction
()
{
//判断是不是ajax请求
...
...
@@ -497,11 +501,11 @@ class HomeController extends AbstractAction
//如果没有订单数据,就给一个随便逛逛链接
//print_r($data);
$order
=
array
();
if
(
!
empty
(
$data
))
{
$order
[
'orders'
]
=
$data
;
}
else
{
if
(
!
empty
(
$data
))
{
$order
[
'orders'
]
=
$data
;
}
else
{
$order
[
'walkwayUrl'
]
=
'http://www.baidu.com'
;
}
}
//渲染模板
$this
->
_view
->
display
(
'orderContent'
,
array
(
'order'
=>
$order
,
...
...
@@ -554,8 +558,7 @@ class HomeController extends AbstractAction
}
}
public
function
orderDetailAction
()
{
public
function
orderDetailAction
()
{
$data
=
array
(
'name'
=>
'毛毛莉Lydia'
,
'phoneNum'
=>
'18600001133'
,
...
...
@@ -563,9 +566,7 @@ class HomeController extends AbstractAction
'orderStatus'
=>
'订单取消'
,
'orderNum'
=>
'418358063'
,
'orderTime'
=>
'2014-03-10 17:25:10'
,
'orderCancel'
=>
true
,
'goods'
=>
array
(
array
(
'id'
=>
1
,
...
...
@@ -587,7 +588,6 @@ class HomeController extends AbstractAction
'count'
=>
'1'
)
),
'sumPrice'
=>
799
,
'salePrice'
=>
80
,
'freight'
=>
5
,
...
...
@@ -597,4 +597,5 @@ class HomeController extends AbstractAction
);
$this
->
_view
->
display
(
'order-detail'
,
array
(
'orderDetail'
=>
$data
,
'orderDetailPage'
=>
true
));
}
}
...
...
Please
register
or
login
to post a comment