Authored by 周少峰

shop more url

... ... @@ -86,7 +86,7 @@ class ShopModel
));
foreach ($proList as $prod) {
$coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => $prod['salePrice'], 'title' => $prod['name']);
$coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['salePrice'], '¥'), 2, '.', ''), 'title' => $prod['name']);
}
foreach ($data['newArrivel']['list'] as &$v) {
if (isset($coverList[$v['productSkn']])) {
... ... @@ -584,10 +584,6 @@ class ShopModel
*/
public static function goodsTabBar($data, $parameters)
{
$more = array(
'name' => 'MORE',
'href' => self::$shopListUrl . '?shopId=' . $parameters['shopId']
);
$result = array(
'hot' => array(),
'new' => array()
... ... @@ -620,8 +616,14 @@ class ShopModel
}
}
$result['hot'][] = $more;
$result['new'][] = $more;
$result['hot'][] = array(
'name' => 'MORE',
'href' => self::$shopListUrl . '?navBar=2&order=s_n_desc&shopId=' . $parameters['shopId']
);
$result['new'][] = array(
'name' => 'MORE',
'href' => self::$shopListUrl . '?navBar=2&order=s_t_desc&shopId=' . $parameters['shopId']
);
return $result;
}
... ...