Showing
1 changed file
with
1 additions
and
2 deletions
@@ -84,8 +84,7 @@ class ShopModel | @@ -84,8 +84,7 @@ class ShopModel | ||
84 | 'defaultCover' => true | 84 | 'defaultCover' => true |
85 | )); | 85 | )); |
86 | foreach ($proList as $prod) { | 86 | foreach ($proList as $prod) { |
87 | - $prod['marketPrice'] = $prod['marketPrice'] ? $prod['marketPrice'] : $prod['salePrice']; | ||
88 | - $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['marketPrice'], '¥'), 2, '.', ''), 'title' => $prod['name']); | 87 | + $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['salePrice'], '¥'), 2, '.', ''), 'title' => $prod['name']); |
89 | } | 88 | } |
90 | foreach ($data['newArrivel']['list'] as &$v) { | 89 | foreach ($data['newArrivel']['list'] as &$v) { |
91 | if (isset($coverList[$v['productSkn']])) { | 90 | if (isset($coverList[$v['productSkn']])) { |
-
Please register or login to post a comment