...
|
...
|
@@ -37,7 +37,6 @@ class DetailModel |
|
|
// if (empty($baseInfo['status'])) {
|
|
|
// return $result;
|
|
|
// }
|
|
|
|
|
|
// 商品名称
|
|
|
if (isset($baseInfo['productName'])) {
|
|
|
$result['goodsName'] = $baseInfo['productName'];
|
...
|
...
|
@@ -191,7 +190,7 @@ class DetailModel |
|
|
// }
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
|
|
|
// 商品图: 多个
|
|
|
if (isset($goodsGroup[1])) {
|
|
|
foreach ($goodsGroup as $value) {
|
...
|
...
|
@@ -251,11 +250,11 @@ class DetailModel |
|
|
*/
|
|
|
public static function getSizeInfo($productSkn)
|
|
|
{
|
|
|
$result = array();
|
|
|
$result = array();
|
|
|
|
|
|
if (is_numeric($productSkn)) {
|
|
|
// 调用服务
|
|
|
$sizeInfo = DetailData::sizeInfo($productSkn);
|
|
|
$sizeInfo = DetailData::sizeInfo($productSkn);
|
|
|
|
|
|
// 商品信息
|
|
|
if (isset($sizeInfo['productDescBo']['erpProductId'])) {
|
...
|
...
|
@@ -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' => ''));
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// 测量方式
|
...
|
...
|
|