...
|
...
|
@@ -42,7 +42,7 @@ class DetailModel |
|
|
if (isset($baseInfo['productName'])) {
|
|
|
$result['goodsName'] = $baseInfo['productName'];
|
|
|
}
|
|
|
|
|
|
|
|
|
// 商品促销短语
|
|
|
if (!empty($baseInfo['salesPhrase'])) {
|
|
|
$result['goodsSubtitle'] = $baseInfo['salesPhrase'];
|
...
|
...
|
@@ -289,24 +289,23 @@ class DetailModel |
|
|
$boyReference = !empty($sizeInfo['productExtra']['boyReference']);
|
|
|
$girlReference = !empty($sizeInfo['productExtra']['girlReference']);
|
|
|
$gender = isset($sizeInfo['gender']) ? $sizeInfo['gender'] : 3;
|
|
|
$referenceName = '参考尺码';
|
|
|
if (($gender == 1 && $boyReference) || ($gender == 2 && $girlReference) ) {
|
|
|
$referenceName = '参考尺码';
|
|
|
if (($gender == 1 && $boyReference) || ($gender == 2 && $girlReference)) {
|
|
|
$referenceName = '参考尺码';
|
|
|
}
|
|
|
elseif ($gender == 3 && $boyReference) {
|
|
|
} elseif ($gender == 3 && $boyReference) {
|
|
|
$referenceName = '参考尺码(男)';
|
|
|
}
|
|
|
elseif ($gender == 3 && $girlReference) {
|
|
|
} elseif ($gender == 3 && $girlReference) {
|
|
|
$referenceName = '参考尺码(女)';
|
|
|
}
|
|
|
|
|
|
$sizeNameList = array(0 => array('param' => '吊牌尺码')); // 尺码名称
|
|
|
|
|
|
$referenceList = array();
|
|
|
// 判断是否显示参考尺码
|
|
|
$showReference = !empty($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']);
|
|
|
$showReference = !empty($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']) && ($sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']['gender'] == $gender || $sizeInfo['sizeInfoBo']['sizeBoList'][0]['referenceSize']['gender'] == 3);
|
|
|
if ($showReference) {
|
|
|
$sizeNameList[1] = array('param' => $referenceName);
|
|
|
$referenceList[0] = array('param' => $referenceName);
|
|
|
}
|
|
|
$referenceList = array();
|
|
|
|
|
|
$sizeNameList = array(0 => array('param' => '吊牌尺码')); // 尺码名称
|
|
|
$sizeBoGroup = array(); // 尺码按ID分组
|
|
|
foreach ($sizeInfo['sizeInfoBo']['sizeAttributeBos'] as $attr) {
|
|
|
$sizeBoGroup[$attr['id']][0] = array('param' => $attr['attributeName']);
|
...
|
...
|
@@ -416,6 +415,7 @@ class DetailModel |
|
|
'\r\n\t' => '',
|
|
|
'</p>' => '',
|
|
|
'<img src=' => "<img class=\"lazy\" src=\"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==\" data-original=",
|
|
|
'<img border="0" src=' => "<img border=\"0\" class=\"lazy\" src=\"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==\" data-original=",
|
|
|
)),
|
|
|
);
|
|
|
}
|
...
|
...
|
|