...
|
...
|
@@ -95,7 +95,7 @@ class DetailModel |
|
|
|
|
|
// 上市期
|
|
|
if (isset($baseInfo['expectArrivalTime']) && !empty($baseInfo['expectArrivalTime'])) {
|
|
|
$result['periodOfMarket'] = date('n', $baseInfo['expectArrivalTime']) . '月';
|
|
|
$result['periodOfMarket'] = $baseInfo['expectArrivalTime'] . '月';
|
|
|
}
|
|
|
|
|
|
// 促销信息
|
...
|
...
|
@@ -103,7 +103,6 @@ class DetailModel |
|
|
$build = array();
|
|
|
foreach ($baseInfo['promotionBoList'] as $value) {
|
|
|
$build['text'] = $value['promotionTitle'];
|
|
|
//$build['type'] = $value['promotionType'];
|
|
|
$result['goodsDiscount']['list'][] = $build;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -138,7 +137,7 @@ class DetailModel |
|
|
foreach ($baseInfo['commentBoWrapper']['commentBoList'] as $value) {
|
|
|
$build['userName'] = $value['nickName'];
|
|
|
$build['desc'] = $value['colorName'] . '/' . $value['sizeName'];
|
|
|
$build['content'] = $value['content'];
|
|
|
$build['content'] = isset($value['content']) ? $value['content'] : '';
|
|
|
$build['time'] = $value['createTime'];
|
|
|
$result['feedbacks']['comments'][] = $build;
|
|
|
}
|
...
|
...
|
@@ -286,7 +285,24 @@ class DetailModel |
|
|
'enTitle' => 'SIZE INFO',
|
|
|
'detail' => array('list' => array()),
|
|
|
);
|
|
|
/* 参考尺码 */
|
|
|
$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 = '参考尺码';
|
|
|
}
|
|
|
elseif ($gender == 3 && $boyReference) {
|
|
|
$referenceName = '参考尺码(男)';
|
|
|
}
|
|
|
elseif ($gender == 3 && $girlReference) {
|
|
|
$referenceName = '参考尺码(女)';
|
|
|
}
|
|
|
|
|
|
$showReference = false;
|
|
|
$sizeNameList = array(0 => array('param' => '吊牌尺码')); // 尺码名称
|
|
|
$referenceList = array();
|
|
|
$sizeBoGroup = array(); // 尺码按ID分组
|
|
|
foreach ($sizeInfo['sizeInfoBo']['sizeAttributeBos'] as $attr) {
|
|
|
$sizeBoGroup[$attr['id']][0] = array('param' => $attr['attributeName']);
|
...
|
...
|
@@ -464,8 +480,8 @@ class DetailModel |
|
|
|
|
|
if (is_numeric($productSkn)) {
|
|
|
$preference = DetailData::preference($productSkn, $channel, $brandId);
|
|
|
if (!empty($preference['data'])) {
|
|
|
foreach ($preference['data'] as $value) {
|
|
|
if (!empty($preference)) {
|
|
|
foreach ($preference as $value) {
|
|
|
$result['recommendList'][] = Helpers::formatProduct($value, false, true, true, 299, 388, false, false);
|
|
|
}
|
|
|
}
|
...
|
...
|
|