...
|
...
|
@@ -37,7 +37,6 @@ class DetailModel |
|
|
// if (empty($baseInfo['status'])) {
|
|
|
// return $result;
|
|
|
// }
|
|
|
|
|
|
// 商品名称
|
|
|
if (isset($baseInfo['productName'])) {
|
|
|
$result['goodsName'] = $baseInfo['productName'];
|
...
|
...
|
@@ -311,7 +310,7 @@ class DetailModel |
|
|
|
|
|
$referenceList = array();
|
|
|
// 判断是否显示参考尺码
|
|
|
$showReference = !empty($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']) && ($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']['gender'] == $gender || $sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']['gender'] == 3);
|
|
|
$showReference = $boyReference || $girlReference;
|
|
|
if ($showReference) {
|
|
|
$referenceList[0] = array('param' => $referenceName);
|
|
|
}
|
...
|
...
|
@@ -326,9 +325,16 @@ class DetailModel |
|
|
foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) {
|
|
|
$item = array();
|
|
|
$sizeNameList[] = array('param' => $value['sizeName']);
|
|
|
if (!empty($value['referenceSize']['gender']) && ($value['referenceSize']['gender'] == $gender || $value['referenceSize']['gender'] == 3)) {
|
|
|
$referenceList[] = array('param' => empty($value['referenceSize']['referenceName']) ? ' ' : $value['referenceSize']['referenceName']);
|
|
|
// if (!empty($value['referenceSize']['gender']) && ($value['referenceSize']['gender'] == $gender || $value['referenceSize']['gender'] == 3)) {
|
|
|
// $referenceList[] = array('param' => empty($value['referenceSize']['referenceName']) ? ' ' : $value['referenceSize']['referenceName']);
|
|
|
// }
|
|
|
|
|
|
if ($boyReference && ($gender == 1 || $gender == 3)) {
|
|
|
$referenceList[] = array('param' => empty($value['boyReferSize']['referenceName']) ? ' ' : $value['boyReferSize']['referenceName']);
|
|
|
} elseif ($girlReference && ($gender == 2 || $gender == 3)) {
|
|
|
$referenceList[] = array('param' => empty($value['girlReferSize']['referenceName']) ? ' ' : $value['girlReferSize']['referenceName']);
|
|
|
}
|
|
|
|
|
|
foreach ($value['sortAttributes'] as $attr) {
|
|
|
$sizeBoGroup[$attr['id']][] = array('param' => empty($attr['sizeValue']) ? ' ' : $attr['sizeValue']);
|
|
|
}
|
...
|
...
|
@@ -345,7 +351,6 @@ class DetailModel |
|
|
} else {
|
|
|
$result['sizeInfo']['detail']['list'][0]['params'] = array(0 => array('param' => ''));
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// 测量方式
|
...
|
...
|
|