...
|
...
|
@@ -55,6 +55,7 @@ class DetailController extends AbstractAction |
|
|
$good = array();
|
|
|
$skns = array();
|
|
|
$product = array();
|
|
|
|
|
|
foreach ($detail['getArticleContent'] as $value) {
|
|
|
$build = array();
|
|
|
// 文字
|
...
|
...
|
@@ -65,6 +66,17 @@ class DetailController extends AbstractAction |
|
|
elseif (isset($value['singleImage'])) {
|
|
|
$build['bigImage'] = Helpers::getImageUrl($value['singleImage']['data'][0]['src'], 640, 640);
|
|
|
}
|
|
|
elseif (isset($value['smallPic'])) {
|
|
|
$imgs = $value['smallPic']['data'];
|
|
|
$build['smallImage'] = array(
|
|
|
array(
|
|
|
'src' => Helpers::getImageUrl($imgs[0]['src'], 315, 420)
|
|
|
),
|
|
|
array(
|
|
|
'src' => Helpers::getImageUrl($imgs[1]['src'], 315, 420)
|
|
|
)
|
|
|
);
|
|
|
}
|
|
|
// 相关推荐
|
|
|
elseif (isset($value['goods']['data'])) {
|
|
|
$good = array();
|
...
|
...
|
|