Showing
1 changed file
with
9 additions
and
7 deletions
@@ -86,7 +86,7 @@ class ShopModel | @@ -86,7 +86,7 @@ class ShopModel | ||
86 | )); | 86 | )); |
87 | 87 | ||
88 | foreach ($proList as $prod) { | 88 | foreach ($proList as $prod) { |
89 | - $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => $prod['salePrice'], 'title' => $prod['name']); | 89 | + $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['salePrice'], '¥'), 2, '.', ''), 'title' => $prod['name']); |
90 | } | 90 | } |
91 | foreach ($data['newArrivel']['list'] as &$v) { | 91 | foreach ($data['newArrivel']['list'] as &$v) { |
92 | if (isset($coverList[$v['productSkn']])) { | 92 | if (isset($coverList[$v['productSkn']])) { |
@@ -584,10 +584,6 @@ class ShopModel | @@ -584,10 +584,6 @@ class ShopModel | ||
584 | */ | 584 | */ |
585 | public static function goodsTabBar($data, $parameters) | 585 | public static function goodsTabBar($data, $parameters) |
586 | { | 586 | { |
587 | - $more = array( | ||
588 | - 'name' => 'MORE', | ||
589 | - 'href' => self::$shopListUrl . '?shopId=' . $parameters['shopId'] | ||
590 | - ); | ||
591 | $result = array( | 587 | $result = array( |
592 | 'hot' => array(), | 588 | 'hot' => array(), |
593 | 'new' => array() | 589 | 'new' => array() |
@@ -620,8 +616,14 @@ class ShopModel | @@ -620,8 +616,14 @@ class ShopModel | ||
620 | } | 616 | } |
621 | } | 617 | } |
622 | 618 | ||
623 | - $result['hot'][] = $more; | ||
624 | - $result['new'][] = $more; | 619 | + $result['hot'][] = array( |
620 | + 'name' => 'MORE', | ||
621 | + 'href' => self::$shopListUrl . '?navBar=2&order=s_n_desc&shopId=' . $parameters['shopId'] | ||
622 | + ); | ||
623 | + $result['new'][] = array( | ||
624 | + 'name' => 'MORE', | ||
625 | + 'href' => self::$shopListUrl . '?navBar=2&order=s_t_desc&shopId=' . $parameters['shopId'] | ||
626 | + ); | ||
625 | return $result; | 627 | return $result; |
626 | } | 628 | } |
627 | 629 |
-
Please register or login to post a comment