Authored by 周少峰

Merge branch 'hotfix/shopPrice'

... ... @@ -86,16 +86,20 @@ class ShopModel
));
foreach ($proList as $prod) {
$coverList[$prod['skn']] = $prod['thumb'];
$coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => $prod['salePrice'], 'title' => $prod['name']);
}
foreach ($data['newArrivel']['list'] as &$v) {
if (isset($coverList[$v['productSkn']])) {
$v['img'] = $coverList[$v['productSkn']];
$v['img'] = $coverList[$v['productSkn']]['img'];
$v['price'] = $coverList[$v['productSkn']]['price'];
$v['title'] = $coverList[$v['productSkn']]['title'];
}
}
foreach ($data['hotSingle']['list'] as &$v) {
if (isset($coverList[$v['productSkn']])) {
$v['img'] = $coverList[$v['productSkn']];
$v['img'] = $coverList[$v['productSkn']]['img'];
$v['price'] = $coverList[$v['productSkn']]['price'];
$v['title'] = $coverList[$v['productSkn']]['title'];
}
}
}
... ...