|
@@ -76,7 +76,6 @@ class ShopModel |
|
@@ -76,7 +76,6 @@ class ShopModel |
76
|
}
|
76
|
}
|
77
|
|
77
|
|
78
|
$sknProList = SearchData::searchAll(array('query' => join(',', array_unique($sknList)), 'viewNum' => 20));
|
78
|
$sknProList = SearchData::searchAll(array('query' => join(',', array_unique($sknList)), 'viewNum' => 20));
|
79
|
-
|
|
|
80
|
if (isset($sknProList['data']['product_list']) && !empty($sknProList['data']['product_list'])) {
|
79
|
if (isset($sknProList['data']['product_list']) && !empty($sknProList['data']['product_list'])) {
|
81
|
$coverList = array();
|
80
|
$coverList = array();
|
82
|
|
81
|
|
|
@@ -84,9 +83,8 @@ class ShopModel |
|
@@ -84,9 +83,8 @@ class ShopModel |
84
|
'imgSize' => array(250, 250),
|
83
|
'imgSize' => array(250, 250),
|
85
|
'defaultCover' => true
|
84
|
'defaultCover' => true
|
86
|
));
|
85
|
));
|
87
|
-
|
|
|
88
|
foreach ($proList as $prod) {
|
86
|
foreach ($proList as $prod) {
|
89
|
- $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => $prod['salePrice'], 'title' => $prod['name']);
|
87
|
+ $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['salePrice'], '¥'), 2, '.', ''), 'title' => $prod['name']);
|
90
|
}
|
88
|
}
|
91
|
foreach ($data['newArrivel']['list'] as &$v) {
|
89
|
foreach ($data['newArrivel']['list'] as &$v) {
|
92
|
if (isset($coverList[$v['productSkn']])) {
|
90
|
if (isset($coverList[$v['productSkn']])) {
|
|
@@ -584,10 +582,6 @@ class ShopModel |
|
@@ -584,10 +582,6 @@ class ShopModel |
584
|
*/
|
582
|
*/
|
585
|
public static function goodsTabBar($data, $parameters)
|
583
|
public static function goodsTabBar($data, $parameters)
|
586
|
{
|
584
|
{
|
587
|
- $more = array(
|
|
|
588
|
- 'name' => 'MORE',
|
|
|
589
|
- 'href' => self::$shopListUrl . '?shopId=' . $parameters['shopId']
|
|
|
590
|
- );
|
|
|
591
|
$result = array(
|
585
|
$result = array(
|
592
|
'hot' => array(),
|
586
|
'hot' => array(),
|
593
|
'new' => array()
|
587
|
'new' => array()
|
|
@@ -620,8 +614,14 @@ class ShopModel |
|
@@ -620,8 +614,14 @@ class ShopModel |
620
|
}
|
614
|
}
|
621
|
}
|
615
|
}
|
622
|
|
616
|
|
623
|
- $result['hot'][] = $more;
|
|
|
624
|
- $result['new'][] = $more;
|
617
|
+ $result['hot'][] = array(
|
|
|
618
|
+ 'name' => 'MORE',
|
|
|
619
|
+ 'href' => self::$shopListUrl . '?navBar=2&order=s_n_desc&shopId=' . $parameters['shopId']
|
|
|
620
|
+ );
|
|
|
621
|
+ $result['new'][] = array(
|
|
|
622
|
+ 'name' => 'MORE',
|
|
|
623
|
+ 'href' => self::$shopListUrl . '?navBar=2&order=s_t_desc&shopId=' . $parameters['shopId']
|
|
|
624
|
+ );
|
625
|
return $result;
|
625
|
return $result;
|
626
|
}
|
626
|
}
|
627
|
|
627
|
|