...
|
...
|
@@ -60,7 +60,10 @@ class ShopProcess |
|
|
//搜索链接
|
|
|
self::$shopData['url'] = Helpers::url('', array('shop_id' => self::$shopId), 'search');
|
|
|
//人气单品的链接
|
|
|
self::$shopData['more_url'] = Helpers::url('', array('shop_id' => self::$shopId, 'order' => 's_n_d', 'title' => '人气'), 'search');
|
|
|
self::$shopData['more_url'] = Helpers::url('', array('shop_id' => self::$shopId, 'order' => 's_n_d', 'title' => '人气单品',), 'search');
|
|
|
if (self::$appVersion) {
|
|
|
self::$shopData['more_url'] .= '&yohobuy={"action":"go.list","params":{"shop_id":"'.self::$shopId.'","title":"人气单品"}}';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -165,6 +168,9 @@ class ShopProcess |
|
|
{
|
|
|
self::$shopData['hotCategory']['name'] = '热门品类';
|
|
|
foreach ($data as $cate) {
|
|
|
if ($cate['isShowInApp'] !== 'Y') {
|
|
|
continue;
|
|
|
}
|
|
|
self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['src']);
|
|
|
}
|
|
|
return $data;
|
...
|
...
|
@@ -178,7 +184,6 @@ class ShopProcess |
|
|
private static function hotProducts_APP($data)
|
|
|
{
|
|
|
foreach ($data as $val) {
|
|
|
|
|
|
$goods = array(
|
|
|
'url' => Helpers::getUrlBySkc($val['productId'], $val['goodsId'], $val['cnAlphabet']),
|
|
|
'img' => Helpers::getImageUrl($val['src'], 235, 314),
|
...
|
...
|
@@ -187,7 +192,7 @@ class ShopProcess |
|
|
'presentPrice' => '¥'.$val['salesPrice']
|
|
|
);
|
|
|
if (!empty(self::$appVersion)) {
|
|
|
$goods['url'] .= '?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":' . $productData['product_skn'] . '}}';
|
|
|
$goods['url'] .= '?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":' . $val['productSkn'] . '}}';
|
|
|
}
|
|
|
self::$shopData['hotList'][] = $goods;
|
|
|
}
|
...
|
...
|
|