Authored by hf

fixes bug to product detail page to remove check is down status

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 -<title>页面不存在 | Yoho!Buy有货</title> 5 +<title>页面不存在</title>
6 <meta name="keywords" content="Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"> 6 <meta name="keywords" content="Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款">
7 <meta name="description" content="YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"> 7 <meta name="description" content="YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。">
8 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> 8 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 <body > 27 <body >
28 <header class="yoho-header boys"> 28 <header class="yoho-header boys">
29 <a href="javascript:history.go(-1);" class="nav-back"></a> 29 <a href="javascript:history.go(-1);" class="nav-back"></a>
30 - <a href="http://m.dev.yohobuy.com?go=1" class="nav-home"></a> 30 + <a href="http://m.yohobuy.com?go=1" class="nav-home"></a>
31 <p class="nav-title">抱歉,页面不存在!</p> 31 <p class="nav-title">抱歉,页面不存在!</p>
32 </header> 32 </header>
33 <div class="err-page yoho-page"> 33 <div class="err-page yoho-page">
@@ -37,7 +37,6 @@ class DetailModel @@ -37,7 +37,6 @@ class DetailModel
37 // if (empty($baseInfo['status'])) { 37 // if (empty($baseInfo['status'])) {
38 // return $result; 38 // return $result;
39 // } 39 // }
40 -  
41 // 商品名称 40 // 商品名称
42 if (isset($baseInfo['productName'])) { 41 if (isset($baseInfo['productName'])) {
43 $result['goodsName'] = $baseInfo['productName']; 42 $result['goodsName'] = $baseInfo['productName'];
@@ -191,7 +190,7 @@ class DetailModel @@ -191,7 +190,7 @@ class DetailModel
191 // } 190 // }
192 // } 191 // }
193 } 192 }
194 - 193 +
195 // 商品图: 多个 194 // 商品图: 多个
196 if (isset($goodsGroup[1])) { 195 if (isset($goodsGroup[1])) {
197 foreach ($goodsGroup as $value) { 196 foreach ($goodsGroup as $value) {
@@ -251,11 +250,11 @@ class DetailModel @@ -251,11 +250,11 @@ class DetailModel
251 */ 250 */
252 public static function getSizeInfo($productSkn) 251 public static function getSizeInfo($productSkn)
253 { 252 {
254 - $result = array(); 253 + $result = array();
255 254
256 if (is_numeric($productSkn)) { 255 if (is_numeric($productSkn)) {
257 // 调用服务 256 // 调用服务
258 - $sizeInfo = DetailData::sizeInfo($productSkn); 257 + $sizeInfo = DetailData::sizeInfo($productSkn);
259 258
260 // 商品信息 259 // 商品信息
261 if (isset($sizeInfo['productDescBo']['erpProductId'])) { 260 if (isset($sizeInfo['productDescBo']['erpProductId'])) {
@@ -311,7 +310,7 @@ class DetailModel @@ -311,7 +310,7 @@ class DetailModel
311 310
312 $referenceList = array(); 311 $referenceList = array();
313 // 判断是否显示参考尺码 312 // 判断是否显示参考尺码
314 - $showReference = !empty($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']) && ($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']['gender'] == $gender || $sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']['gender'] == 3); 313 + $showReference = $boyReference || $girlReference;
315 if ($showReference) { 314 if ($showReference) {
316 $referenceList[0] = array('param' => $referenceName); 315 $referenceList[0] = array('param' => $referenceName);
317 } 316 }
@@ -326,9 +325,16 @@ class DetailModel @@ -326,9 +325,16 @@ class DetailModel
326 foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) { 325 foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) {
327 $item = array(); 326 $item = array();
328 $sizeNameList[] = array('param' => $value['sizeName']); 327 $sizeNameList[] = array('param' => $value['sizeName']);
329 - if (!empty($value['referenceSize']['gender']) && ($value['referenceSize']['gender'] == $gender || $value['referenceSize']['gender'] == 3)) {  
330 - $referenceList[] = array('param' => empty($value['referenceSize']['referenceName']) ? ' ' : $value['referenceSize']['referenceName']); 328 +// if (!empty($value['referenceSize']['gender']) && ($value['referenceSize']['gender'] == $gender || $value['referenceSize']['gender'] == 3)) {
  329 +// $referenceList[] = array('param' => empty($value['referenceSize']['referenceName']) ? ' ' : $value['referenceSize']['referenceName']);
  330 +// }
  331 +
  332 + if ($boyReference && ($gender == 1 || $gender == 3)) {
  333 + $referenceList[] = array('param' => empty($value['boyReferSize']['referenceName']) ? ' ' : $value['boyReferSize']['referenceName']);
  334 + } elseif ($girlReference && ($gender == 2 || $gender == 3)) {
  335 + $referenceList[] = array('param' => empty($value['girlReferSize']['referenceName']) ? ' ' : $value['girlReferSize']['referenceName']);
331 } 336 }
  337 +
332 foreach ($value['sortAttributes'] as $attr) { 338 foreach ($value['sortAttributes'] as $attr) {
333 $sizeBoGroup[$attr['id']][] = array('param' => empty($attr['sizeValue']) ? ' ' : $attr['sizeValue']); 339 $sizeBoGroup[$attr['id']][] = array('param' => empty($attr['sizeValue']) ? ' ' : $attr['sizeValue']);
334 } 340 }
@@ -345,7 +351,6 @@ class DetailModel @@ -345,7 +351,6 @@ class DetailModel
345 } else { 351 } else {
346 $result['sizeInfo']['detail']['list'][0]['params'] = array(0 => array('param' => '')); 352 $result['sizeInfo']['detail']['list'][0]['params'] = array(0 => array('param' => ''));
347 } 353 }
348 -  
349 } 354 }
350 355
351 // 测量方式 356 // 测量方式