Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
5 changed files
with
16 additions
and
10 deletions
@@ -19,3 +19,9 @@ require('./back/code'); | @@ -19,3 +19,9 @@ require('./back/code'); | ||
19 | require('./back/email'); | 19 | require('./back/email'); |
20 | require('./back/email-success'); | 20 | require('./back/email-success'); |
21 | require('./back/new-password'); | 21 | require('./back/new-password'); |
22 | + | ||
23 | +//绑定手机 | ||
24 | +require('./bind/bind'); | ||
25 | +require('./bind/code'); | ||
26 | +require('./bind/password'); | ||
27 | + |
@@ -831,7 +831,7 @@ class HomeController extends AbstractAction | @@ -831,7 +831,7 @@ class HomeController extends AbstractAction | ||
831 | /** | 831 | /** |
832 | * 订单详情页 | 832 | * 订单详情页 |
833 | */ | 833 | */ |
834 | - public function orderDetailAction() | 834 | + public function orderdetailAction() |
835 | { | 835 | { |
836 | // 审判跳转登录页 | 836 | // 审判跳转登录页 |
837 | $this->auditJumpLogin(); | 837 | $this->auditJumpLogin(); |
@@ -80,7 +80,7 @@ class OrderModel | @@ -80,7 +80,7 @@ class OrderModel | ||
80 | $result[$key]['sumCost'] = $vo['amount']; | 80 | $result[$key]['sumCost'] = $vo['amount']; |
81 | //类内调用格式化订单商品数据方法 | 81 | //类内调用格式化订单商品数据方法 |
82 | $result[$key]['goods'] = Helpers::formatOrderGoods($vo['order_goods'], $count); | 82 | $result[$key]['goods'] = Helpers::formatOrderGoods($vo['order_goods'], $count); |
83 | - $result[$key]['detailUrl'] = Helpers::url('/home/orderDetail', array('order_code' => $vo['order_code'])); | 83 | + $result[$key]['detailUrl'] = Helpers::url('/home/orderdetail', array('order_code' => $vo['order_code'])); |
84 | $result[$key]['count'] = $count; | 84 | $result[$key]['count'] = $count; |
85 | } | 85 | } |
86 | } | 86 | } |
@@ -33,12 +33,6 @@ class DetailModel | @@ -33,12 +33,6 @@ class DetailModel | ||
33 | // 调用服务 | 33 | // 调用服务 |
34 | $baseInfo = DetailData::baseInfo($productId, $uid); | 34 | $baseInfo = DetailData::baseInfo($productId, $uid); |
35 | 35 | ||
36 | -// // 因PC目前是不判断的,先保持一致,以后有需要,可以去掉 | ||
37 | -// // 判断商品是否在架 | ||
38 | -// if (empty($baseInfo['status'])) { | ||
39 | -// return $result; | ||
40 | -// } | ||
41 | - | ||
42 | // 商品名称 | 36 | // 商品名称 |
43 | if (isset($baseInfo['productName'])) { | 37 | if (isset($baseInfo['productName'])) { |
44 | $result['goodsName'] = $baseInfo['productName']; | 38 | $result['goodsName'] = $baseInfo['productName']; |
@@ -241,7 +235,7 @@ class DetailModel | @@ -241,7 +235,7 @@ class DetailModel | ||
241 | 'numInCart' => 0, | 235 | 'numInCart' => 0, |
242 | 'goodsInstore' => $baseInfo['storage'], // 库存量 | 236 | 'goodsInstore' => $baseInfo['storage'], // 库存量 |
243 | ); | 237 | ); |
244 | - $soldOut = ($baseInfo['storage'] == 0) || ($totalStorageNum === 0); | 238 | + $soldOut = ($baseInfo['storage'] == 0) || ($baseInfo['status'] == 0); |
245 | $notForSale = $baseInfo['attribute'] == 2; | 239 | $notForSale = $baseInfo['attribute'] == 2; |
246 | // 显示加入购物车链接 | 240 | // 显示加入购物车链接 |
247 | if (!$soldOut && !$notForSale) { | 241 | if (!$soldOut && !$notForSale) { |
@@ -108,7 +108,7 @@ routes.girls.type = "rewrite" | @@ -108,7 +108,7 @@ routes.girls.type = "rewrite" | ||
108 | routes.girls.match = "/girl$" | 108 | routes.girls.match = "/girl$" |
109 | routes.girls.route.module = Index | 109 | routes.girls.route.module = Index |
110 | routes.girls.route.controller = Girls | 110 | routes.girls.route.controller = Girls |
111 | -routes.girls.route.action = index | 111 | +routes.girls.route.action = Index |
112 | 112 | ||
113 | ; 商品筛选 | 113 | ; 商品筛选 |
114 | routes.goodsfilter.type = "rewrite" | 114 | routes.goodsfilter.type = "rewrite" |
@@ -147,3 +147,9 @@ routes.productintro.route.controller = Detail | @@ -147,3 +147,9 @@ routes.productintro.route.controller = Detail | ||
147 | routes.productintro.route.action = Intro | 147 | routes.productintro.route.action = Intro |
148 | routes.productintro.map.1 = productSkn | 148 | routes.productintro.map.1 = productSkn |
149 | 149 | ||
150 | +; 订单相关 | ||
151 | +routes.cart.type = "rewrite" | ||
152 | +routes.cart.match = "/home/order/detail$" | ||
153 | +routes.cart.route.module = Index | ||
154 | +routes.cart.route.controller = Home | ||
155 | +routes.cart.route.action = Homedetail |
-
Please register or login to post a comment