Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
1 changed file
with
10 additions
and
10 deletions
@@ -32,12 +32,12 @@ class DetailModel | @@ -32,12 +32,12 @@ class DetailModel | ||
32 | if (is_numeric($productId) && is_numeric($goodsId)) { | 32 | if (is_numeric($productId) && is_numeric($goodsId)) { |
33 | // 调用服务 | 33 | // 调用服务 |
34 | $baseInfo = DetailData::baseInfo($productId, $uid); | 34 | $baseInfo = DetailData::baseInfo($productId, $uid); |
35 | - var_dump($baseInfo); | ||
36 | 35 | ||
37 | - // 判断商品是否在架 | ||
38 | - if (empty($baseInfo['status'])) { | ||
39 | - return $result; | ||
40 | - } | 36 | +// // 因PC目前是不判断的,先保持一致,以后有需要,可以去掉 |
37 | +// // 判断商品是否在架 | ||
38 | +// if (empty($baseInfo['status'])) { | ||
39 | +// return $result; | ||
40 | +// } | ||
41 | 41 | ||
42 | // 商品名称 | 42 | // 商品名称 |
43 | if (isset($baseInfo['productName'])) { | 43 | if (isset($baseInfo['productName'])) { |
@@ -347,7 +347,7 @@ class DetailModel | @@ -347,7 +347,7 @@ class DetailModel | ||
347 | 347 | ||
348 | $referenceList = array(); | 348 | $referenceList = array(); |
349 | // 判断是否显示参考尺码 | 349 | // 判断是否显示参考尺码 |
350 | - $showReference = !empty($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']); | 350 | + $showReference = $boyReference || $girlReference; |
351 | if ($showReference) { | 351 | if ($showReference) { |
352 | $referenceList[0] = array('param' => $referenceName); | 352 | $referenceList[0] = array('param' => $referenceName); |
353 | } | 353 | } |
@@ -362,11 +362,11 @@ class DetailModel | @@ -362,11 +362,11 @@ class DetailModel | ||
362 | foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) { | 362 | foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) { |
363 | $item = array(); | 363 | $item = array(); |
364 | $sizeNameList[] = array('param' => $value['sizeName']); | 364 | $sizeNameList[] = array('param' => $value['sizeName']); |
365 | - if (!empty($value['referenceSize']['gender']) && $boyReference && ($value['referenceSize']['gender'] == 1 || $value['referenceSize']['gender'] == 3)) { | ||
366 | - $referenceList[] = array('param' => empty($value['referenceSize']['referenceName']) ? ' ' : $value['referenceSize']['referenceName']); | 365 | + if ($boyReference && ($gender == 1 || $gender == 3) ) { |
366 | + $referenceList[] = array('param' => empty($value['boyReferSize']['referenceName']) ? ' ' : $value['boyReferSize']['referenceName']); | ||
367 | } | 367 | } |
368 | - elseif (!empty($value['referenceSize']['gender']) && $girlReference && ($value['referenceSize']['gender'] == 2 || $value['referenceSize']['gender'] == 3)) { | ||
369 | - $referenceList[] = array('param' => empty($value['referenceSize']['referenceName']) ? ' ' : $value['referenceSize']['referenceName']); | 368 | + elseif ($girlReference && ($gender == 2 || $gender == 3) ) { |
369 | + $referenceList[] = array('param' => empty($value['girlReferSize']['referenceName']) ? ' ' : $value['girlReferSize']['referenceName']); | ||
370 | } | 370 | } |
371 | foreach ($value['sortAttributes'] as $attr) { | 371 | foreach ($value['sortAttributes'] as $attr) { |
372 | $sizeBoGroup[$attr['id']][] = array('param' => empty($attr['sizeValue']) ? ' ' : $attr['sizeValue']); | 372 | $sizeBoGroup[$attr['id']][] = array('param' => empty($attr['sizeValue']) ? ' ' : $attr['sizeValue']); |
-
Please register or login to post a comment