Authored by hf

Merge branch 'develop' into test

@@ -93,7 +93,7 @@ $addressForm.on('submit', function() { @@ -93,7 +93,7 @@ $addressForm.on('submit', function() {
93 loading.hideLoadingMask(); 93 loading.hideLoadingMask();
94 } else { 94 } else {
95 if (queryString.refer === 'shopping') { 95 if (queryString.refer === 'shopping') {
96 - window.location.href = '/shoppingCart/selectAddress'; 96 + window.location.href = '/cart/index/selectAddress';
97 } else { 97 } else {
98 window.location.href = '/home/address'; 98 window.location.href = '/home/address';
99 } 99 }
@@ -43,6 +43,7 @@ optHammer.on('tap', function(e) { @@ -43,6 +43,7 @@ optHammer.on('tap', function(e) {
43 $('#dialog-wrapper').hide(); 43 $('#dialog-wrapper').hide();
44 if (!res) { 44 if (!res) {
45 tip.show('网络错误'); 45 tip.show('网络错误');
  46 + return;
46 } 47 }
47 if (res.code === 200) { 48 if (res.code === 200) {
48 tip.show('删除成功'); 49 tip.show('删除成功');
@@ -74,6 +75,7 @@ optHammer.on('tap', function(e) { @@ -74,6 +75,7 @@ optHammer.on('tap', function(e) {
74 $('#dialog-wrapper').hide(); 75 $('#dialog-wrapper').hide();
75 if (!res) { 76 if (!res) {
76 tip.show('网络错误'); 77 tip.show('网络错误');
  78 + return;
77 } 79 }
78 if (res.code === 200) { 80 if (res.code === 200) {
79 tip.show('取消成功'); 81 tip.show('取消成功');
@@ -18,4 +18,10 @@ require('./back/mobile'); @@ -18,4 +18,10 @@ require('./back/mobile');
18 require('./back/code'); 18 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