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
hf
9 years ago
Commit
3f505671451930cf4184eca599d69f4fda5ea83f
1 parent
1f13eede
code review by hf: fixes some bugs
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/models/Home/Order.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/configs/routes.index.ini
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
3f50567
...
...
@@ -831,7 +831,7 @@ class HomeController extends AbstractAction
/**
* 订单详情页
*/
public
function
order
D
etailAction
()
public
function
order
d
etailAction
()
{
// 审判跳转登录页
$this
->
auditJumpLogin
();
...
...
yohobuy/m.yohobuy.com/application/models/Home/Order.php
View file @
3f50567
...
...
@@ -80,7 +80,7 @@ class OrderModel
$result
[
$key
][
'sumCost'
]
=
$vo
[
'amount'
];
//类内调用格式化订单商品数据方法
$result
[
$key
][
'goods'
]
=
Helpers
::
formatOrderGoods
(
$vo
[
'order_goods'
],
$count
);
$result
[
$key
][
'detailUrl'
]
=
Helpers
::
url
(
'/home/order
D
etail'
,
array
(
'order_code'
=>
$vo
[
'order_code'
]));
$result
[
$key
][
'detailUrl'
]
=
Helpers
::
url
(
'/home/order
d
etail'
,
array
(
'order_code'
=>
$vo
[
'order_code'
]));
$result
[
$key
][
'count'
]
=
$count
;
}
}
...
...
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
3f50567
...
...
@@ -33,12 +33,6 @@ class DetailModel
// 调用服务
$baseInfo
=
DetailData
::
baseInfo
(
$productId
,
$uid
);
// // 因PC目前是不判断的,先保持一致,以后有需要,可以去掉
// // 判断商品是否在架
// if (empty($baseInfo['status'])) {
// return $result;
// }
// 商品名称
if
(
isset
(
$baseInfo
[
'productName'
]))
{
$result
[
'goodsName'
]
=
$baseInfo
[
'productName'
];
...
...
@@ -241,7 +235,7 @@ class DetailModel
'numInCart'
=>
0
,
'goodsInstore'
=>
$baseInfo
[
'storage'
],
// 库存量
);
$soldOut
=
(
$baseInfo
[
'storage'
]
==
0
)
||
(
$
totalStorageNum
=
==
0
);
$soldOut
=
(
$baseInfo
[
'storage'
]
==
0
)
||
(
$
baseInfo
[
'status'
]
==
0
);
$notForSale
=
$baseInfo
[
'attribute'
]
==
2
;
// 显示加入购物车链接
if
(
!
$soldOut
&&
!
$notForSale
)
{
...
...
yohobuy/m.yohobuy.com/configs/routes.index.ini
View file @
3f50567
...
...
@@ -108,7 +108,7 @@ routes.girls.type = "rewrite"
routes.girls.match
=
"/girl$"
routes.girls.route.module
=
Index
routes.girls.route.controller
=
Girls
routes.girls.route.action
=
i
ndex
routes.girls.route.action
=
I
ndex
; 商品筛选
routes.goodsfilter.type
=
"rewrite"
...
...
@@ -147,3 +147,9 @@ routes.productintro.route.controller = Detail
routes.productintro.route.action
=
Intro
routes.productintro.map.1
=
productSkn
; 订单相关
routes.cart.type
=
"rewrite"
routes.cart.match
=
"/home/order/detail$"
routes.cart.route.module
=
Index
routes.cart.route.controller
=
Home
routes.cart.route.action
=
Homedetail
\ No newline at end of file
...
...
Please
register
or
login
to post a comment