...
|
...
|
@@ -76,7 +76,6 @@ class ShopModel |
|
|
}
|
|
|
|
|
|
$sknProList = SearchData::searchAll(array('query' => join(',', array_unique($sknList)), 'viewNum' => 20));
|
|
|
|
|
|
if (isset($sknProList['data']['product_list']) && !empty($sknProList['data']['product_list'])) {
|
|
|
$coverList = array();
|
|
|
|
...
|
...
|
@@ -84,9 +83,9 @@ class ShopModel |
|
|
'imgSize' => array(250, 250),
|
|
|
'defaultCover' => true
|
|
|
));
|
|
|
|
|
|
foreach ($proList as $prod) {
|
|
|
$coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['salePrice'], '¥'), 2, '.', ''), 'title' => $prod['name']);
|
|
|
$prod['marketPrice'] = $prod['marketPrice'] ? $prod['marketPrice'] : $prod['salePrice'];
|
|
|
$coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['marketPrice'], '¥'), 2, '.', ''), 'title' => $prod['name']);
|
|
|
}
|
|
|
foreach ($data['newArrivel']['list'] as &$v) {
|
|
|
if (isset($coverList[$v['productSkn']])) {
|
...
|
...
|
|