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
99bf2ce89d71840ea80dcb81dac3d03bfb034c85
2 parents
2dabf265
dc2bda7c
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
framework
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/models/Home/Order.php
framework
@
75bbc3b0
Subproject commit
119c247f5cf929aa1e059e40609bb16dd6b58f05
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
99bf2ce
...
...
@@ -528,6 +528,8 @@ class HomeController extends AbstractAction
$yh_channel
=
$this
->
get
(
'yh_channel'
,
1
);
$uid
=
$this
->
getUid
();
$uid
=
'7566245'
;
//测试用
$this
->
setTitle
(
'我的订单'
);
$this
->
setNavHeader
(
'我的订单'
);
//调用模型层getOrder方法获得并处理数据
$data
=
OrderModel
::
getOrder
(
$type
,
$page
,
$limit
,
$gender
,
$yh_channel
,
$uid
);
//如果没有订单数据,就给一个随便逛逛链接
...
...
@@ -535,13 +537,14 @@ class HomeController extends AbstractAction
if
(
!
empty
(
$data
))
{
$order
[
'orders'
]
=
$data
;
}
else
{
$order
[
'walkwayUrl'
]
=
'http://www.baidu.com'
;
$order
[
'walkwayUrl'
]
=
'http://www.baidu.com'
;
}
//渲染模板
$this
->
_view
->
display
(
'order'
,
array
(
'order'
=>
$order
,
'orderPage'
=>
true
'orderPage'
=>
true
,
'pageFooter'
=>
true
));
}
...
...
yohobuy/m.yohobuy.com/application/models/Home/Order.php
View file @
99bf2ce
...
...
@@ -57,9 +57,13 @@ class OrderModel
case
0
:
$result
[
$key
][
'unpaid'
]
=
true
;
break
;
case
1
||
2
||
3
||
4
||
5
:
case
1
:
case
2
:
case
3
:
case
4
:
case
5
:
$result
[
$key
][
'unreceived'
]
=
true
;
$res
a
ult
[
$key
][
'logisticsUrl'
]
=
"暂无logisticsUrl数据"
;
$result
[
$key
][
'logisticsUrl'
]
=
"暂无logisticsUrl数据"
;
break
;
case
6
:
$result
[
$key
][
'completed'
]
=
true
;
...
...
Please
register
or
login
to post a comment